Robots.txt Tester

Test whether a URL is allowed or blocked by a robots.txt file.

Result

As Googlebot 3 allowed · 2 blocked
  • Sitemap: https://example.com/sitemap.xml
  • Rules follow RFC 9309: the most specific user-agent group is used, the longest matching path wins, and Allow wins a tie.

Results

URLResultDeciding ruleGroup
/✓ AllowedNo rule matchesgroup: *
/admin/✗ BlockedDisallow: /admin/group: *
/admin/help/faq✓ AllowedAllow: /admin/help/group: *
/files/report.pdf✗ BlockedDisallow: /*.pdf$group: *
/photos/cat.jpg✓ AllowedNo rule matchesgroup: *

What does a robots.txt tester do?

A robots.txt tester applies the rules in the file to a crawler and a path and tells you whether that crawler may fetch it. Rules can be tricky: a crawler picks the most specific group for its name, wildcards can match parts of a path, and a longer rule beats a shorter one.

This tool follows the matching rules of RFC 9309. The * wildcard matches any characters, a $ at the end anchors the end of the path, the longest matching rule wins, and Allow wins a tie. For each test path it shows allowed or blocked, the deciding rule and the group used. Lines that are not valid are listed.

How to use the Robots.txt Tester

  1. Paste your robots.txt file.
  2. Enter the crawler name, such as Googlebot.
  3. List the paths or URLs to test, one per line.
  4. Read the results table and fix any problem lines.

This tests the rules in a file you paste, not the live behavior of any particular search engine. Crawlers can differ in small details, and a robots.txt rule does not by itself control what appears in search results.

Real situations

When people use the Robots.txt Tester

  • 1

    Check that important pages are not blocked

    Test your key URLs before and after editing the file to avoid accidentally blocking a section.

  • 2

    Understand a confusing result

    See which Allow or Disallow rule is actually winning for a specific address.

  • 3

    Test different crawlers

    Compare how Googlebot and an image crawler are treated by the same file.

  • 4

    Review someone else's file

    Find syntax problems in a file that you did not write, and see what its rules really do for a crawler.

FAQ

Robots.txt Tester: questions answered

How does a crawler choose which group to follow?

It uses the group whose User-agent best matches its name, and falls back to * if none does. In the sample, Googlebot has no group of its own, so it uses *, while Googlebot-Image uses its own group.

What does the sample result show?

For Googlebot, the pages / , /admin/help/faq and /photos/cat.jpg are allowed. /admin/ is blocked by Disallow: /admin/, and /files/report.pdf is blocked by Disallow: /*.pdf$. That is 3 allowed and 2 blocked.

Which rule wins if two rules match?

The longest matching path wins. In the sample, Allow: /admin/help/ is longer than Disallow: /admin/, so /admin/help/faq is allowed. If both are the same length, Allow wins.

What do * and $ mean in a path?

The star matches any run of characters, and the dollar sign means the path must end there. Disallow: /*.pdf$ blocks any address ending in .pdf.

Does a blocked URL stay out of search results?

Not necessarily. Blocking stops crawling, not indexing. A blocked page can still be listed if other pages link to it. Use a noindex directive on a crawlable page instead.

Can I paste a full URL?

Yes. The tool reads the path and query from it. Plain paths starting with a slash work too.

Is this Robots.txt Tester free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way