Skip to content
robots.txt + URL → Allowed / BlockedSEO tools

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 $.

Did this tool work for you?

Used Robots.txt Tester & Validator? Share how it went to help others.

About this tool

About Robots.txt Tester & Validator

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.

Robots.txt Tester & Validator tool

When to test robots.txt

One wrong line can hide a whole site from Google

Pages missing 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.

Keeping sections out of crawls

Confirm that admin, cart or search result pages are blocked.

ExampleMake sure /cart/ and /search? are blocked while product pages stay allowed.

Crawler-specific rules

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.

After a staging site goes live

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.

Online stores with filters

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.

Blocking PDF or file types

Use $ to match file endings precisely.

ExampleDisallow: /*.pdf$ blocks /guides/manual.pdf but still allows /guides/manual.pdf-viewer.

robots.txt pitfalls

Mistakes that often cause problems

Specific groups replace *

If you add a User-agent: Googlebot group, Googlebot ignores the * group entirely. Repeat any rules it should still follow.

Blocking is not hiding

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.

Paths are case-sensitive

Disallow: /Private/ does not block /private/.

Create a new file

Build a correct robots.txt from scratch with the generator.

Open Robots.txt Generator

Do not block CSS and JavaScript

Google renders pages like a browser. Blocking the files that build the layout can make pages look broken to Google.

List your sitemap

Add a Sitemap: line with the full URL of your XML sitemap so crawlers find every page you want indexed.

Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
Which rule wins if Allow and Disallow both match?
The longest matching rule. If they are the same length, Allow wins. This is how Google and the robots.txt standard (RFC 9309) work.
Does it fetch my live robots.txt?
No. It tests the text you paste, so you can check drafts before publishing. Copy your live file from yourdomain.com/robots.txt.
What do * and $ mean?
* matches any sequence of characters and $ matches the end of the URL. Disallow: /*.pdf$ blocks all URLs ending in .pdf.
Can I test a full URL?
Yes. Paste the full URL and the tool uses its path and query string, which is what robots.txt rules apply to.
Does blocking a page remove it from Google?
Not necessarily. Use a noindex meta tag for that, and leave the page crawlable so Google can see the tag.
What is robots.txt?
A text file at the root of a website, such as example.com/robots.txt, that tells crawlers which parts of the site they may visit. Well-behaved crawlers like Googlebot follow it.
Where does robots.txt have to be?
At the root of the host it applies to, for example https://www.example.com/robots.txt. A file in a subfolder is ignored, and each subdomain needs its own.
Why is my whole site blocked?
Usually a Disallow: / line in the group that applies to Googlebot or *, often left over from a staging site. Test / with Googlebot to confirm.
Does Google support Crawl-delay?
No. Google ignores Crawl-delay. Other crawlers such as Bing may use it. It does not affect the allow or block result in this tool.
Are the paths case-sensitive?
Yes. Disallow: /Admin does not block /admin. Match the exact case used in your URLs.
Can I block AI crawlers?
Many AI crawlers use their own user-agent names, such as GPTBot. Add a group for that user-agent with Disallow: / and test it here to confirm it is blocked.
What happens if a site has no robots.txt?
Crawlers treat everything as allowed. A missing file is not an error, but a robots.txt with a Sitemap line is still recommended.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.