Robots.txt Generator
Build a robots.txt file from a simple form. Per-bot allow/disallow rules, crawl-delay, sitemap URL. Validates as you type, copy or download. Always private.
User-agent: * Disallow: /admin/ Disallow: /private/ Sitemap: https://example.com/sitemap.xml
Use this free robots.txt generator to assemble a valid robots.txt file from per-bot rule groups, allow/disallow paths, and sitemap URLs. The output updates as you type, with a built-in autocomplete for the bot names you actually care about — Googlebot, Bingbot, GPTBot, ClaudeBot, and more.
How to use it
No account, no upload — it all happens on your device.
The four directives crawlers understand
Everything in a robots.txt file is one of these.
| Directive | Meaning | Example |
|---|---|---|
| User-agent | Names the bot the rules apply to. * matches every bot. | User-agent: Googlebot |
| Disallow | Paths the bot must not crawl. Empty value = block nothing. | Disallow: /admin/ |
| Allow | Exception that re-opens a path inside a disallowed parent. | Allow: /admin/public/ |
| Sitemap | Absolute URL of a sitemap. Listed once, read by every bot. | Sitemap: https://example.com/sitemap.xml |
AI crawlers worth knowing about
The newer bots — opt in or opt out deliberately.
- GPTBot— OpenAI's training crawler. Block if you do not want your content used to train ChatGPT models.
- ChatGPT-User — fired when a ChatGPT user clicks a link to your site (not training). Usually keep allowed.
- Google-Extended— Google's separate opt-out for Bard/Gemini training. Does not affect search ranking; works alongside the normal Googlebot rules.
- ClaudeBot / anthropic-ai— Anthropic's crawlers (training + retrieval).
- PerplexityBot, CCBot (Common Crawl) — wide-net research crawlers; CCBot in particular feeds many downstream datasets.
Common patterns
| Goal | What to write |
|---|---|
| Block all bots from the whole site | User-agent: * Disallow: / |
| Allow everyone, block nothing | User-agent: * Disallow: |
| Block one folder for everyone | User-agent: * Disallow: /private/ |
| Block a folder, but allow one sub-path | User-agent: * Disallow: /downloads/ Allow: /downloads/public/ |
| Opt out of AI training only | User-agent: GPTBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: ClaudeBot Disallow: / |
Privacy
The whole file is built in your browser from the form values you enter. Nothing is uploaded, stored, or logged. Copy the result into your editor or Download a robots.txt straight away.