A sitemap tells search engines which pages to crawl, so errors in it can hide pages or waste crawls. The Sitemap Validator takes a domain, a sitemap URL or pasted XML. With a domain, it finds the sitemap through the Sitemap lines in robots.txt, then /sitemap.xml and /sitemap_index.xml.
It checks that the XML is well formed and uses the sitemap namespace, that the file stays under 50,000 URLs and 50MB, and that every loc is absolute, on the same host, on HTTPS, escaped and listed once. It checks lastmod dates against the W3C format and flags invalid or identical priority and changefreq values. For a sitemap index, it reads up to 10 child sitemaps. Then it fetches up to 25 listed URLs, spread across the file, and flags errors, redirects, noindex and canonical mismatches.
Each sitemap file is read up to 10MB. The XML check covers structure, tags, quoting and escaping, but it is not a full XML schema validation. The 25 sampled URLs are a spot check, so the other listed URLs are not fetched.
Get results in just a few simple steps
Enter a domain, a sitemap URL, or paste the sitemap XML
With a domain, the tool finds the sitemap through robots.txt or the usual paths
It checks XML structure, the namespace, file size and the 50,000 URL limit
It checks every loc, lastmod, priority and changefreq value
For a sitemap index, it reads up to 10 child sitemaps
It fetches up to 25 listed URLs and flags errors, redirects, noindex and canonical mismatches
Fix each issue with the explanation shown and validate again
Don't make these frequent errors
Including URLs that return 404 or redirect
Using incorrect date format for lastmod (should be W3C format)
Setting all priorities to 1.0 (makes priority meaningless)
Including non-canonical URLs or duplicate content
Exceeding 50,000 URLs or 50MB file size limits
Sitemap dates should use W3C Datetime format: YYYY-MM-DD for dates (2024-01-15) or full ISO 8601 for datetime (2024-01-15T09:30:00+00:00). Our validator flags incorrectly formatted dates.
No. Google says it ignores the priority and changefreq values. Accurate lastmod dates matter more, because Google uses lastmod when it is consistently correct.
A single sitemap can contain up to 50,000 URLs and must be under 50MB uncompressed. For larger sites, use a sitemap index file that references multiple sitemap files. This tool flags a sitemap that goes over either limit.
Include only indexable, canonical pages. Exclude noindex pages, redirect URLs, paginated pages (usually), and duplicate content. Your sitemap should match what you want Google to index.
Dive deeper into these topics with our comprehensive guides and templates.
Enter your domain for a free AI visibility audit. It asks AI search real buyer questions for your market and shows who it cites instead of you.