Robots.txt Generator
Create a properly formatted robots.txt file in seconds. Control exactly how Googlebot and other search engines crawl your website.
Rule Configuration
Directives
Including your sitemap in robots.txt is highly recommended for SEO. It helps crawlers discover your URLs instantly.
User-agent: * Allow: /
How to Use This Tool
Configure Rules
Target Bots
Add Sitemap
Review Output
Copy or Download
Recommended Action
What is robots.txt?
A robots.txt file tells search engine crawlers which URLs the crawler can access on your site. This is used mainly to avoid overloading your site with requests.
Important: It is not a mechanism for keeping a web page out of Google. To keep a web page out of Google, you should use noindex directives or password-protect your page.
Core Directives
User-agent
The specific crawler the rule applies to (e.g., Googlebot). Use * for all crawlers.
Disallow
The path you want to block. e.g., /private/ blocks all URLs starting with that path.
Robots.txt vs Noindex vs Sitemap
robots.txt
Controls crawling. Stops Google from fetching the page, saving crawl budget. The URL can still appear in search results if linked elsewhere.
noindex tag
Controls indexing. Allows Google to crawl the page, but explicitly tells them to remove it from search results entirely.
Sitemap
Controls discovery. A map you provide to Google showing exactly which URLs you want them to crawl and index.