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.
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.
Similar tools
- Canonical Tag Checker & Link AuditorCheck a page's canonical the way Google reads it: in <head> or pushed into <body>, self or another URL, duplicates, the Link header, og:url and noindex conflicts — from a live page or pasted HTML.
- hreflang Tag & ISO Region GeneratorBuild hreflang annotations with ISO 639-1 / 3166-1 checks (en-UK → en-GB), x-default and self-reference checks, as HTML <link>, an XML sitemap or an HTTP Link header.
- JSON-LD Schema Markup GeneratorCreate Schema.org JSON-LD for Article, Product, FAQPage, LocalBusiness, BreadcrumbList and Organization with required-field checks, as a <script> tag or .json.
- Long-Tail SEO Keyword Variation GeneratorLong-tail keyword ideas from seed keywords: questions, prepositions, buying intent, comparisons, year and A–Z prompts, in Indonesian or English, exported as .txt or .csv.