XML Sitemap Validator
Enter a sitemap URL — or just your domain — or paste the XML to validate it against the sitemaps.org protocol and Google's rules. The validator reports XML errors with the line and column, a wrong or missing namespace, files over 50,000 URLs, invalid or relative URLs, URLs on another host or protocol, duplicates, and lastmod dates in the wrong format or in the future.
It handles URL sitemaps, sitemap indexes — open any child sitemap with one click — and plain-text sitemaps, and checks whether robots.txt points crawlers to the file.
XML Sitemap Validator
Our server fetches the public sitemap you name and keeps no copy; pasted XML is checked in your browser.Enter just a domain and the validator finds the sitemap through robots.txt or the usual addresses.
What a valid XML sitemap needs
The rules come from the sitemaps.org protocol, which Google, Bing and other engines follow, plus what Google documents about using the optional fields.
- <urlset>
Root and namespace
The root is <urlset> (or <sitemapindex>) with xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" — exactly that, http included.
- https://
Absolute URLs
Every <loc> is a full URL on the same host and protocol as the sitemap itself.
- 50,000
Size limits
At most 50,000 URLs and 50 MB uncompressed per file. Bigger sites split into several sitemaps listed in an index.
- &
Escape special characters
Write & as & inside URLs. A bare & breaks the whole file.
- lastmod
Real dates only
W3C format, such as 2026-10-29. Google uses lastmod when it's accurate; the same date on every URL gets ignored.
- priority
Ignored by Google
changefreq and priority do nothing in Google; other engines may read them.
The smallest valid sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/pricing</loc>
<lastmod>2026-10-29</lastmod>
</url>
</urlset>
How to validate a sitemap
- 01
Enter the sitemap or the domain
With just a domain, the validator looks for a Sitemap: line in robots.txt, then the usual addresses. Or paste the XML.
- 02
Fix XML errors first
An XML error stops search engines from reading the file at all; the validator shows the line and column.
- 03
Clean up the URLs
Every <loc> should be an absolute URL on the sitemap's host and protocol, listed once — and a page you want indexed.
- 04
Submit it
Once it passes, submit the sitemap in Search Console and add a Sitemap: line to robots.txt.
What this validator does and does not do
It validates the file, not the pages in it: URLs are checked for format, host and duplicates, but they aren't fetched. Whether each one answers 200 and is indexable is what a crawl of the site checks.
It reads up to 10 MB of a sitemap and validates everything in that part. Compressed .xml.gz files aren't read yet: check the uncompressed file or paste its contents.
Google ignores changefreq and priority and uses lastmod only when it's consistently accurate, so those are reported as notes, not errors.
Our server fetches the public sitemap and robots.txt, returns the report and keeps no copy; pasted XML never leaves your browser.
Check every URL in your sitemap, not just the file
The free Seonix site audit reads your sitemap and checks the pages in it: entries that return 404 or redirect, noindexed pages listed in the sitemap and indexable pages missing from it — alongside broken links and the rest of your technical SEO. On paid plans Seonix also researches, writes and publishes articles built to rank in Google and get cited in AI answers.
SEO on autopilot for the site you have
Seonix researches, writes and publishes articles — and keeps the technical side in check — wherever your site lives.
WordPress sites
The free Seonix plugin connects in one click: articles publish as native posts, and SEO fixes and llms.txt are handled for you.
WordPress SEO automationSaaS products
Your AI coding agent connects your app to Seonix from one prompt; keyword-backed articles then publish to your own domain on schedule.
SaaS SEO on autopilotCustom-built websites
No WordPress needed: your site exposes one small endpoint and articles arrive as native pages in your own design.
SEO for custom websitesFrequently asked questions
How do I check if my sitemap is valid?
Where is my sitemap?
Why does Search Console say my sitemap couldn't be fetched or read?
Do I need lastmod, changefreq and priority?
How many URLs can a sitemap have?
Should every page be in the sitemap?
More free tools
Noindex & Indexability Checker
Is a URL indexable? noindex, robots.txt, status code and canonical in one check.
Robots.txt Generator
Build a robots.txt with rules for GPTBot and other AI crawlers, then test any URL.
301 Redirect Checker
Trace every hop of a redirect: status codes, Location targets, chains and loops.
