↑

Free Robots.txt Generator

What this tool does

The Robots.txt Generator builds a robots.txt file for your website. Choose a preset or set rules per bot: allow and disallow paths, a crawl-delay, and your sitemap URLs. Presets cover allow-all, block-all, WordPress standard, and blocking AI crawlers like GPTBot and ClaudeBot while keeping search engines welcome. Copy the output or download it as robots.txt and upload it to your domain root. Free and private.








-
Lines
-
Rules
-
Bytes
-
Bot groups
Upload the file to your domain root: https://yourdomain.com/robots.txt. Disallow: / blocks everything for that bot. Google ignores crawl-delay; Bing and others respect it. Robots.txt is a request, not security: bad bots ignore it.

Let us know

Please share your experience with this tool.

Thanks for rating!
No ratings yet — be the first!

How do I create a robots.txt file?

Pick a preset or fill in the fields, and the file is generated as you type. The default example produces five lines: a User-agent: * group (all bots), Disallow rules for /admin/ and /login, an Allow rule for the root, and a Sitemap line pointing to https://example.com/sitemap.xml. That is three rules in one bot group. Copy the output or download it as robots.txt, then upload it to the root of your domain so it is reachable at https://yourdomain.com/robots.txt. The file must sit at the root; a robots.txt in a subfolder controls only that subfolder, and search engines only look for it at the root.

What do allow, disallow and crawl-delay mean?

Disallow tells a bot not to crawl matching paths: Disallow: /admin/ blocks that folder and everything under it. Allow carves out exceptions, and the more specific rule wins, so Allow: /wp-admin/admin-ajax.php inside a blocked /wp-admin/ still lets that one file be fetched, which WordPress needs. Crawl-delay asks a bot to wait that many seconds between requests; Bing and several other crawlers respect it, while Google ignores it entirely and manages crawl rate itself. Paths must start with a slash, and the generator warns about any that do not. A single Disallow: / blocks the whole site for that bot group, so the tool warns before you ship that by accident.

How do I block AI crawlers but keep search engines?

Use the "Block AI crawlers, allow search" preset. It creates a Disallow: / group for each of eight known AI crawlers: GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended (Gemini training), Bytespider, Amazonbot, Applebot-Extended and Meta-ExternalAgent, then a final User-agent: * group allowing everything else, nine bot groups in total. Search crawlers like Googlebot and Bingbot fall under the wildcard group and keep crawling normally. The Sample button loads exactly this preset with a sitemap line. Blocking Google-Extended opts out of Gemini training use without affecting Google Search indexing, which is governed by Googlebot rules.

Where should the sitemap line go?

Anywhere in the file; the generator places sitemap URLs after the rule groups, one Sitemap: line per URL, which is the convention most sites follow. The sitemap must be a full absolute URL, not a path. Listing your sitemap in robots.txt helps every crawler discover it, including ones you have never submitted to. You can list several sitemaps, one per line, for example a main sitemap plus a news or image sitemap. The sitemap line is not part of any user-agent group, so it applies even to bots you have otherwise restricted, and it works even if your file is otherwise empty.

Does robots.txt protect private pages?

No, and this is the most common misunderstanding. Robots.txt is a polite request that well-behaved crawlers honor; it is not access control. Anyone can read your robots.txt, so listing /secret-admin/ actually advertises the path, and malicious bots ignore the file completely. Disallowed pages can also still appear in search results as bare URLs if other sites link to them, because blocking crawling is not the same as blocking indexing. For real privacy, use password protection or server rules; for keeping pages out of search results, use a noindex meta tag or header, which requires the page to remain crawlable so the tag can be seen.

Is it free and private?

Yes. The robots.txt generator is free, with no signup, no account and no limits. Your paths, sitemap URLs and rules never leave your browser; nothing is sent to a server, stored or logged. For site owners, SEOs and developers setting up a new domain, this page does the job in seconds.

FAQs

Where do I upload robots.txt?

To the root of your domain, so it opens at https://yourdomain.com/robots.txt. Search engines only check the root.

How do I block all bots?

Use the Block all preset: User-agent: * with Disallow: /. Be careful; this also blocks Google and Bing.

Does Google respect crawl-delay?

No. Google ignores crawl-delay and manages its own crawl rate. Bing and some other crawlers do respect it.

Can I block AI training but allow search?

Yes. The AI preset blocks 8 AI crawlers (GPTBot, ClaudeBot, Google-Extended and more) and allows all other bots.

Does robots.txt keep pages out of Google?

Not by itself. Blocked pages can still be indexed as bare URLs. Use a noindex tag to remove pages from results.

Is my data stored anywhere?

No. The file is generated in your browser. Your paths and sitemap URLs are never sent to a server or stored.


Author

Awais Arshad

Web Tools Developer & Content Creator at FastToolKit.