Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

Robots.txt Tester

Test URLs against a robots.txt for any crawler and see whether each is allowed or blocked, which rule decided it, and which line it's on — using Google's matching rules.

Processed locally in your browser — nothing is uploaded.

Robots.txt Tester

0 characters

0 characters

Matching follows RFC 9309 as Google applies it: the most specific user-agent group, the longest matching rule, and Allow on a tie. Other crawlers may differ in the details.

About Robots.txt Tester

Paste a robots.txt, pick a crawler, and list the URLs or paths you care about. Each one is marked allowed or blocked, with the exact rule that decided it and its line number highlighted in the file, so you can see not just the answer but why. Google retired the robots.txt Tester in Search Console in late 2023, leaving only a report of the live file it fetched; this fills the gap for testing a draft before it goes live, and for crawlers other than Googlebot.

Matching follows RFC 9309, the robots.txt standard, the way Google's own open-source parser applies it:

  • One group per crawler. A crawler obeys the groups whose user-agent names its product token — compared case-insensitively, so googlebot/2.1 and googlebot* both mean googlebot — merged into one. Only if no group names it does it fall back to the * group. The two are never combined, which is why a Googlebot group silently overrides every rule in * for Googlebot.
  • Several user-agent lines can share a group. Only an Allow or Disallow line ends the run, so blank lines, comments, and Sitemap lines in between don't split it.
  • The longest matching rule wins, measured by the length of its path, and Allow wins a tie. * matches any run of characters, a $ at the end anchors the end of the URL, and paths are case-sensitive.
  • Paths are compared percent-encoded, as RFC 9309 specifies: a rule written as /café matches /caf%C3%A9 and the other way round, and %7E is the same as ~.
  • An empty Disallow allows everything, and /robots.txt itself is always allowed.

The warnings list points out lines Google ignores or reads differently from what you might expect: directives it doesn't support (Crawl-delay, Noindex, Host), rules before the first user-agent, rules that can never match because they don't start with / or *, misspellings Google forgives but other crawlers may not, and anything past Google's 500 KiB limit. To write a file from scratch instead, start with the robots.txt Generator.

Common uses

  • Check a robots.txt change before deploying it, without waiting for a recrawl
  • Confirm whether GPTBot, ClaudeBot, CCBot, or Google-Extended are actually blocked
  • Find out which rule is blocking a page that Search Console reports as "Blocked by robots.txt"

Example

Input

User-agent: *
Disallow: /admin/
Allow: /admin/help

User-agent: Googlebot
Disallow: /drafts/

Testing /admin/help/faq for GPTBot

Output

Allowed — line 3: Allow: /admin/help
GPTBot has no group of its own, so it follows the * group.

Allow: /admin/help (11 characters) is longer than Disallow: /admin/ (7), so it wins. Googlebot would be allowed too — but because its own group says nothing about /admin/, not because of line 3.

Limitations

  • It tests the robots.txt you paste; it doesn't fetch your live file, so check that what you paste is what your server actually returns at /robots.txt
  • Rules apply per host and protocol: the robots.txt at https://example.com doesn't govern https://www.example.com or http://example.com
  • Google's interpretation is the reference here; Bing, Yandex, and AI crawlers follow the same standard but may differ in edge cases such as typos or missing colons
  • Being allowed to crawl isn't the same as being indexed — noindex, canonicals, and quality decide that

Frequently asked questions

What replaced Google's robots.txt Tester?

Google removed the robots.txt Tester from Search Console in late 2023 and replaced it with a robots.txt report, which shows the files Google fetched and any parse errors — but can't test an edited file or a specific URL against it. This tool does that part: paste any robots.txt and check URLs for Googlebot or any other crawler.

Why does Googlebot ignore my User-agent: * rules?

Because a crawler follows only the most specific group that names it. If your file has a User-agent: Googlebot group, Googlebot obeys that group alone and ignores everything under User-agent: *. Repeat the shared rules in the Googlebot group, or remove the Googlebot group if it isn't needed.

When an Allow and a Disallow rule both match, which wins?

The one with the longer path, because it is more specific. Allow: /admin/help beats Disallow: /admin/ for /admin/help/faq. If both are exactly the same length, Allow wins. The order of the lines in the file doesn't matter to Google.

How do I check if GPTBot or ClaudeBot is blocked?

Pick GPTBot or ClaudeBot from the presets, paste your robots.txt, and enter your homepage URL. If the result is Blocked, the line that blocks it is highlighted. If no group names the bot, it follows your User-agent: * group, which is often not what you intended.

Do * and $ wildcards work in robots.txt?

Yes, for Google, Bing, and every crawler that follows RFC 9309. * matches any sequence of characters, and $ at the end of a rule anchors it to the end of the URL — Disallow: /*.pdf$ blocks every URL ending in .pdf but not /file.pdf?download=1. Other regular-expression syntax isn't supported.

Is the robots.txt I paste sent anywhere?

No. Parsing and matching run entirely in your browser, so you can test an unreleased robots.txt or one listing private paths without it leaving your machine.