XML Sitemap Validator
Validate an XML sitemap or sitemap index by URL or pasted XML: structure, namespace, URLs, lastmod dates, priorities, duplicates and limits.
Processed on our server. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the XML Sitemap Validator
- 1 Enter the URL of your sitemap, or paste its XML.
- 2 Click Validate.
- 3 Fix the errors listed by line number and validate again.
About the XML Sitemap Validator
Search engines silently skip sitemaps or entries they can't read. A sitemap with a wrong namespace, relative URLs or a malformed date may therefore help much less than you think, and you'd only notice it in Search Console after a while.
The validator reads the file as a search engine would: it checks that the XML is well-formed, that the root is <urlset> or <sitemapindex> in the sitemaps.org namespace, and that every entry has an absolute http(s) <loc>. It validates <lastmod> against the W3C date format, <changefreq> against the allowed values and <priority> against the 0.0–1.0 range, and flags duplicates and files over 50,000 entries or 50 MB.
Errors are things search engines reject; warnings are worth a look but usually harmless. For a sitemap index, the child sitemaps are listed; validate them one by one. Gzipped sitemaps (.xml.gz) are decompressed automatically.
Frequently asked questions
What does the sitemap namespace have to be?
http://www.sitemaps.org/schemas/sitemap/0.9 on the <urlset> or <sitemapindex> element.
Can URLs in a sitemap be relative?
No. Every <loc> must be a full URL including https://.
What date format does lastmod use?
W3C Datetime: 2026-11-30, or with a time like 2026-11-30T14:05:00+01:00.
Does a valid sitemap guarantee indexing?
No. It helps search engines find your pages; whether they are indexed depends on their quality and other signals.