Robots.txt Generator

Builds a robots.txt file from a few choices, such as which paths crawlers may or may not visit and where your sitemap lives. It is useful when you set up a new website and want a correctly formatted file to place at the root of your site.

Options

Adds rules for GPTBot, Google-Extended, CCBot, ClaudeBot and others. Compliance is voluntary.

How to use the Robots.txt Generator

  1. Choose whether all crawlers may crawl the whole site, then list any paths to block or allow.
  2. Optionally ask known AI training crawlers not to crawl, and add your sitemap address.
  3. Copy the result into a file named robots.txt at the root of your site.

Rules applied

  • Paths must start with / (or *) and contain no spaces; other entries are skipped with a warning.
  • An empty Disallow: line means nothing is blocked.

Limitations

  • robots.txt is a request, not access control: well-behaved crawlers follow it, others may not. Do not use it to hide private pages. Blocking crawling does not always remove a page from search results; use a noindex tag for that.

Worked examples

Block admin and search pages

Result

User-agent: *
Disallow: /admin/
Disallow: /search

Sitemap: https://example.com/sitemap.xml
Allow search engines, ask AI crawlers not to crawl

Result

User-agent: *
Disallow:

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: Applebot-Extended
Disallow: /

Practical uses

  • Blocking an admin area

    A small business owner wants search engines to skip the admin and search pages. They list those paths to block and add the sitemap address. The tool produces a file they can copy into robots.txt at the root of the site.

  • Setting up a new site

    A freelancer is building a site for a client and needs a basic robots.txt file. They choose whether all crawlers may crawl the site, add any paths to block and copy the result. The file is ready to upload in about a minute.

  • Asking AI crawlers not to crawl

    A blogger would prefer that their writing is not used to train AI models. They turn on the option to ask known AI training crawlers not to crawl and copy the file. It is a request that well-behaved crawlers follow, not a way to control access.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.