Robots.txt Validator & Tester
Test URLs against robots.txt rules and catch syntax errors
Leave URLs empty to check the file syntax only.
Matching follows Google’s robots.txt parser and RFC 9309: a crawler obeys only its most specific user-agent group, groups for the same agent are combined, the longest matching rule wins, and Allow wins a tie. * and a trailing $ are supported. Limits: 500 KiB, 20,000 lines and 100 URLs.
Checks run in this page: the tool does not request robots.txt or the URLs you enter, and it does not save input drafts. Site analytics records actions and counts only.
About this tool
Paste the robots.txt text and, optionally, a list of URLs or paths. For each URL, the tester reports Allowed or Blocked for the crawler you choose and names the Allow or Disallow line that decides it. Matching follows Google’s open-source parser and RFC 9309: a crawler obeys only the most specific user-agent group that names it (Googlebot-Image falls back to Googlebot, then to *), groups for the same agent are combined, the longest matching rule wins, and Allow wins a tie. * matches any characters, a trailing $ anchors the end, and the query string is part of the match. The file check keeps source line numbers, shows group boundaries, validates sitemap URLs and flags lines Google reads differently from other crawlers, such as a missing colon or a misspelled Disallow. Blocked from crawling is not the same as removed from search: Google can index a blocked URL without its content. The tool does not fetch live files or check HTTP status, redirects or indexing. Limits: 500 KiB, 20,000 lines and 100 URLs. Input drafts are not saved; site analytics records actions and counts.
Common Mistakes and Fixes
Expecting User-agent: * rules to apply to every crawler
Cause: Once a group names Googlebot, Googlebot ignores the * group entirely.
Fix: Copy shared Disallow rules into each named group, then test the same URLs with each crawler.
Using Disallow or a robots.txt Noindex line to remove a page from Google
Cause: Google ignores Noindex in robots.txt, and a blocked URL can still be indexed from links because Google cannot read the page or its noindex tag.
Fix: Allow crawling and add a noindex robots meta tag or X-Robots-Tag header. Block crawling later only if you still need to.
Blocking CSS, JavaScript or image folders
Cause: Google renders pages with these resources, so blocking them can hide content or layout.
Fix: Add asset URLs to the test list and keep the files your pages need crawlable.
Use Cases
Check whether URLs are blocked before you publish robots.txt
Goal: Confirm which pages Googlebot and other crawlers can still fetch after a robots.txt change.
- Paste the new robots.txt and list the URLs that matter: key landing pages, filtered or internal search URLs, and assets such as CSS, JavaScript and images.
- Choose Googlebot and read each verdict with its deciding line. Then switch to Googlebot-Image, Bingbot or a custom token to compare groups.
- Fix any important page that is blocked, then review the file check for syntax errors and directives Google ignores before publishing.
Result: An Allowed or Blocked verdict for every URL, with the deciding rule and line number, plus a line-by-line report of the file.
Examples
A Googlebot group replaces User-agent: *
text
User-agent: *
Disallow: /admin/
User-agent: Googlebot
Disallow: /search
Googlebot /admin/login → Allowed (the * group is ignored)
Googlebot /search?q=x → Blocked by Disallow: /search
Bingbot /admin/login → Blocked by Disallow: /admin/The longest match wins, not the most restrictive rule
text
User-agent: *
Disallow: /shop
Allow: /shop/sale
Disallow: /*.pdf$
/shop/sale/shoes → Allowed (Allow: /shop/sale is longer than /shop)
/shop/cart → Blocked by Disallow: /shop
/shop/sale/a.pdf → Allowed (/shop/sale has 10 characters, /*.pdf$ has 7)Frequently Asked Questions
Why is my URL blocked when an Allow rule also matches?
The longest matching pattern wins, measured in characters. Disallow: /shop/ is longer than Allow: /shop, so /shop/item stays blocked. When an Allow and a Disallow are equally long, Allow wins.
Does Googlebot still follow User-agent: * when a Googlebot group exists?
No. A crawler obeys only the most specific group that names it and ignores the * group. Repeat any shared rules inside the Googlebot group.
Which group does Googlebot-Image use?
Its own Googlebot-Image group if one exists, otherwise the Googlebot group, otherwise *. Googlebot-News and Googlebot-Video fall back the same way. AdsBot-Google ignores * and follows only groups that name it.
Does a blocked URL disappear from Google?
Not necessarily. Google can index a disallowed URL from links without seeing its content. To keep a page out of search, allow crawling and use a noindex robots meta tag or X-Robots-Tag header.
Can the tool load robots.txt from my site?
No. Browsers block most cross-site requests, so open yoursite.com/robots.txt, copy the text and paste it. When you enter full URLs, the tool links to each host’s robots.txt.
Do query strings and capital letters matter?
Yes. Paths are case-sensitive and the query string is part of the match, so Disallow: /*?sort= blocks /list?sort=price but not /list, and Disallow: /Admin does not block /admin. Fragments after # never reach the server and are ignored.
Keep browsing