Robots.txt / Sitemap Validator

Paste your robots.txt or sitemap.xml and catch mistakes before search engines crawl them - missing user-agent, bad XML, non-absolute URLs and more.

Runs entirely in your browser No signup · unlimited use

How it works

1

Paste your robots.txt or sitemap.xml content.

2

Pick the type or let it auto-detect.

3

Press Validate to see warnings and errors.

Why use this tool?

  • robots.txt is checked for a User-agent and known directives; unknown ones are flagged.

  • sitemap.xml is parsed as XML and checked for well-formedness and absolute <loc> URLs.

  • It runs locally - paste the content rather than a URL, so nothing is fetched.

  • Fix errors before you submit the file to Google Search Console or Bing Webmaster.

Frequently asked questions

Can I validate a URL directly?

This tool validates pasted content so it works offline and privately. Copy your robots.txt or sitemap.xml text into the box.

What makes a sitemap invalid?

Bad XML (unclosed tags), a missing <urlset> root, or <loc> values that are not absolute http(s) URLs.

Why warn about unknown robots directives?

Search engines only honour a fixed set of directives; an unknown one (a typo) is simply ignored, which can break your intent.

Is a passing check a guarantee?

It confirms structure and common rules. Crawl behaviour also depends on your server and the engine’s own limits.