Robots.txt Checker: Test Your File and Any URL

Read any site's robots.txt, find mistakes such as blocked CSS or a site-wide Disallow, and test whether Googlebot or another bot may crawl a URL.

Free, no sign-up Checks the live page for you No account, results not kept Updated

We fetch /robots.txt from the domain. Each subdomain has its own file, so check www and non-www separately if both are used.

Enter a domain to read its robots.txt file, find mistakes and test whether a URL is blocked. Need a new file? Use the robots.txt generator.

How to use the robots.txt checker

Read the file, fix what it flags, then test the URLs you care about.

Enter a domain

We fetch /robots.txt from it and show the file with line numbers and its user-agent groups.

Review the warnings

See site-wide blocks, blocked CSS or JavaScript, unknown directives, bad sitemap lines and size problems.

Test a URL

Pick Googlebot, Bingbot, * or any bot name and see whether a path is allowed, with the rule that decided it.

How Google handles robots.txt status codes

What Google does depends on how your server answers the request for /robots.txt.

AnswerWhat Google doesWhat to do
200 OKReads the file and follows its rules.Check the rules are what you meant.
3xx redirectFollows up to 5 redirects, then uses the file it lands on.Fine for http to https. Avoid long chains.
404, 410 and other 4xxTreats it as no file, so everything may be crawled. 429 is the exception.Fine, but add a file to list your sitemap.
5xx or 429Stops crawling the site for now. After 30 days it uses its last good copy, or crawls freely if it has none.Fix the server error quickly.
Over 500 KiBReads the first 500 KiB and ignores the rest.Shorten it: use wildcards instead of long lists.

What a robots.txt checker does

Your robots.txt file tells search engine bots which parts of your site they're allowed to crawl. It's a small file, but one wrong line can stop Google from crawling an entire section of your site, or the entire site. Mistakes are easy to make and easy to miss, because the site still looks fine to visitors.

This checker fetches the live file, shows it with line numbers, splits it into its user-agent groups and flags the problems that matter. The URL tester then tells you whether a given bot can crawl a given URL, and which rule decided it.

The mistakes it finds

  • Blocking the whole site. "Disallow: /" under "User-agent: *" often gets left behind when a staging site goes live.
  • Blocking CSS and JavaScript. Google renders pages much like a browser does. If it can't load your styles and scripts, it may not see your content or layout properly.
  • Rules that apply to no one. A Disallow line that comes before any User-agent line, or a line without a colon, is ignored.
  • Unsupported directives. Google ignores noindex, Crawl-delay and Host in robots.txt. If you rely on them, they aren't doing what you think.
  • A separate Googlebot group. Googlebot then ignores the * group entirely, so rules you added there don't apply to it.
  • Relative sitemap URLs. Sitemap lines must be complete URLs, for example https://www.example.com/sitemap.xml.
  • A file that is too big. Google only reads the first 500 KiB.

How Google matches the rules

When Googlebot looks at a URL, it picks one group: the one whose user-agent matches its name most specifically. Googlebot-Image uses a "Googlebot-Image" group if there is one, then a "Googlebot" group, then the * group. All other groups are ignored.

Within that group, Google compares the URL's path with every Allow and Disallow rule. The rule with the longest matching path wins. If an Allow rule and a Disallow rule are the same length, Allow wins. Two wildcards are supported: an asterisk (*) matches any run of characters, and a dollar sign ($) marks the end of the URL. For example, "Disallow: /*.pdf$" blocks every URL ending in .pdf.

Paths are case-sensitive, so "Disallow: /Admin/" won't block /admin/.

Robots.txt does not remove pages from Google

A blocked page can still be indexed if other pages link to it. Google just can't read it, so the result usually shows with no description. If you want a page out of search results, add a noindex tag and let Google crawl the page so it can see the tag. Once the page has dropped out, you can block it too if you want to save crawling.

After you change robots.txt

1. Run this checker again to confirm the live file is the version you expect. 2. Test your most important URLs for Googlebot, such as the homepage, a category and a product or post. 3. Check the robots.txt report in Google Search Console, which shows when Google last fetched the file. 4. Crawl your site to make sure key pages still return 200 and can be indexed. The free Crawlfree website crawler lists status codes, noindex pages and canonicals for every page it finds.

Need a fresh file? Create one with the robots.txt generator, then come back here to test it.

Robots.txt checker: questions

Short answers about how this tool works. Something missing? Ask us.

How does the URL tester decide allowed or blocked?

It follows Google's documented rules. The bot uses only the most specific group that names it, or the * group if none does. Within that group the longest matching path wins, and if an Allow and a Disallow rule are the same length, Allow wins. * matches any characters and $ marks the end of the URL.

Does a blocked URL stay out of Google?

Not always. Robots.txt stops crawling, not indexing. A blocked URL can still appear in search results, usually without a description, if other pages link to it. To keep a page out of Google, use a noindex tag and leave it crawlable.

Why does Googlebot ignore my "User-agent: *" rules?

If the file has a group for Googlebot, Googlebot follows only that group and ignores the * group. Copy any rules from the * group that should apply to Googlebot too.

Does Google support noindex or Crawl-delay in robots.txt?

No. Google stopped supporting noindex in robots.txt in 2019 and has never used Crawl-delay. The checker flags both. Bing and Yandex do use Crawl-delay.

Do subdomains need their own robots.txt?

Yes. The file only covers the host it is on, so blog.example.com and www.example.com each need one. The same goes for http and https, though most sites redirect one to the other.

Is the file stored?

Our server fetches the file and keeps the result for 30 minutes so repeat checks are quick. URL tests run in your browser.

Check every page you meant to keep crawlable

Crawlfree audits every page in one crawl. Free for Windows, no sign-up, unlimited URLs.