Skip to main content
KalkuNet

XML Sitemap Validator — Protocol, URLs, lastmod and hreflang by Line

Validate an XML sitemap or sitemap index with a real XML parser: namespace, <loc>, host, W3C lastmod, changefreq, priority, duplicates, hreflang and size limits, by line — fetch, paste or open .xml/.gz.

Runs in your browserWeb · SEO & Metadata
…or open an .xml or .xml.gz file:

The XML is parsed with the browser's XML parser, so an unescaped & or an unclosed tag is reported straight away with its position.

When to use the XML Sitemap Protocol Validator

  • A real XML parser

    The sitemap is parsed with the browser's XML parser, so an unescaped &, an unclosed tag or broken encoding is reported straight away with its position.

  • The whole protocol

    Namespace, one <loc> per entry, full URLs on the same host, at most 2,048 characters, W3C lastmod not in the future, changefreq and priority values, and duplicate URLs.

  • hreflang inside the sitemap

    xhtml:link annotations are checked against the official ISO code lists, including mistakes such as en-UK, and every entry must list its own URL.

  • Fetch, paste or open a file

    Fetch a sitemap from a site, paste its content, or open an .xml or .xml.gz file that is decompressed right in the browser. The report can be copied or downloaded for developers.

Frequently asked questions

What is the difference between urlset and sitemapindex?

urlset lists pages. sitemapindex lists other sitemap files, used when there are more than 50,000 URLs or the file is larger than 50 MB.

Which lastmod format is correct?

W3C Datetime, for example 2026-11-21 or 2026-11-21T08:00:00+07:00. Dates such as 21/11/2026 are invalid.

Can a sitemap list URLs on another domain?

Generally no: a sitemap is for the host it is served from, unless ownership of the other host is verified in Search Console.

Are compressed sitemaps supported?

Yes. Google reads .xml.gz sitemaps, and the 50 MB limit applies to the uncompressed size. The content must still be UTF-8.

Learn more