SEO Tools
Robots.txt Rule Tester
Paste robots.txt rules and test paths or URLs for any crawler. See Allowed or Blocked, the deciding rule and its line, using Google's longest-match logic.
How to use Robots.txt Rule Tester
Paste your robots.txt, list the paths or URLs to test one per line and enter the crawler's user agent. Each path shows Allowed or Blocked with the deciding rule and line number, updated as you type.
- Paste robots.txtCopy the contents of your live robots.txt, or paste a draft you want to try before publishing.
- List paths to testEnter paths such as /admin/settings or full URLs, one per line; the domain part is ignored.
- Set the crawlerType a token such as Googlebot, Bingbot or GPTBot, or a full user-agent string, then read the results.
How Google decides between Allow and Disallow
Google follows RFC 9309: a crawler uses the group whose User-agent matches it most specifically, and within that group the longest matching rule wins, with Allow winning a tie. * matches any run of characters and $ anchors the end of the URL. In the sample file, /admin/help/faq is allowed because Allow: /admin/help/ is longer than Disallow: /admin/, and /files/report.pdf is blocked by Disallow: /*.pdf$, while /files/report.pdf?v=2 is allowed because $ requires the URL to end there. Rules are case-sensitive and match from the start of the path.
Crawler groups: the most common surprise
Once a crawler has its own group, it ignores everything in the User-agent: * group. In the sample, Googlebot-Image has a group containing only Disallow: /photos/, so for that crawler /admin/settings is allowed even though * blocks /admin/. With no exact group, Google's crawlers fall back to a broader one – Googlebot-News uses a Googlebot group – while other crawlers go straight to *. The tester shows which group was used, picks out tokens from full user-agent strings and lists lines it ignores, such as Crawl-delay, which Google doesn't support. robots.txt controls crawling, not indexing.
Accuracy and data handling
Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How do I test if a URL is blocked by robots.txt?
Paste the robots.txt contents, enter the path or full URL and the crawler name, such as Googlebot. The result shows Allowed or Blocked, the deciding rule and its line number.
Which rule wins when Allow and Disallow both match?
The longest, most specific pattern wins. If an Allow and a Disallow pattern are the same length, Allow wins. That is how Google and RFC 9309 resolve conflicts.
Does Disallow stop a page from being indexed?
No, it only stops crawling. A blocked URL can still be indexed from links, usually without a snippet. To keep a page out of results, allow crawling and add a noindex tag.
Does it fetch my live robots.txt?
No. It tests only the text you paste, so you can try changes before publishing. Paths are matched as Google would match them, including percent-encoding of non-ASCII characters.
More SEO Tools
Related toolsCheck URL length, parameters and tracking tags, and get a cleaner version
Turn letters or an emoji into favicon.ico, SVG and PNG icons with head code
Generate robots.txt rules, a sitemap line and AI crawler blocks as you type.
Convert a list of URLs into sitemap.xml with lastmod dates and duplicates removed
Count word and phrase frequency and measure the density of your target keywords
Measure title tags in pixels and characters and preview where Google may cut them