AZ Tools

robots.txt Tester

Network

Implements the matching rules used by Googlebot / Bingbot: groups are keyed by user-agent, the most-specific UA wins (exact > substring > *), and within a group the longest matching pattern wins (Allow ties beat Disallow). Supports the * wildcard and $ end-of-path anchor. Surfaces every Sitemap: declaration too, so you can sanity-check that your sitemap URLs are reachable.

Groups parsed: 3Sitemaps: 1
Test cases
  • Allowedrule: Allow: /admin/
  • Allowedrule: Allow: /admin/public/
  • Disallowedrule: Disallow: /
  • Disallowedrule: Disallow: /private/
Sitemaps
  • https://example.com/sitemap.xml

Substring UA matches are case-insensitive. Longest pattern wins; ties go to Allow.

How to use

  1. Paste your robots.txt into the upper box.
  2. Add (user-agent, path) test cases — set UA to '*' to test the catch-all group.
  3. Read the verdict and the rule that produced it on the right.

Frequently asked questions

How does longest-match work?
Within the matching UA group, the rule with the longest pattern that still matches the path wins. Allow and Disallow are weighed by pattern length only — an Allow with a longer pattern beats a Disallow with a shorter one.
What does $ at the end of a pattern mean?
It anchors the pattern to the end of the URL path. /foo$ matches /foo exactly, not /foo/bar. Useful for blocking specific file extensions like /*.pdf$.

Related tools