An XML sitemap lists the URLs you want search engines to crawl, along with optional metadata. Search engines silently ignore entries that break the schema, so a single relative <loc>, a malformed <lastmod>, or an out-of-range <priority> can quietly drop pages from indexing. This XML sitemap validator checks your file against the sitemaps.org 0.9 schema in your browser.
How it works
The tool first parses your input with the browser’s XML parser and reports any well-formedness error. It then inspects the root element to decide whether it is a <urlset> (a URL sitemap) or a <sitemapindex> (a list of sitemaps), and applies the matching rules:
- Every
<url>(or<sitemap>) must contain a<loc>, and that<loc>must be an absolutehttporhttpsURL no longer than 2048 characters. <lastmod>must be a valid W3C / ISO 8601 date or datetime; calendar-impossible dates are rejected.<changefreq>must be one ofalways,hourly,daily,weekly,monthly,yearly, ornever.<priority>must be a number between0.0and1.0.- A file may contain at most 50,000 entries.
Example
In the sample, the second entry has a relative <loc> of /relative-bad, a <changefreq> of often, and a <priority> of 2.0. The validator flags all three: the URL is not absolute, often is not in the changefreq enum, and a priority above 1.0 is out of range.
Notes
Passing this validator confirms your sitemap is structurally correct, not that the listed URLs return 200 or are canonical. After it reads valid, submit the sitemap in Search Console and watch the coverage report. All checks run locally, so internal or staging sitemaps stay private.