DomainLens

SEO tools

Sitemap Validator: Find and Check a Site's XML Sitemap

Looks for the sitemap the way a crawler does — the robots.txt declaration first, then the conventional locations — then confirms it parses as XML and counts the URLs inside it.

Paste a full URL to check a specific page, or a bare domain to check the home page.

What this sitemap validator tests

Discovery order matters. The robots.txt declaration is the only location a crawler is told about without guessing, so a sitemap that exists but is never declared is doing less work than it should.

  • Whether a sitemap can be found at all, starting from the Sitemap: line in robots.txt.
  • Whether the response is 200 and is served as XML rather than an HTML page.
  • Whether the document parses, and whether it is a urlset or a sitemap index.
  • How many URLs it declares, following an index to its children where necessary.

What a valid sitemap does not guarantee

Syntax validity and usefulness are different properties. A perfectly well-formed sitemap can still hurt you if a third of its URLs redirect, return 404, or carry a noindex directive — it then reads as a list of pages you could not describe accurately.

After this check passes, sample the URLs themselves: take twenty at random and confirm each returns 200, is canonical to itself, and is indexable.

Common sitemap failures

For the format itself, the required elements, and how to split a large file, see the XML sitemap guide.

SymptomCauseFix
Not foundNo robots.txt declaration and a non-standard pathDeclare it in robots.txt
Returns HTMLA soft 404 or an SPA catch-all routeServe real XML with an XML content type
Behind a redirectA host or slash rule catching the fileServe it directly at the declared URL
Parses but emptyAn index whose children are never generatedGenerate the child files
Does a sitemap make Google index my pages?
No. A sitemap is a discovery hint. It helps Google find URLs, and has no influence on whether Google judges them worth indexing once found.
Should the sitemap be at /sitemap.xml?
It is the strong convention, and a root location matters technically too: a sitemap may only list URLs at or below its own directory.

Other tools