Skip to content
XUtilHub

Robots.txt Checker & Tester – Validate Any Site's robots.txt

Free robots.txt checker and validator. Fetch any site's robots.txt, find errors, and test whether Googlebot, Bingbot or AI crawlers can crawl your URLs.

  • Free, no sign-up
  • Fetches public pages only, nothing stored

Or paste a robots.txt below to validate it before you upload it.

robots.txt

About the Robots.txt Tester

Enter a website to check its robots.txt, or paste your own file to validate it before uploading. You get an instant report covering syntax errors, whole-site blocks, blocked CSS and JavaScript, sitemaps, file size and AI crawlers. Then test any list of URLs to see whether each one is allowed or blocked, and which line decided it, using the same matching rules as Google.

Key features

  • Check any site's live robots.txt, or paste your own to validate it
  • Instant report: syntax errors, whole-site blocks, CSS/JS, sitemaps
  • Test hundreds of URLs at once
  • Choose Googlebot, Bingbot, AI crawlers or any bot
  • Shows the exact line that allowed or blocked each URL
  • Google's matching rules: longest match, wildcards and $

Check and validate robots.txt in one place

One misplaced slash in robots.txt can block your whole site, or fail to block the pages you meant to hide. This robots.txt checker does two jobs:

  1. Validates the file. Enter a domain or paste a robots.txt, and the report flags syntax errors, rules that block search engines from the whole site, blocked CSS and JavaScript, missing or invalid sitemap lines, unsupported directives and files over Google's size limit.
  2. Tests URLs. List any URLs or paths, pick a crawler and see allowed or blocked for each one, with the line responsible.

What the report checks

CheckWhy it matters
SyntaxLines that aren't field: value, or rules before any User-agent, are ignored by crawlers
Whole site blockedDisallow: / for Googlebot or Bingbot removes pages from search over time
CSS and JavaScriptGoogle renders pages like a browser; blocked assets can hurt rankings
SitemapA Sitemap: line with a full URL helps every crawler find your pages
Unsupported rulesNoindex: in robots.txt has been ignored by Google since 2019
Crawl-delayRespected by Bing and Yandex, ignored by Google
File sizeGoogle stops reading after 500 KiB
AI crawlersShows which AI bots, such as GPTBot and ClaudeBot, are blocked

Matching rules (RFC 9309)

RuleExampleMatches
Prefix matchDisallow: /admin/admin, /admin/, /administrator
Folder onlyDisallow: /admin//admin/ and below, not /administrator
WildcardDisallow: /*?sort=Any URL with ?sort=
End anchorDisallow: /*.pdf$URLs ending in .pdf, not .pdf?x=1
EmptyDisallow:Nothing (allows everything)

Example

User-agent: *
Disallow: /admin/
Allow: /admin/help/
URLResultWhy
/admin/settingsBlockedDisallow: /admin/
/admin/help/faqAllowedLonger Allow: /admin/help/ wins
/aboutAllowedNo rule matches

Common robots.txt mistakes

  • Leaving a staging file live. User-agent: * followed by Disallow: / is right for a test site and disastrous on a live one. It's the most common cause of a site vanishing from search after a launch.
  • Blocking theme or asset folders. Old WordPress advice to block /wp-includes/ or /wp-content/ stops Google from loading your CSS and JavaScript.
  • Using robots.txt to hide pages. Blocked pages can still be indexed from links, and the file is public, so it advertises the paths you list. Use noindex or a login instead.
  • Forgetting that paths are case-sensitive. Disallow: /Private/ doesn't block /private/.
  • Expecting a separate group to inherit the * rules. Once you add a User-agent: Googlebot group, Googlebot ignores the * group entirely, so repeat any rules it should follow.
  • A relative sitemap URL. Sitemap: /sitemap.xml is invalid; use the full https:// address.

AI crawler user agents

User agentUsed for
GPTBotOpenAI model training
OAI-SearchBotChatGPT search results
ClaudeBotAnthropic model training
Google-ExtendedGemini training (doesn't affect Google Search)
PerplexityBotPerplexity search
CCBotCommon Crawl dataset

Select any of them in the User agent list to see exactly what they can crawl on your site.

Testing tips

  1. Test your most important pages first: home, category and product pages.
  2. Test with Googlebot and *, as other search engines may fall back to *.
  3. Re-test after every change. A new wildcard can block more than you expect.
  4. Validate before you upload. Paste the new file here first, then use Google Search Console's robots.txt report to confirm what Google fetched.

Create a robots.txt with the Robots.txt Generator, check a page's meta robots tag with the Meta Tag Checker, or build a sitemap with the XML Sitemap Generator.

How to use the Robots.txt Tester

  1. Enter the address of the page or website you want to check.
  2. Click the button. Our server fetches the public page (it can't reach private or local addresses).
  3. Review the results, starting with anything marked in red or amber.
  4. Fix the issues on your site, then run the check again to confirm.

Frequently asked questions

How do I check a website's robots.txt?

Type the domain (for example example.com) into the box at the top and click Check robots.txt. The tool fetches https://example.com/robots.txt, shows the file and a report of any problems, and fills in the homepage so you can test it straight away. You can also open the file yourself by adding /robots.txt to the end of the domain.

Where does the robots.txt file have to be?

In the root of the host, for example https://example.com/robots.txt. A robots.txt in a subfolder is ignored, and each subdomain and protocol needs its own file: blog.example.com/robots.txt doesn't apply to shop.example.com.

Does Disallow stop a page from appearing in Google?

No. Disallow stops crawling, not indexing. A blocked URL can still be indexed without its content if other sites link to it. To keep a page out of search results, allow crawling and add a noindex meta robots tag or X-Robots-Tag header.

How does Google decide when Allow and Disallow both match?

The rule with the longest path wins, because it's the most specific. If an Allow and a Disallow rule are the same length, Allow wins.

Which group applies to Googlebot-Image?

A crawler uses the group with the most specific matching user agent. Googlebot-Image follows a Googlebot-Image group if one exists, otherwise the Googlebot group, otherwise the * group.

Is the robots.txt file case-sensitive?

Directive names like Disallow aren't, but paths are: Disallow: /Admin doesn't block /admin.

What if a site has no robots.txt?

If robots.txt returns 404, crawlers treat everything as allowed. A server error (5xx) can make Google pause crawling the site until the file is reachable again.

How long until Google sees my robots.txt changes?

Google usually caches robots.txt for up to 24 hours, so changes can take a day to apply. Search Console's robots.txt report shows the version Google last fetched and lets you request a recrawl.

Is there a size limit?

Google reads the first 500 KiB of a robots.txt file and ignores anything after that. Most sites need only a few lines.

Do these tools store the pages I check?

No. Pages and robots.txt files are fetched on demand to analyze them and are not saved. The robots.txt generator, tester and meta tag generator run entirely in your browser.

Can I check pages on localhost or my intranet?

No. For security, our server only fetches public websites. For a private page, use the 'Paste HTML' option of the meta tag checker.

Do the tools respect robots.txt?

The sitemap crawler follows your robots.txt rules and skips pages marked noindex, just like a search engine would.

Guides

Last updated:

Related SEO tools