About the Robots.txt Tester tool
A robots.txt file tells crawlers which parts of a site they may request. One wrong line can hide an entire product catalogue from search engines, while a forgotten rule can let crawlers waste time on endless filter and search URLs. The syntax looks simple, but the way crawlers choose which group and which rule applies is subtle: a crawler with its own group ignores the rules under User-agent: *, and when several rules match, the longest one wins.
This robots.txt tester applies those rules exactly. Paste your file, choose a crawler such as Googlebot, Googlebot-Image, Bingbot, DuckDuckBot or Applebot, or type a custom name, and enter a URL or path. The tool shows whether it is allowed or blocked, which User-agent group was used, the line and text of the deciding rule, and every other rule that matched. Wildcards (*) and end anchors ($) are supported, query strings are included in matching and percent-encoding is normalised.
The “Test many” tab checks a list of up to 500 paths at once. Parse results report the number of groups and rules, sitemap lines, unknown fields, rules outside any group, and unsupported directives such as noindex or crawl-delay for Google. Everything runs in your browser; because browsers cannot fetch another site's file, you paste it in.
How to use Robots.txt Tester
- Open yoursite.com/robots.txt, copy its contents and paste them into “robots.txt content”.
- Choose a crawler in “User-agent”, or pick “Custom…” and type its name.
- Enter a full URL or a path in “URL or path” on the “Test a URL” tab.
- Read the Allowed or Blocked verdict, the deciding rule and any other matching rules.
- Switch to “Test many” to check a list of URLs, and review “Parse results” for warnings.
Features
Correct group selection
Uses the most specific matching User-agent group and falls back to * only when none matches.
Longest-match rule logic
Supports * and $ wildcards, with Allow winning ties just as Google does.
Explains every decision
Shows the deciding rule with its line number and lists all other rules that matched.
Bulk URL testing
Check up to 500 paths against the same crawler in one table.
Syntax warnings
Flags unknown fields, typos, rules before any User-agent and unsupported noindex lines.
When to use it
- Confirm a new Disallow rule blocks faceted filter URLs but not the product pages themselves.
- Find out why a folder is blocked for Googlebot but not for other crawlers.
- Test a staging robots.txt before replacing the live file.
- Check that PDFs, images or search result pages are handled the way you intend.
Frequently asked questions
Does blocking a URL in robots.txt remove it from Google?
No. robots.txt controls crawling, not indexing. A blocked URL can still be indexed without its content if other pages link to it. To keep a page out of results, allow crawling and use a noindex meta tag or header.
If Googlebot has its own group, does it also follow User-agent: *?
No. A crawler follows only the most specific group that matches it. Rules under * are ignored by Googlebot when a Googlebot group exists, so repeat any shared rules in that group.
Which rule wins when Allow and Disallow both match?
The rule with the longest path pattern wins. If they are the same length, Google uses the less restrictive Allow rule.
What do * and $ mean in robots.txt?
* matches any sequence of characters and $ marks the end of the URL. For example, Disallow: /*.pdf$ blocks URLs ending in .pdf, but not /file.pdf?v=2.
Are robots.txt paths case sensitive?
Yes. Paths are case sensitive, so Disallow: /Private/ does not block /private/. Field names such as User-agent and Disallow are not case sensitive.
Does Google support Crawl-delay?
No. Google ignores Crawl-delay. Bing and some other crawlers honour it.