Robots.txt Generator
Build a valid robots.txt in seconds — per-agent allow/disallow rules, sitemap URL, crawl-delay, plus toggleable allow/block rules for 9 AI crawlers.
Loading tool controls…
Verify it yourself: press F12, open the Network tab, and use this tool — your files are never uploaded.
Robots.txt Generator at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None — your files are never uploaded
- Category
- Developer Tools
Who uses Developer Tools?
Developers and engineers formatting JSON, testing regex, hashing data, encoding values or building API requests.
How to Use Robots.txt Generator
Follow these simple steps to get instant results in your browser.
Set the Default Rules
Edit the Allow and Disallow paths for User-agent: * — paths must start with /, and the tool validates each one as you add it.
Add Sitemap and Crawl-Delay
Enter your full sitemap URL (for example https://example.com/sitemap.xml) and an optional crawl-delay in seconds.
Choose the AI Crawler Rules
Set each of the nine AI crawlers to Allow, Disallow or Omit — or use Allow all / Block all / Omit all.
Download robots.txt
Copy the preview or download robots.txt, then upload it to the root of your site at https://yoursite.com/robots.txt.
What is Robots.txt Generator & How Does It Work?
Robots.txt Generator builds a valid robots.txt for your site in seconds. Set per-agent allow and disallow rules — the default is User-agent: * with / allowed and /admin/ and /private/ disallowed — add more user-agents by name, set a sitemap URL and an optional crawl-delay, then copy or download the finished file.
The tool also carries toggleable rules for the nine major AI crawlers: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended and CCBot. Each one has its own Allow / Disallow / Omit switch, so you can welcome the AI search crawlers while blocking the training crawlers — or block all nine with one click.
The page is honest about what robots.txt can and cannot do. Blocking a crawler stops it fetching your pages again, but it does not delete content a model has already trained on, and robots.txt is a request polite crawlers obey — not a lock. Bad actors ignore it, so never rely on it to hide sensitive content.
Key Features & Capabilities
Nine AI Crawlers
GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended and CCBot — each toggleable.
Per-Agent Rules
Allow and Disallow lists for User-agent: * plus any extra user-agent you add by name.
Path Validation
Every path is checked as you add it — it must start with / (or be *).
Sitemap and Crawl-Delay
A full sitemap URL (validated) and an optional crawl-delay in seconds.
Copy and Download
The finished robots.txt is ready to upload to your site root.
Pro Tips
- •Bookmark this tool for instant one-click access anytime.
- •Drag and drop files directly onto the input surface for fastest handling.
- •All processing happens in your browser session for maximum speed and data safety.
🎯 Common Use Cases
Robots.txt Generator - Allow and Disallow Rules
A robots.txt file is a list of groups. Each group names a user-agent and then lists the paths that agent may (Allow) or may not (Disallow) fetch; the most specific matching rule wins. A Sitemap: line points crawlers at the sitemap. The file must live at the site root, /robots.txt.
Worked Example
- 1Default rules: User-agent: * — Allow: / — Disallow: /admin/ — Disallow: /private/
- 2AI rules: GPTBot Disallow: / — ClaudeBot Disallow: / — all others Allow: /
- 3Sitemap: https://example.com/sitemap.xml
- 4Result: every crawler may fetch the site except /admin/ and /private/, GPTBot and ClaudeBot may fetch nothing, and crawlers are pointed at the sitemap
Sources & Further Reading
- Robots Exclusion Protocol — robotstxt.org
- Robots.txt Specifications — Google Search Central
Frequently Asked Questions about Robots.txt Generator
Frequently asked questions
More Developer Tools
Complementary utilities for your workflow
Robots.txt Generator
Build a valid robots.txt with AI-crawler rules.