Robots.txt Tester & Validator
Test whether a URL is allowed or blocked for Googlebot, Bingbot or any crawler, using Google’s robots.txt matching rules including * and $.
Test whether a URL is allowed or blocked for Googlebot, Bingbot or any crawler, using Google’s robots.txt matching rules including * and $.
Used Robots.txt Tester & Validator? Share how it went to help others.
About this tool
Robots.txt Tester checks whether a specific URL path is allowed or blocked for a crawler, using the same rules Google documents (RFC 9309). Paste your robots.txt, enter a user-agent such as Googlebot, Bingbot or *, and enter a path or full URL. The tool first picks the group of rules that applies to that crawler: the most specific matching User-agent line wins, and only if none matches does the * group apply. Inside that group, the longest matching Allow or Disallow rule decides the result, and when an Allow and a Disallow rule are the same length, Allow wins. Wildcards are supported: * matches any characters and $ marks the end of the URL, so Disallow: /*.pdf$ blocks every PDF. The result shows the exact rule that matched and which group it came from. The test uses the text you paste, so you can try changes before publishing them. Comments after a # are ignored, just as crawlers ignore them, and Sitemap lines can stay in the file without affecting the result. Because nothing is fetched, the tool also works for sites that are not live yet, for staging copies, and for drafts of new rules you want to check before you upload them.

Copy it from yourdomain.com/robots.txt or paste a draft you are working on.
Type a user-agent like Googlebot and a path such as /private/page or a full URL.
See Allowed or Blocked, the rule that decided it, and the group it came from.
When every important URL gives the result you expect, upload the file to the root of your site as /robots.txt.
Longest-match precedence, Allow winning ties, and per-crawler groups, as in RFC 9309.
Handles * and $ patterns like /*.pdf$ and /*?sessionid=.
Know exactly which line allowed or blocked the URL.
Test edits before uploading them, without affecting your live site.
One wrong line can hide a whole site from Google
Check whether robots.txt is blocking a page you want indexed.
ExampleTest /blog/my-post for Googlebot and find a Disallow: /blog rule left over from development.
Confirm that admin, cart or search result pages are blocked.
ExampleMake sure /cart/ and /search? are blocked while product pages stay allowed.
Check that a rule meant for one bot doesn’t affect others.
ExampleA Googlebot group overrides the * group completely, so rules in * no longer apply to Googlebot.
Staging sites often ship with Disallow: /, which blocks everything once copied to production.
ExampleTesting / for Googlebot shows “Blocked by Disallow: /”, the reason the new site vanished from Google.
Keep crawlers out of endless filter and sort URLs while product pages stay crawlable.
ExampleDisallow: /*?sort= blocks sorted listings, and testing /shoes/red-trainers confirms products are still allowed.
Use $ to match file endings precisely.
ExampleDisallow: /*.pdf$ blocks /guides/manual.pdf but still allows /guides/manual.pdf-viewer.
Mistakes that often cause problems
If you add a User-agent: Googlebot group, Googlebot ignores the * group entirely. Repeat any rules it should still follow.
A blocked URL can still appear in results if other sites link to it. Use a noindex tag to keep a page out of Google, and don’t block it in robots.txt.
Disallow: /Private/ does not block /private/.
Build a correct robots.txt from scratch with the generator.
Open Robots.txt GeneratorGoogle renders pages like a browser. Blocking the files that build the layout can make pages look broken to Google.
Add a Sitemap: line with the full URL of your XML sitemap so crawlers find every page you want indexed.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Robots.txt Tester & Validator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 30 September 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.