Sitemap validator
A sitemap validator checks that an XML sitemap follows the sitemap protocol, so search engines can read every URL in it. Paste a sitemap address and this tool reads the file, gzipped or not, and lists each problem in plain words: a missing namespace, an unescaped “&”, invalid dates, duplicate URLs, URLs on another host, and files over the size limits.
It’s for developers and SEOs who have just generated a sitemap, or who see “Couldn’t fetch” or “Sitemap could be read, but has errors” in Google Search Console. To find a site’s sitemap first, use the Sitemap Checker.
Free with a ShipScroll account.
How to use the Sitemap Validator
- Paste the sitemap’s full address, such as https://example.com/sitemap.xml. A bare domain checks /sitemap.xml.
- Press Validate sitemap.
- Read the problems list from the top: anything that stops the file parsing matters most.
- Fix the generator or the file, publish it, and validate again before resubmitting in Search Console.
What the sitemap validator checks
| Check | Why it matters |
|---|---|
| Root element and namespace | Without <urlset> or <sitemapindex> and the sitemaps.org namespace, crawlers may not treat the file as a sitemap |
| Escaped characters | A bare & in a URL breaks the XML, so most crawlers can’t read the file at all |
| Content type | The file should be served as XML, not as a web page |
| 50,000 URLs and 50 MB | The protocol’s limits for one file; split anything bigger and list the parts in an index |
| Same host and protocol | URLs should sit on the sitemap’s own host, with the same http or https |
| lastmod dates | Must be W3C dates such as 2026-11-21, and not in the future |
| changefreq and priority | Optional, but must use the allowed values if present |
| Duplicates and long URLs | Each URL once, and no URL over 2,048 characters |
The most common sitemap errors
- An unescaped ampersand: a URL with ?a=1&b=2 must be written as ?a=1&b=2 inside the XML. Hand-written and template-built sitemaps get this wrong most often.
- An HTML page instead of XML: the address returns a 404 page or a login screen, often because the sitemap moved.
- Mixed hosts: www and non-www, or http and https, in one file. Pick the version your canonical tags use.
- Generated dates: every lastmod set to the build time, which tells search engines nothing useful.
Does Google use changefreq and priority?
No. Google says it ignores the changefreq and priority values, and uses lastmod only when it’s consistently accurate. They’re still valid in the protocol, so this validator only flags them when their values are wrong. Your effort is better spent on correct lastmod dates.
Questions
What’s the difference between the Sitemap Validator and the Sitemap Checker?
The Sitemap Checker finds a site’s sitemaps through robots.txt and counts the URLs across them. The Sitemap Validator goes deeper into one file, checking its XML, namespace, escaping, values and duplicates against the protocol.
Can it validate a sitemap index?
Yes. It recognises a sitemap index, counts the sitemaps it lists and checks for duplicates and the 50,000-entry limit. To check the files it lists, validate each one’s address, or use the Sitemap URL Extractor to read them all.
Does a valid sitemap mean my pages will be indexed?
No. A valid sitemap helps search engines discover your URLs, but they still decide what to index based on quality and other signals. It does remove one common reason pages are missed.
Why does my sitemap work in the browser but fail here?
Some sites block automated requests with bot protection, so the tool gets an error page your browser doesn’t. Search engine crawlers are often allowed through, but check your firewall rules if Search Console also reports fetch errors.
Related tools
- Sitemap CheckerFind a site’s sitemap, count its URLs, and catch errors against the protocol.
- Sitemap URL ExtractorList every URL in a site’s sitemaps, with counts per file, and copy or download them.
- XML Sitemap GeneratorTurn a list of URLs into a valid sitemap.xml, split into an index past 50,000 URLs.
Sources
Put your AI tool in front of this week’s launches
Link your product, pick your weeks and see a live preview before you pay — or launch for free.
