Skip to content
toolstome

Robots.txt generator and tester

Create a correct robots.txt file in a few clicks, or paste an existing one to test it. Choose the folders and pages crawlers should stay out of, add your sitemap, and optionally block the crawlers that collect content for AI models, such as GPTBot, ClaudeBot, Google-Extended and CCBot, without affecting Google or Bing search. The tester then shows whether a given URL is allowed or blocked for a particular crawler, and which rule decided it, using the same matching rules as Google: the most specific user-agent group, the longest matching path, and * and $ wildcards.

Free · No sign-upProcessed in your browser

Mode

Paths start with /. Use * for any characters and $ for the end of the URL.

Upload it to the root of your site: https://yourdomain.com/robots.txt

How to use the Robots.txt Generator & Tester

  1. 1

    List what to block

    Enter one path per line, such as /admin/ or /*.pdf$.

  2. 2

    Choose extra options

    Block all crawlers on a staging site, or block AI training crawlers.

  3. 3

    Add your sitemap

    Enter the full URL of your sitemap.xml.

  4. 4

    Download and test

    Save robots.txt to your site's root, then test important URLs.

How robots.txt rules are matched

A crawler uses the group whose User-agent line matches its name most specifically, and falls back to the * group. Within that group, the rule with the longest matching path wins; if an Allow and a Disallow are equally long, Allow wins (RFC 9309).

* matches any sequence of characters and $ marks the end of the URL, so Disallow: /*.pdf$ blocks PDF files but not /file.pdf?download=1. Paths are case-sensitive.

  • Disallow: /admin/
  • Allow: /admin/public/
  • Disallow: /*.pdf$

When to use it

  • Keep admin, cart and internal search pages out of crawlers' way.
  • Stop AI companies from using your content for training.
  • Check why Google says a page is 'blocked by robots.txt'.

Limits

  • robots.txt asks crawlers politely; it does not protect private pages. Use passwords or noindex for that.
  • Blocking a page does not remove it from Google if other sites link to it; use a noindex tag instead.

Privacy

Everything runs in your browser; your rules and URLs are not sent anywhere.

Frequently asked questions

Where do I put robots.txt?

In the root of your domain, so it opens at https://yourdomain.com/robots.txt. It only applies to that exact host and protocol.

How do I block AI crawlers?

Tick 'Block AI crawlers'. The tool adds a group for GPTBot, ClaudeBot, Google-Extended, CCBot and other published AI user agents with Disallow: /. Search crawlers like Googlebot and Bingbot are not affected.

Does Disallow remove a page from Google?

No. It stops crawling, but a blocked page can still appear if other sites link to it. To remove a page, allow crawling and add a noindex meta tag.

What does an empty Disallow mean?

'Disallow:' with nothing after it allows everything for that group.

Is robots.txt case-sensitive?

Paths are: /Admin/ and /admin/ are different. User-agent names are not.

Does Google support Crawl-delay?

No. Google ignores it; Bing and some others respect it.

People also use

Last updated November 20, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More