Create a complete robots.txt file to control how search engines crawl and index your website. Add directives for any user-agent, set crawl delays, and link your sitemap.
Type your full website URL (including https://). This will be used to generate proper sitemap URLs and comments in your robots.txt file.
Set User-agent rules, Disallow and Allow paths, Crawl-delay values, and Sitemap URLs. Add as many directives as needed for complete control.
Click Generate to preview your robots.txt. Download the file or copy the content, then upload it to the root directory of your website. Pair it with a sitemap for best results.
The FreeNestTools Robots.txt Generator helps you create a properly formatted robots.txt file for your website. A robots.txt file follows the Robots Exclusion Standard used by websites to communicate with web crawlers and other web robots. It tells search engine crawlers which pages or sections of your site they are allowed or not allowed to crawl and index.
Using a correctly configured robots.txt file is essential for SEO best practices. It helps you:
For comprehensive SEO optimization, pair your robots.txt file with Meta Tags and FAQ Schema markup to improve your search presence.
All processing happens entirely in your browser. Your website URL and directives never leave your device, ensuring maximum privacy and security. No registration or account is needed — just generate and download.
https://yoursite.com/robots.txt). It follows the Robots Exclusion Standard and tells search engine crawlers which URLs they can or cannot access on your site. It is the first file a crawler checks when visiting your website.robots.txt and upload it to the root directory of your website.https://yoursite.com/robots.txt. It cannot be placed in a subdirectory — search engines will only look for it at the root level. Most hosting control panels (cPanel, etc.) allow you to upload files directly to the public_html or www directory.Disallow: /admin/ blocks all pages under the admin folder. Allow overrides a Disallow directive for a specific subpath. For example, if you Disallow /private/ but Allow /private/public-page.html, crawlers can access that specific page while still being blocked from the rest of the private directory. Google provides detailed guidelines for robots.txt syntax on their developer documentation.User-agent: * applies to all crawlers. You can target specific crawlers like User-agent: Googlebot (Google), User-agent: Bingbot (Bing), or User-agent: Slurp (Yahoo). Each crawler uses the most specific matching User-agent block.Crawl-delay: 10 means the crawler should wait 10 seconds before making another request. This can help reduce server load, but use it carefully — setting too high a delay can significantly slow down how quickly your pages get indexed. Googlebot ignores this directive and uses its own crawl rate settings in Google Search Console.Sitemap directive. This helps search engines discover all the pages you want indexed. You can add multiple Sitemap directives for different sitemap files (e.g., XML sitemap, image sitemap, video sitemap). The format is: Sitemap: https://yoursite.com/sitemap.xml. Use our XML Sitemap Generator to create a properly formatted sitemap for your website.