XML Sitemap Validator
Paste a sitemap and get every error with the line it is on — bad dates, over-limit files, mixed hosts, relative URLs, duplicates, missing namespaces.
Nothing you type here is uploaded, stored or sent anywhere. It all runs in your browser.
The limits are hard limits
A sitemap file may contain at most 50,000 URLs and may be at most 50MB uncompressed. Go over either and the whole file is rejected — not truncated, rejected. Split it and list the parts in a sitemap index, which has the same two limits applied to the number of sitemaps it points at.
The 50MB figure is the uncompressed size. Gzipping the file is a good idea for transfer, and it does not raise the ceiling: a 60MB sitemap that gzips to 4MB is still over the limit.
lastmod is the only optional element Google still reads
Google has said plainly that it ignores <changefreq> and <priority> completely. Setting every page to 1.0 does nothing, and neither does setting them honestly. They are not harmful, they are just noise, and a sitemap generator that fills them in is telling you it was written a long time ago.
<lastmod> is different — Google does use it, on one condition: it has to be true. If your CMS stamps today's date on every URL every night, Google notices the dates are meaningless and starts ignoring the element for your whole site. That is worse than omitting it. Use the date the content actually changed, and if you cannot produce that, leave the element out.
What a sitemap can and cannot contain
- Absolute URLs only.
/pricingis invalid. It needs the protocol and the host, every time. - One host per file. Every URL must be on the same host as the sitemap itself, unless you have verified cross-submission in Search Console. Mixing
example.comandwww.example.comcounts as two hosts. - Properly escaped. A bare
&in a URL is a well-formedness error and kills the whole file. It must be&. This is the single most common reason a sitemap parses in a browser but fails in Search Console. - Only indexable URLs. The file is a list of pages you want indexed. Including URLs that are noindexed, canonicalised elsewhere, redirected or 404ing is not an error in the XML, but it is the fastest way to make the coverage report unreadable.
Why Search Console says "Couldn't fetch"
Nine times out of ten this is not the XML. It is the sitemap URL returning a 404, a 301 to somewhere else, or an HTML page from a CDN error handler. Search Console reports all of those the same way. Fetch the sitemap URL yourself with the cache bypassed before assuming the file is at fault — and check that /robots.txt is not disallowing the path the sitemap lives on, which is a genuinely common own goal.
Questions people ask
Should I use a sitemap index or one big file?
An index, as soon as you are past a few thousand URLs, and split by section rather than arbitrarily — products, articles, categories. The reason is diagnostic, not technical: Search Console reports coverage per sitemap file, so splitting by section tells you which part of the site is having trouble. One 50,000-URL file tells you nothing.
Does a sitemap help my pages rank?
No. It helps them get discovered, which is a different problem. A sitemap is useful when you have pages that are not well linked internally, a very large site, or a new site with few external links. If a page is properly linked from your own navigation, the sitemap adds nothing to it.
Can I list a URL that redirects?
You can, and it is not a validation error, but do not. Search Console flags it as an issue, and it tells Google the sitemap is not maintained. A sitemap should list the final, canonical, 200-returning version of every URL.
What about image, video and news sitemaps?
Those are namespaced extensions to the same file — extra elements inside each <url>, declared with an xmlns:image, xmlns:video or xmlns:news attribute on the root. This tool checks that any prefix you use is actually declared, which is the mistake that breaks them, but it does not validate the contents of those extensions.
Why does this find errors when my browser displays the file fine?
Browsers are forgiving about XML in ways parsers are not, and a lot of sitemap problems are not well-formedness problems at all. A future lastmod, a mixed host, a duplicate URL and a 60,000-URL file are all perfectly valid XML and all rejected or ignored by Google.
Is my sitemap uploaded anywhere?
No. The parser runs in your browser. Nothing you paste leaves the page, which matters more than usual here, because a sitemap is a complete map of a site including anything you have not launched yet.
Related tools
A clean sitemap gets you crawled, not ranked
Submitting a URL is an invitation, not an argument. What makes Google keep coming back is other sites linking to you.