Skip to content

Robots.txt Generator

Build a robots.txt file with user-agent groups, Allow and Disallow paths, optional crawl-delay and sitemap URLs. Start from a preset, edit the rules, and copy or download the result. A built-in checker flags the mistakes that most often take sites out of search results by accident.

Runs in your browserFreeNo sign-up

Processed on your device. Files and text stay in your browser and are not uploaded to our servers. How privacy works

How to use the robots.txt generator

  1. Pick a preset: allow everything, block everything, block private folders, or block AI training crawlers.
  2. Edit each group's user-agents and the paths to allow or disallow, one per line.
  3. Add your sitemap URL(s) as absolute links.
  4. Review the checks, then copy or download robots.txt and upload it to the root of your domain.

Features

  • Multiple user-agent groups with add and remove
  • Allow and Disallow rules, with Allow exceptions inside blocked folders
  • Crawl-delay with a note about which crawlers honour it
  • Sitemap lines, validated as absolute URLs
  • Lint warnings for blocking the whole site, relative paths, blocked CSS/JS and missing sitemaps
  • Presets including one for GPTBot, ClaudeBot, CCBot and Google-Extended

How robots.txt is read

Crawlers fetch /robots.txt before anything else on a host. The file is a list of groups: one or more User-agent lines followed by Allow and Disallow rules. A crawler uses the most specific group that names it (Googlebot picks the Googlebot group over *). Within a group, the longest matching path wins, and Allow beats Disallow on a tie. Paths are case-sensitive prefixes, with * as a wildcard and $ to anchor the end.

robots.txt controls crawling, not indexing. A blocked URL can still appear in results if other pages link to it; use a noindex meta tag (on a crawlable page) to keep something out of the index. It is also public and advisory, so never rely on it to hide sensitive content.

Crawl-delay and AI crawlers

Crawl-delay asks a bot to wait a number of seconds between requests. Bing, Yandex and several others respect it; Googlebot ignores it entirely and adjusts its rate automatically, with a manual limit available in Search Console.

GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl) and Google-Extended (Google's AI training token) each declare themselves so site owners can opt out of training data collection. Blocking them is a legitimate choice, but note that Google-Extended does not affect Search ranking and that some AI-assisted search features may stop citing your pages.

Frequently asked questions

Does Disallow remove a page from Google?

No. It stops Googlebot from fetching the page, but the URL can still be indexed from links elsewhere. To remove a page, let it be crawled and add a noindex meta tag, or use Search Console's removal tool.

Where do I put the file?

At the root of each host, for example https://example.com/robots.txt. Subdomains and other protocols need their own copy; a file in a subfolder is ignored.

Why does the tool warn about blocking CSS and JavaScript?

Google renders pages to understand them. If it cannot fetch the stylesheets and scripts, it may see a broken layout or missing content and rank the page worse.

Is the empty “Disallow:” line correct?

Yes. A group with an empty Disallow explicitly allows everything for those user-agents and is the standard way to write an allow-all rule.

Other tools people use alongside Robots.txt Generator.

You might also like

Something useful from another corner of VoltKit.