robots.txt Generator.
Build a valid robots.txt with allow and disallow rules, crawl delay, sitemaps and optional AI crawler blocking.
Runs in your browserAbout robots.txt Generator
robots.txt Generator writes the small text file that tells search engine and other crawlers which parts of your site they may fetch. Pick a policy (allow everything, block everything or custom rules), list the paths to disallow and the exceptions to allow, add your sitemap URLs and, if you want, a crawl delay. Paths are validated as you type: each must start with a slash, and sitemap entries must be absolute URLs as the standard requires. A toggle adds a group that blocks the documented AI training and AI search crawlers, such as OpenAI's GPTBot, Anthropic's ClaudeBot, Google-Extended, Common Crawl's CCBot and PerplexityBot, without affecting normal search indexing. For example, disallowing /admin/ while allowing /admin/public/ keeps the panel out of crawlers' queues but lets the public assets through, because the longest matching rule wins (RFC 9309). Common mistakes: believing robots.txt hides pages (it is public and only a request; well-behaved bots follow it, others do not), using Disallow to remove pages from Google (blocked pages can still be indexed from links; use a noindex meta tag on a crawlable page instead), blocking CSS and JavaScript so search engines cannot render the site, and leaving a staging "Disallow: /" in production. The file must be served at the root of each host, for example https://example.com/robots.txt, as plain text.
How to Use
- Choose a policy and enter the paths to disallow and allow.
- Add sitemap URLs, an optional crawl delay and AI crawler blocking.
- Save the result as robots.txt in your site root and test it with the robots.txt tester.
Frequently Asked Questions
Does Disallow remove a page from Google?
No. It stops crawling, but a blocked URL can still appear in results if other pages link to it. To remove a page, allow crawling and add a noindex meta tag or X-Robots-Tag header.
Which rule wins when Allow and Disallow overlap?
Under RFC 9309 the most specific (longest) matching path wins, and Allow wins a tie. Google and Bing follow this.
Do AI crawlers respect robots.txt?
The crawlers listed here are documented by their operators as honouring robots.txt. Others may not, so robots.txt is a request, not a technical block.
Is my data sent anywhere?
No. The file is generated in your browser.
Related Tools
Check whether robots.txt lets a crawler such as Googlebot fetch a URL, and which rule decides.
Turn a list of URLs or paths into a valid sitemap.xml with optional lastmod, changefreq and priority.
Generate title, description, canonical, Open Graph and X (Twitter) card tags with length checks.
Validate an XML sitemap or sitemap index - structure, URLs, lastmod dates and limits.
Generate UUID v4, UUID v7, and ULID identifiers.
Generate secure, random passwords with entropy info.