Home » SEO Tools » Robots Txt Tester

Free Robots.txt Tester

Paste robots.txt rules and a URL to simulate whether that URL is allowed or blocked by those rules, before you upload them.

Last updated 13 November 2026

Use the tool
Result will appear here

Important: this is a simulation of the pasted rules only. It does not fetch a live robots.txt file and it does not crawl anything.

Robots.txt rules can block a page by accident, especially when a broad disallow rule covers a path you wanted indexed. Testing rules before you upload them helps you catch those mistakes early.

This tool simulates the rules you paste. Enter a URL, and it tells you whether the longest matching rule allows or blocks that path, using the standard longest match idea, with Allow winning a tie.

How to Use This Tool

  1. Paste your robots rules: paste the full rules you plan to upload.
  2. Enter a URL or path to test: use a full URL or just the path part.
  3. Click Test URL: read whether the path is allowed or blocked.
  4. Test more paths: test important pages, not just one, before you upload.

Good Practice Tips

  • Test your key pages: a rule that blocks a whole folder may also block a key page inside it.
  • Remember this is a simulation: it reads only the pasted rules. It does not fetch a live file or guarantee how every crawler behaves.
  • Keep rules simple: simple rules are easier to test and harder to get wrong.
  • Test again after upload: open the live file and retest, to confirm the uploaded rules match the tested rules.

What Is a Robots.txt Tester?

A robots.txt tester is a tool that checks whether a URL is allowed or blocked by a set of robots.txt rules. You paste the rules and a URL, and the tool tells you the result and which rule decides, before you upload the file. Testing first matters, because one broad disallow rule can block pages you wanted indexed, and you may not notice until your traffic drops.

This tool simulates the rules you paste. It does not fetch a live file and it does not crawl anything. That keeps it fast and private, and it means you can test a new file before it exists on your site.

How Robots.txt Rules Are Matched

Robots.txt rules are matched by a few simple ideas. First, the most specific group wins. A group written for one crawler, such as Googlebot, replaces the group written for all crawlers. Second, the longest matching rule wins. A rule that matches more of the path beats a shorter rule. Third, when an Allow rule and a Disallow rule match the same length, Allow wins. Fourth, a rule matches the start of a path, so a rule for /private/ blocks every URL that starts with that path. Fifth, paths are case sensitive, so /Admin/ and /admin/ are different paths.

Wildcards are part of the standard too. A star matches any text and a dollar sign marks the end of a URL, so /*.pdf$ matches any PDF file. This tester treats a star and a dollar sign as plain text, so a wildcard rule will not match here. Test wildcard rules by hand against the exact URL, or use a tester that supports them.

Worked Example

Here is a small robots.txt file, the same one the Load Sample button fills in. It blocks a private folder but keeps one public page inside it open:

User-agent: *
Disallow: /private/
Allow: /private/public/

Test three URLs against it. The URL /private/page is blocked, because the Disallow rule for /private/ matches it. The URL /private/public/page is allowed, because the Allow rule for /private/public/ is longer and wins. The URL /about is allowed, because no rule matches it.

Where to Check Your Live Robots.txt

Google retired its own robots.txt Tester in November 2023. To check a live file now, use the robots.txt report in Google Search Console. It shows the file Google last read and any errors in it. You can also check one URL at a time with URL Inspection in Search Console. After you upload a file, paste the live file into this tester and test your key pages again, to confirm the uploaded rules match the rules you tested.

If a test shows a rule is wrong, build a corrected file with the robots.txt generator and test it again here before you upload it.

Can You Test AI Crawlers?

AI crawlers have their own user agent names. The best known are GPTBot, ClaudeBot, Google-Extended, OAI-SearchBot and PerplexityBot. A rule only applies to a bot when the file has a group written for that bot. This tester only applies the group written for all crawlers (User-agent: *), so it cannot test a rule that targets one bot only. To test a rule that targets one bot, check the rule by hand against the bot name, or use a tester that lets you pick a crawler.

Frequently Asked Questions

Does this tool fetch my live robots.txt?

No. It simulates only the rules you paste. It does not fetch a live file and it does not crawl anything.

What wins when rules overlap?

The longest matching rule wins. When an Allow rule and a Disallow rule match the same length, Allow wins in this simulation.

Is a blocked result a guarantee?

No. Robots.txt is a request to crawlers, not a guarantee, and different crawlers may behave differently.

Is my input uploaded to a server?

No. Everything runs in your browser on your own device, so your text never leaves your computer.

What is a robots.txt tester?

A robots.txt tester is a tool that checks whether a URL is allowed or blocked by a set of robots.txt rules. You paste the rules and a URL, and the tool tells you the result and which rule decides, before you upload the file.

Is it free?

Yes. The robots.txt tester is free to use, with no signup and no limit on how many times you use it. Everything runs in your browser.

How do I test a robots.txt file before uploading it?

Paste the rules into the tester, enter the URLs of your key pages, and click Test URL for each one. Fix any rule that blocks a page you want indexed, then upload the corrected file.

Why does my Disallow rule block more URLs than expected?

A Disallow rule matches the start of a path, so Disallow: /private/ blocks every URL that starts with /private/, including pages inside it. Use a longer Allow rule for the pages you want to keep, or make the Disallow rule narrower.

Are robots.txt rules case sensitive?

Yes. Paths in robots.txt are case sensitive, so /Admin/ and /admin/ are different paths. Match the exact capital letters of your real URLs.

What if my site has no robots.txt file?

A site with no robots.txt file is treated as if every page is allowed. That is fine for most small sites. You only need a file when you have paths that crawlers should skip.

↑