XML Sitemap Validator
Validate a sitemap.xml locally: XML syntax errors with line numbers, urlset and sitemap index structure, missing or invalid loc, lastmod, changefreq and priority values, and duplicate URLs. Paste XML or open a file.
Validate a sitemap.xml locally: XML syntax errors with line numbers, urlset and sitemap index structure, missing or invalid loc, lastmod, changefreq and priority values, and duplicate URLs. Paste XML or open a file.
XML Sitemap Validator checks the structure of a sitemap you paste or open from your device. It first parses the XML and reports syntax errors with the line and column the browser provides. It then recognises both standard formats — a <urlset> of <url> entries and a <sitemapindex> of <sitemap> entries — and checks every entry for a present, absolute http or https <loc>, a valid W3C date in <lastmod>, an allowed <changefreq> value and a <priority> between 0.0 and 1.0.
The report counts valid entries, entries with warnings and entries with errors, and lists each problem with its entry number and approximate line. It also flags duplicate URLs, mixed or incorrect root structures, non-standard child elements and missing namespaces. Everything happens in your browser: DOCTYPEs and external resources are never loaded, and the tool does not visit the URLs, so it cannot confirm that pages are reachable, indexed, submitted or accepted by any search engine.
No. It checks the structure and format of the sitemap only. It never visits the URLs, so it cannot confirm that pages load, redirect correctly, are indexed or are accepted by a search engine.
W3C Datetime formats such as 2026-11-01, 2026-11, 2026 or 2026-11-01T10:30:00+05:30 (a time needs a time zone, such as Z or +05:30). Impossible dates such as 2026-02-30 are reported as errors, and future dates as warnings.
changefreq must be one of always, hourly, daily, weekly, monthly, yearly or never. priority must be a number from 0.0 to 1.0.
Yes. A <sitemapindex> is checked for <sitemap> entries with a valid <loc> and optional <lastmod>. Mixing <url> and <sitemap> entries in one file is reported as an error.
Sitemaps should not contain a DOCTYPE, and for safety the tool does not process DOCTYPEs or entity definitions. Remove the DOCTYPE and validate again.
Elements from other namespaces, such as image or xhtml link extensions, are counted and skipped. Only the core sitemap elements are validated.