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