Robots.txt Generator

Create a valid robots.txt with allow/disallow rules and a sitemap reference — then download it.

Robots.txt Generator

Use * for all crawlers, or a name like Googlebot.

🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.

How it works

A robots.txt file sits at the root of your domain and tells search-engine crawlers which parts of your site they may or may not request. It's the first file most bots fetch, so a correct one keeps crawlers focused on your important pages and away from admin areas, carts, or duplicate paths.

Each rule block starts with a User-agent line naming the crawler (* matches all of them), followed by Allow and Disallow paths. A disallowed path blocks crawling of anything beneath it; an allow rule can carve out an exception. You can also add an optional Crawl-delay to slow aggressive bots, and a Sitemap line pointing crawlers to your XML sitemap.

This generator assembles those pieces into a syntactically valid file you can copy or download. A word of caution built into good practice: robots.txt controls crawling, not indexing — a blocked page can still appear in results if other sites link to it, so use a noindex meta tag when you truly want a page kept out of search. Everything is generated in your browser.

Examples

Allow everything: User-agent: * + Disallow: (empty).
Block admin: Disallow: /admin/ keeps crawlers out of that folder.
Add Sitemap: https://example.com/sitemap.xml to point bots to your sitemap.

Frequently asked questions

Where does robots.txt need to go?
At the root of your domain, reachable at https://yourdomain.com/robots.txt. Crawlers won't look for it anywhere else.
Does Disallow stop a page from appearing in Google?
Not necessarily. It blocks crawling, but a blocked URL can still be indexed if linked elsewhere. To keep a page out of results, use a noindex meta tag and allow crawling.
What does an empty Disallow mean?
'Disallow:' with nothing after it means nothing is blocked — the crawler may access the whole site. It's the standard 'allow all' rule.
Should I include a sitemap line?
Yes, if you have a sitemap. It helps crawlers discover all your URLs, though it's independent of the allow/disallow rules.