Skip to content
LinkHeron
Menu
Free tool

Robots.txt checker and validator

Check any site's robots.txt in seconds. Find syntax errors, test a URL against Google's rules, and see whether Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot and other AI crawlers can reach it. Or paste a draft file to test it before you publish.

What is a robots.txt checker?

A robots.txt checker reads the robots.txt file at the root of a website and tells you two things: whether the file is valid, and which crawlers may visit which URLs. It matters because one wrong line can stop search engines or AI tools from reading your most important pages.

Illustration: a robots.txt file with user-agent and disallow lines, next to a list of crawlers such as Googlebot, GPTBot and PerplexityBot marked allowed or blocked.

How to use the robots.txt checker

  1. Enter a domain to load its live robots.txt, or switch to Paste robots.txt to test a draft.
  2. Enter a URL or path you care about, such as /blog/ or /pricing/. The default is the homepage.
  3. Read the crawler table. Each row shows whether that bot is allowed or blocked on your path, and the exact line that decides it.
  4. Fix the errors and warnings listed under the table. Problem lines are highlighted in the file view.
  5. Test any other bot by typing its user agent token, for example AhrefsBot or SemrushBot.

How Google reads robots.txt

The checker follows the rules in Google's robots.txt specification:

  • One group per crawler. A crawler uses the group with the most specific user agent that matches it, and ignores the rest. Rules under User-agent: * are not added to a bot's own group.
  • Longest path wins. When allow and disallow rules both match a URL, the rule with the longer path applies. If they are equally long, Google uses the less restrictive one, the allow.
  • Two wildcards. * matches any characters and $ marks the end of the URL, so Disallow: /*.pdf$ blocks PDF files.
  • Paths are case sensitive, field names are not.
  • Four fields only. Google supports user-agent, allow, disallow and sitemap. It ignores crawl-delay and anything else.
  • 500 KiB limit. Content after the first 500 KiB is ignored.
  • Missing file: a 404 means everything is allowed. A server error makes Google pause crawling for a while.

Common robots.txt mistakes the validator catches

  • Rules placed before any user-agent line, so no crawler applies them.
  • Misspelled directives such as "Dissallow", which crawlers silently ignore.
  • A relative sitemap path instead of a full https:// URL.
  • Noindex lines in robots.txt. Google stopped supporting them; use a robots meta tag instead.
  • Blocking CSS or JavaScript files that Google needs to render your pages.
  • User-agent: * with Disallow: / left over from a staging site, which blocks every crawler without its own group.
  • An HTML page served at /robots.txt, or the file served with the wrong content type.

Robots.txt and AI crawlers

AI companies run several crawlers with different jobs, and each one reads its own robots.txt group. The checker tests these, with names taken from each vendor's documentation:

CrawlerOwnerWhat it does
OAI-SearchBotOpenAIAI search: Shows sites in ChatGPT search results.
Claude-SearchBotAnthropicAI search: Indexes pages to improve Claude's search results.
PerplexityBotPerplexityAI search: Surfaces and links sites in Perplexity answers.
ChatGPT-UserOpenAIAI user request: Fetches a page when a ChatGPT user asks. OpenAI says robots.txt rules may not apply.
Claude-UserAnthropicAI user request: Fetches a page when a Claude user asks.
Perplexity-UserPerplexityAI user request: Fetches a page for a user's question. Perplexity says it generally ignores robots.txt.
GPTBotOpenAIAI training: Content that may be used to train OpenAI models.
ClaudeBotAnthropicAI training: Content that may be used to train Anthropic models.
Google-ExtendedGoogleAI training: Gemini training and grounding. Google says it does not affect Search inclusion or ranking.
Applebot-ExtendedAppleAI training: Controls use of Applebot data for Apple's AI models.
CCBotCommon CrawlAI training: Open web archive widely used to train AI models.
meta-externalagentMetaAI training: Meta's crawler for AI training and products.

The practical split: AI search crawlers decide whether tools like ChatGPT search and Perplexity can find and cite your pages, while training crawlers relate to building future models. If you want to appear in AI answers, keep the search crawlers allowed. Allowing them does not guarantee a citation; that depends on your content and the sources AI tools trust. Our guides on LLM SEO and AI visibility tracking tools cover the rest, and the llms.txt generator adds an optional map of your key pages for AI tools.

Robots.txt is not a privacy or indexing tool

Robots.txt asks well behaved crawlers not to visit URLs; it does not protect them. Anyone can read the file, and a blocked URL can still be indexed if other pages link to it, as Google explains in its introduction to robots.txt. Use passwords for private content and noindex for pages you want out of search.

Robots.txt checker FAQ

How do I check my robots.txt file?

Enter your domain in this robots.txt checker. It loads yoursite.com/robots.txt, checks the syntax, and shows whether Googlebot, Bingbot and the main AI crawlers may crawl the URL you choose, with the line that decides it. You can also paste the file to test changes before you publish them.

How do I know if Googlebot is blocked by robots.txt?

Test the URL here: the Googlebot row shows Allowed or Blocked and the rule responsible. Google uses the most specific user-agent group that matches, then the longest matching path; if an allow and a disallow rule are equally long, the allow rule wins. Search Console also has a robots.txt report for your own site.

Does blocking a page in robots.txt remove it from Google?

No. robots.txt controls crawling, not indexing. A blocked URL can still appear in results if other pages link to it. To keep a page out of Google, allow crawling and use a noindex robots meta tag or X-Robots-Tag header.

Should I block GPTBot and other AI crawlers?

It depends on what you want. Search and assistant crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot decide whether AI tools can find and cite your pages, so blocking them can cost you visibility. Training crawlers such as GPTBot, ClaudeBot and Google-Extended relate to model training. Many sites allow the first group and decide separately on the second.

What is the size limit for robots.txt?

Google reads the first 500 KiB of a robots.txt file and ignores the rest. Keep the file short and use wildcards instead of listing thousands of URLs.

Crawlable is step one. Cited is the goal.

We find the pages AI tools cite for your buyers' questions and work on getting your brand onto them, with prices shown before you approve anything.