Sitemap Validator
Validate any XML sitemap: well-formed XML, URL count, lastmod dates, and live status spot-checks on sampled URLs — errors listed in plain language.
Sitemap Validator
A sitemap with broken XML, dead URLs or invalid dates is worse than no sitemap — it wastes crawl budget and teaches Google to distrust the file. This validator parses any sitemap properly, checks it against the protocol limits, and spot-checks the first URLs live.
How to use
- Enter the full sitemap URL (usually yoursite.com/sitemap.xml).
- Click "Validate Sitemap".
- Fix errors first — malformed XML and unreachable files block everything else.
- Review the spot-check: redirects and 404s inside a sitemap should be replaced with the final, live URLs.
- Check lastmod warnings — invalid or fake dates get ignored by Google.
- Re-validate after regenerating the sitemap.
Tips
- List only canonical, indexable, 200-status URLs in a sitemap — it is a list of your best pages, not a crawl trap.
- Keep lastmod honest: the date the content actually changed. Google ignores files whose dates are always "today".
- If the validator reports a sitemap index, make sure every child file also passes.
Frequently asked questions
What are the sitemap protocol limits?
Maximum 50,000 URLs and 50 MB (uncompressed) per file. Larger sites use a sitemap index pointing to multiple files.
What does the spot-check do?
It fetches the first 20 URLs in the file and reports their live status codes, so dead or redirected entries surface immediately.
Why do redirects in a sitemap matter?
A sitemap should list final destinations. Redirected entries waste crawl budget and signal a stale file.
Are lastmod dates checked?
Yes — each lastmod is parsed; unparseable dates are listed as errors and implausible patterns as warnings.
What if my sitemap is an index file?
The validator detects it, lists every child sitemap, and checks each child is reachable.
Does a valid sitemap guarantee indexing?
No — it guarantees the file is readable and honest. Indexing still depends on the pages themselves.
Can I validate a sitemap before it is live?
The file must be reachable by URL. Upload it to a test path and validate that URL.
Is my sitemap URL stored?
No — fetched for the check, nothing stored.
Why did validation fail to fetch my file?
The file may be blocked by robots rules for automated agents, behind auth, or simply missing (404). The report states which.
Is this tool free?
Yes — free, no sign-up, fair-use limit applies.