Skip to content

Robots.txt Tester

Test pasted robots.txt rules locally: pick a user-agent, enter one or more URL paths, and see which group applies, which rules match and whether each path is allowed or disallowed. Nothing is fetched.

Web & SEO Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading Robots.txt Tester…

About the Robots.txt Tester

Robots.txt Tester checks robots.txt rules that you paste against the user-agent and URL paths you choose. It reads User-agent, Allow, Disallow, Sitemap and Crawl-delay lines, works out which user-agent group applies — an exact match for your token, otherwise the “User-agent: *” group — and then tests each path, one per line, showing whether it is allowed, disallowed or has no matching rule.

Matching follows the widely used longest-match rule: the longest matching Allow or Disallow path wins, and Allow wins when two rules are the same length. The * wildcard and a $ end anchor are supported and explained next to the inputs, and every result lists the deciding rule with its line number. It is a local rule tester only: it never fetches a site’s live robots.txt, and real crawlers, hosting set-ups and search engines can interpret files differently.

How to use

  1. Paste the robots.txt content into the first box.
  2. Enter the user-agent token you want to test, such as Googlebot, Bingbot or *.
  3. Enter one or more URL paths, one per line (full URLs are reduced to their path locally).
  4. Click Test paths to see the applied group, each result and the deciding rule.
  5. Review any parsing notes, then copy or download the result.

Key features

  • Parses User-agent, Allow, Disallow, Sitemap and Crawl-delay directives.
  • Exact user-agent group matching with fallback to the * group; matching groups are combined.
  • Longest-match rule with Allow winning ties.
  • Documented support for * wildcards and $ end anchors.
  • Tests many paths at once, with deciding and other matching rules for each.
  • Notes for malformed lines, unknown directives and rules outside a group; Copy and Download Result.

Best practices

  • Test the exact robots.txt you plan to publish, including comments and blank lines.
  • Check important pages and the folders you intend to block, not just one URL.
  • Remember that paths are case-sensitive — /Admin and /admin are different.
  • Do not rely on robots.txt to hide private content; use authentication or noindex instead.
  • Re-test after every edit, and confirm with each search engine’s own tools after publishing.

Benefits

  • Catch rules that block more — or less — than you intended before publishing.
  • See exactly which line decided each result.
  • Test many paths in one go.
  • Private: your robots.txt and paths never leave your browser.

Frequently asked questions

Does this tool read my live robots.txt?

No. It only tests the text you paste. It never fetches robots.txt or any page, so it cannot tell you what is currently published on your site.

Which group applies to my user-agent?

A group whose User-agent value exactly matches the token you enter (ignoring upper and lower case) applies. If none matches, the “User-agent: *” group applies. If several groups match, their rules are combined. With no matching group and no * group, everything is allowed.

How are conflicting Allow and Disallow rules resolved?

The longest matching rule path wins. If an Allow and a Disallow rule match with the same length, Allow wins. If no rule matches, the path is allowed.

How do * and $ work?

A * matches any run of characters, so Disallow: /*.pdf matches /files/report.pdf. A $ at the end means the path must end there, so Disallow: /*.pdf$ matches /a.pdf but not /a.pdf?download=1.

Should I enter a full user-agent string?

No — enter the crawler’s product token, such as Googlebot or Bingbot. Full browser-style user-agent strings are not matched by this tester.

Will search engines behave exactly like this?

Not necessarily. Crawlers differ in how they match user-agents, handle URL encoding and treat directives such as Crawl-delay. Robots.txt also controls crawling, not indexing. Use this as a local check and confirm with each search engine’s own documentation and tools.