Robots.txt tester and generator

Check whether Googlebot, GPTBot or any crawler may fetch your URLs, see the rule that decides it, and build a clean robots.txt. Free, no sign-up, and it runs in your browser.

Paste the file, or open yoursite.com/robots.txt and copy it.

Pick one or type any crawler name.

One per line. Full URLs or paths like /blog.

Results

No group names this crawler, so it follows the rules for User-agent: *.

https://example.com/

No rule matches this path, so it is allowed.

Allowed

https://example.com/admin/settings

Line 3: Disallow: /admin/

Blocked

https://example.com/api/og/launch.png

Line 5: Allow: /api/og/

Allowed

https://example.com/pricing?ref=newsletter

Line 6: Disallow: /*?ref=

Blocked

File check

Line 11: sitemap https://example.com/sitemap.xml

What this robots.txt tester does

A robots.txt file tells crawlers which parts of a site they may fetch. One wrong line can hide your pricing page from search engines, or leave an admin area open to every bot. This tester reads a robots.txt file the way a crawler does and tells you, for each URL, whether a given crawler is allowed or blocked, and which line made the decision.

It also checks the file for lines that crawlers silently ignore, such as misspelled fields, rules placed before any User-agent line, and sitemap entries without a full URL. Everything runs in your browser tab. The tool never fetches your site and sends nothing anywhere.

How to test a robots.txt file

  1. Open yoursite.com/robots.txt in a new tab, copy the whole file, and paste it into the robots.txt box.
  2. Pick a crawler, such as Googlebot or GPTBot, or type any crawler name.
  3. Put the URLs you care about in URLs to test, one per line. Full URLs and paths like /blog?page=2 both work.
  4. Read the results. Each URL shows Allowed or Blocked and the line that decided it. Select Copy results to paste the list into a ticket or a launch doc.

To write a new file, open Generate a file, list the paths to block, add your sitemap URL, and select Test this file to check it before you upload it. Save the result as robots.txt at the root of your domain.

How crawlers read the rules

The rules come from the Robots Exclusion Protocol, published as RFC 9309.1 The tester follows it:

  • One set of rules per crawler. A crawler looks for groups whose User-agent line names it, ignoring case. If several groups name it, their rules are combined. If none do, it follows the User-agent: * group. A crawler with its own group ignores the * group completely.1
  • The longest match wins. When several rules match a URL, the rule with the longest path decides. If an Allow and a Disallow rule are the same length, Allow wins.1
  • Two special characters. * matches any run of characters, and $ at the end means the URL must end there. Disallow: /*.pdf$ blocks PDF files but not /guide.pdf?download=1.
  • Paths are case-sensitive. Disallow: /Admin does not block /admin, as Google's robots.txt guide points out.2
  • The file itself is always allowed. Crawlers may always fetch /robots.txt.1

Google reads only the first 500 KiB of the file and does not support Crawl-delay, so the tester warns about both.2

Common mistakes before a launch

  • Shipping the staging file. A Disallow: / that kept a staging site private is easy to deploy by accident. Test your home page and key pages for Googlebot right before your product launch.
  • Blocking a page you want out of search. robots.txt stops crawling, not indexing. Google's guide notes that a blocked URL can still show up in results without a description if other pages link to it.2
  • Forgetting AI crawlers. Search crawlers and AI training crawlers use different names. The generator can add a block for GPTBot, ClaudeBot, CCBot and Google-Extended.345 Google says Google-Extended does not affect inclusion in Google Search.6

When you change the file, paste the old and new versions into the diff checker to see exactly which rules changed.

Frequently asked questions