Technical SEO

Free Robots.txt Validator and Tester

Paste a robots.txt file or fetch one from any website. Check its syntax line by line, see its HTTP status and size, and test whether a URL is allowed or blocked for Googlebot, Bingbot and the main AI crawlers.

  • Free
  • No sign-up
  • Paste or fetch
  • AI crawlers included

Your robots.txt

Example loaded
Results update as you type.

Test a URL

A full URL or a path such as /blog/my-article?ref=x.

Validation result

Valid — no errors found · 2 warnings to review
Groups3
Sitemaps1
Errors0
Warnings2

URL test

Testing /blog/robots-txt-guide

Access per bot
BotResultMatching rule
GooglebotAllowedNo matching rulegroup: User-agent: *
BingbotAllowedNo matching rulegroup: User-agent: *
GPTBotBlockedDisallow: /group: User-agent: GPTBot
ClaudeBotBlockedDisallow: /group: User-agent: ClaudeBot
PerplexityBotBlockedDisallow: /group: User-agent: PerplexityBot
Google-ExtendedAllowedNo matching rulegroup: User-agent: Google-Extended
AhrefsBotAllowedNo matching rulegroup: User-agent: *

Issues and recommendations

  • InfoLine 8: Google ignores Crawl-delay (Bing reads it)
  • WarningLine 18: Unknown directive "disalow" — will be ignored by crawlers
  • WarningLine 19: Sitemap URL should start with https:// — "/sitemap.xml"

Parsed groups

User-agent: *
Disallow: /cart/Disallow: /checkout/Disallow: /*?sort=Disallow: /wp-admin/Allow: /wp-admin/admin-ajax.phpCrawl-delay: 5
User-agent: GPTBot, ClaudeBot, PerplexityBot
Disallow: /
User-agent: Google-Extended
Disallow: /blog/drafts/
Sitemap: /sitemap.xml

How to use the Robots.txt Validator

  1. 1

    Paste or fetch the file

    Paste your robots.txt, or enter a domain to fetch https://domain/robots.txt with its HTTP status, redirects and size against Google's 500 KiB limit.

  2. 2

    Read the issues

    Errors, warnings and notes appear as you type: rules before a User-agent, unknown directives, full-site blocks, duplicate groups, missing sitemaps and rules Google ignores.

  3. 3

    Test a URL

    Enter a URL or path to see if Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot and Google-Extended may crawl it, and which rule decided.

Quick reference

How Google reads robots.txt

Source: Google Search Central: how Google interprets the robots.txt specification

File size limit
500 KiBGoogle ignores everything after the first 500 KiB.
Rules Google supports
user-agent, allow, disallow, sitemapcrawl-delay and noindex are ignored by Google.
When rules conflict
Longest match winsIf an Allow and a Disallow rule are equally long, the less restrictive Allow wins.
Wildcards
* and $* matches any characters; $ marks the end of the URL. Paths are case-sensitive.
4xx response
Treated as no robots.txtExcept 429. Google may crawl every URL on the site.
5xx or 429 response
Crawling pausedGoogle treats the site as fully disallowed and stops crawling for 12 hours while it retries. It caches the file for up to 24 hours.

What this robots.txt validator checks

A robots.txt file tells crawlers which URLs on a host they may request. It sits at the top level of the host (https://example.com/robots.txt), must be plain text in UTF-8, and is made of groups: one or more User-agent lines followed by Allow and Disallow rules.

  • Syntax: lines without a colon, unknown directives (such as a typo like Disalow), rules before any User-agent and paths that do not start with / or *.
  • Logic: a Disallow: / that blocks the whole site, the same user agent in several groups, no User-agent: * group and no Sitemap line.
  • Rules Google ignores: Crawl-delay and noindex.
  • Fetch checks: HTTP status, redirects, file size against 500 KiB and HTML served in place of a text file.

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

Which rule wins: how Google matches Allow and Disallow

Google first picks the group for the crawler: the group with the most specific matching user agent, or * if none matches. Groups for the same user agent are combined. Then, of the rules in that group that match the URL path, the longest one wins. If an Allow and a Disallow rule are equally long, Allow wins. The URL tester above follows these rules.

URLRulesResult
/pageallow: /p · disallow: /Allowed: /p is longer than /
/folder/pageallow: /folder · disallow: /folderAllowed: equal length, so Allow wins
/page.htmallow: /page · disallow: /*.htmBlocked: /*.htm is longer
/allow: /$ · disallow: /Allowed: /$ matches only the home page
/page.htmallow: /$ · disallow: /Blocked

HTTP status codes and what Google does

robots.txt responseWhat Google does
2xx (success)Reads and follows the file.
3xx (redirect)Follows at least five redirect hops, then treats it as a 404.
4xx except 429Acts as if there is no robots.txt: no crawl restrictions.
429 or 5xxTreats the site as fully disallowed and stops crawling for 12 hours, retrying robots.txt. A long outage falls back to the last cached copy.

A common mistake is a robots.txt URL that returns your site's HTML page with status 200. Crawlers find no valid rules in it. The fetch mode flags this.

Common robots.txt errors

  • Disallow: / left over from a staging site, which blocks the whole live site.
  • Blocking CSS or JavaScript files that Google needs to render your pages.
  • Expecting Disallow to remove a page from Google. Use noindex instead, and do not block that page.
  • Writing paths without a leading slash, or with the wrong case: /Blog/ does not match /blog/.
  • A relative Sitemap URL. Use the full URL: Sitemap: https://example.com/sitemap.xml.

Blocking AI crawlers with robots.txt

AI companies publish their own user agent tokens. List each one in a group to allow or block it. Check each vendor's documentation, because tokens change.

User agentCompanyWhat it controls
GPTBotOpenAICrawling for training OpenAI models
ClaudeBotAnthropicCrawling for training Claude models
PerplexityBotPerplexityCrawling to index pages for Perplexity answers
Google-ExtendedGoogleUse of your content for Gemini training and grounding. It does not affect Google Search.
CCBotCommon CrawlThe open web crawl many models are trained on
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: PerplexityBot
User-agent: Google-Extended
Disallow: /

Robots.txt is a request, not access control. Well-behaved crawlers follow it; others may not. Blocking AI crawlers can also make your brand less likely to appear in AI answers.

Testing robots.txt in Google Search Console

Google retired its old robots.txt Tester. Search Console now has a robots.txt report that shows the files Google found for the top 20 hosts of a property, when they were last fetched, their status and any parsing warnings, with an option to request a recrawl after a change. To check a single URL, use the URL Inspection tool.

Use this validator before you deploy a change, then confirm in Search Console after Google fetches the new file.

Keytomic logo

Catch crawl problems before they cost you traffic.

Keytomic's Technical Audit checks your whole site every week, including robots.txt, sitemaps, status codes and indexability, and explains each fix with the affected URLs.

  • 1ResearchTopics and keywords planned
  • 2WriteDrafts in your voice
  • 3PublishSent to your CMS
  • 4AuditIssues found weekly

FAQ

Robots.txt Validator questions,
answered.

Need this done for every page on your site? Talk it through with the team.

Book a demo
How do I test if a specific URL is blocked by robots.txt?

Paste or fetch the file, then enter the URL or its path in Test a URL. The tool shows Allowed or Blocked for Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, Google-Extended and one more bot of your choice, with the rule that decided.

Is a robots.txt checker the same as a validator?

Mostly. A validator checks the file's syntax and logic; a tester or checker tells you whether a given URL is allowed. This tool does both.

Is there a robots.txt size limit?

Yes. Google reads the first 500 KiB of the file and ignores the rest. Fetch your file here to see its size against the limit.

Which rule wins when Allow and Disallow both match?

The most specific rule, meaning the one with the longest path. If both are the same length, Google uses the less restrictive one, Allow.

What happens if robots.txt returns an error?

A 4xx error (except 429) means Google acts as if there is no robots.txt and may crawl everything. A 5xx error or 429 makes Google treat the site as fully blocked and pause crawling for 12 hours while it retries.

Why is Google still crawling or showing pages I blocked?

Google caches robots.txt for up to 24 hours, so changes take time. A blocked URL can also be indexed without its content if other pages link to it. Use noindex, not robots.txt, to keep a page out of results.

How do I know if my robots.txt blocks AI bots?

Fetch your file and look at the URL test: GPTBot, ClaudeBot, PerplexityBot and Google-Extended are checked by default, so you see at once whether each one may crawl the URL.

Does Google respect robots.txt?

Yes. Googlebot and Google's other crawlers follow robots.txt rules, but only the user-agent, allow, disallow and sitemap fields. Google ignores crawl-delay and noindex in robots.txt.

See all tools
Keytomic logo

Rank on Google and in AI search.
On autopilot.

Start your free trial
app.keytomic.com/acme.com/overview