robots.txt Generator
Build a robots.txt file with per-bot allow/disallow rules, a sitemap URL, and one-click presets for Googlebot, GPTBot, and other common crawlers.
Add a bot / user-agent group
Common Use Cases
About robots.txt Generator
A robots.txt file, served from a site's root (https://example.com/robots.txt), tells well-behaved web crawlers which parts of the site they're allowed to request: search engines like Google and Bing, and increasingly, the AI crawlers that fetch pages to train models or answer questions (GPTBot, ClaudeBot, Google-Extended, CCBot, and others). The syntax is a short, plain-text format, but it's still easy to typo a directive name, forget a "User-agent:" line before a rule, or accidentally write one broad block that also disallows a bot you meant to allow. This generator builds a valid file for you from a visual rule builder instead.
Start from a bot preset: "All bots" for a blanket "User-agent: *" group, or a specific crawler like Googlebot, Bingbot, GPTBot, ChatGPT-User, Google-Extended, ClaudeBot, CCBot, PerplexityBot, Bytespider, or Amazonbot; or add a custom user-agent for anything not listed. Each group gets its own list of Allow/Disallow rules with a path (leave a Disallow path blank to explicitly allow everything for that bot, or add specific paths like "/admin/" or "/private/" to block them), plus an optional Crawl-delay. Add a sitemap URL once at the bottom and it's appended as a "Sitemap:" line so crawlers can find your sitemap without you listing it in every group.
The output panel updates live as you edit groups and rules, always in the same order they're arranged on screen, so re-ordering how you build it never changes what gets generated. Copy it to your clipboard or download it directly as "robots.txt", no renaming needed, since (unlike a dotfile such as .gitignore or .htaccess) "robots.txt" has a normal extension a browser download keeps intact. Everything, from the presets to the rule assembly and the live preview, runs as plain JavaScript in your browser tab; nothing you configure or generate is ever uploaded to a server, logged, or stored.
Frequently Asked Questions
Where do I put the generated robots.txt file?
What does a blank Disallow path mean?
Can I block AI crawlers like GPTBot or ClaudeBot without blocking search engines?
Does robots.txt actually stop a bot from accessing a page?
Why does the sitemap field only accept one URL?
Is anything I configure or generate sent anywhere?
Related Tools
View all GeneratorsLorem Ipsum Generator
Generate paragraphs, sentences, or words of placeholder text for mockups and designs.
Random Number Generator
Generate random numbers with custom ranges, quantity, and sorting options for testing and development.
QR Code Generator
Generate and download QR codes for any URL or text. Customize size, colors, and error correction level.