- Home
- Free tools
- XML Sitemap Validator
Free tool · No signup
XML Sitemap Validator
Catch structural errors, invalid URLs, and missing metadata in your sitemap before Google does.
- • XML parse error: DOMParser is not defined
In short
Validating a sitemap means checking it against the sitemaps.org protocol: well-formed XML, a correct urlset or sitemapindex namespace, absolute URLs on the same host, W3C-format lastmod dates, and no more than 50,000 URLs or 50MB uncompressed per file. A sitemap that fails any of these is rejected wholesale, not partially — one malformed entry can cost you the entire file.
Worked example
What the output looks like
- Input
- <url><loc>/blog/seo-audit</loc><lastmod>08/05/2026</lastmod><priority>1.5</priority></url>
- Output
- 3 errors — <loc> is relative, not absolute; <lastmod> is not W3C date format; <priority> exceeds the 0.0–1.0 range
- How to read it
- All three are silent failures in a browser but rejected by Google. The fix is an absolute https URL, a 2026-08-05 date, and a priority of 1.0 — though priority is effectively ignored by Google and can simply be dropped.
How it works
Paste the raw XML
Use view-source on yourdomain.com/sitemap.xml and copy the whole document, including the XML declaration and namespace attribute.
Check the URLs, not just the syntax
Every <loc> must be absolute, on the same host as the sitemap, and canonical. Listing redirects, noindexed pages or non-canonical variants wastes crawl budget and dilutes the signal.
Treat lastmod as a promise
Google ignores lastmod on sites where it is generated at build time and changes on every deploy. Emit it only when the page's content genuinely changed, or omit it.
What this tool does
- Parses <urlset> and <sitemapindex>
- Validates <loc>, <lastmod>, <changefreq>, <priority>
- Counts URLs and warns above sitemaps.org limits (50K / 50MB)
- Client-side only — no upload, no logging
Questions
Frequently asked
More free SEO tools
- Robots.txt Tester/free-tools/robots-txt-tester
- SERP Simulator/free-tools/serp-preview
- JSON-LD Schema Validator/free-tools/schema-validator
Learn the concept
Do it inside LemRank
Crawl your site and compare it against your sitemap
LemRank tracks rankings, backlinks, and AI-search visibility in one dashboard. 14-day free Pro trial. No credit card.