Robots.txt Validator

Audit, jump to the exact line, fix in one click, and watch the score recover.

93now94potentialGood

Your robots.txt is technically valid, but AI-crawler coverage is the biggest gap — decide allow/block per crawler.

robots.txt

How the robots.txt validator checks your file

Paste a file or fetch it from your domain. The validator parses it the way RFC 9309 and Google describe, then reports each problem with its line, its severity, and a fix you can apply and re-check in place. It runs in your browser — the file you paste is not uploaded.

Checking, validating, and testing are different questions

  • Validate: is the file well-formed, and does it contain risky patterns? (this page)
  • Test: is one specific URL allowed or blocked for one crawler? Use the URL Tester — a valid file can still block the wrong page.
  • Analyze: fetch a live site's file and see which search and AI crawlers it lets in.

What each severity means

SeverityMeaningExample
ErrorCrawlers will ignore or misread the lineDisallow /admin/ (no colon)
WarningValid, but likely not what you intendedUser-agent: * + Disallow: /
InfoA decision worth making explicitlyNo rule for GPTBot (inherits *)

What it catches: examples

A missing colon silently drops the rule

robots.txt
User-agent: *
Disallow /admin/

Write Disallow: /admin/. Without the colon, crawlers skip the line and /admin/ stays crawlable.

The whole site is blocked for every crawler

robots.txt
User-agent: *
Disallow: /

Usually a staging file shipped to production. Remove the line, or block only specific paths.

Noindex in robots.txt does nothing

robots.txt
User-agent: *
Noindex: /private/

Google stopped supporting it in 2019. Use a noindex meta tag or X-Robots-Tag header, and leave the page crawlable so the tag can be seen.

A relative sitemap URL is ignored

robots.txt
User-agent: *
Allow: /

Sitemap: /sitemap.xml

Use the absolute URL: Sitemap: https://example.com/sitemap.xml.

Blocking CSS or JavaScript hurts rendering

robots.txt
User-agent: *
Disallow: /*.css$

Google renders pages like a browser; let it fetch the CSS and JS the page needs.

Frequently asked questions
How do I check if my robots.txt is valid?

Paste the file above or fetch it from your domain. The validator lists every error and warning with its line number and a suggested fix. Apply fixes in place, re-check, then download the corrected file.

What's the difference between a robots.txt checker and a validator?

People use the words interchangeably. Validation checks the file itself (syntax, conflicts, risky rules). To check whether a specific page is reachable, test that URL against a crawler in the URL Tester.

Does a valid robots.txt mean Google will index my pages?

No. robots.txt only controls crawling by crawlers that choose to follow it. A valid file can still block important URLs, and an allowed URL is not guaranteed to be crawled or indexed.

Is the validator free?

Yes. It needs no sign-up, and a pasted file is processed in your browser.

Next steps

More tools & related guides
More tools
Related guides