What is the XML Sitemap Validator?
An XML sitemap is the list of pages you want search engines to find. When it has errors, lists broken pages or points to redirects, Google trusts it less and may skip pages you care about. Search Console reports some problems, but only after the fact and without much detail.
Enter your sitemap address, or just your website and we find the sitemap through robots.txt. The validator reads it (gzip included), shows XML errors with line numbers, checks the sitemaps.org namespace and the limits of 50,000 addresses and 50 MB, and follows a sitemap index to its child sitemaps. It checks every address: full addresses on your own host, the same http or https, no duplicates, valid lastmod dates and none in the future. Finally it opens a spread-out sample of the listed pages to catch errors and redirects.
Features
XML errors
With line numbers.
Sitemap index
Follows child sitemaps.
Limits
50,000 addresses and 50 MB per file.
Duplicates and hosts
Wrong hosts, http/https mix, duplicates.
lastmod dates
Valid format and none in the future.
Live sample
Checks listed pages for errors and redirects.
How to use the XML Sitemap Validator
- 1
Type the sitemap address, or just the website (we find the sitemap).
- 2
Press Validate sitemap.
- 3
Fix the problems and resubmit the sitemap in Google Search Console.
Who it is for
After a site move
Make sure the sitemap lists the new addresses.
Search Console errors
Find the exact lines that are wrong.
Plugin-made sitemaps
Check what your CMS really generates.
Tips for better results
- List only final pages that answer 200 and are indexable; leave out redirects, errors and noindex pages.
- Update lastmod only when the content really changes; Google stops trusting dates that always change.
- Google ignores priority and changefreq, so you can leave them out.
- Announce the sitemap in robots.txt and submit it in Search Console.
Your privacy: what happens to what you enter
- This tool needs our server to do the work, so what you enter is sent to it over an encrypted (HTTPS) connection and used only to produce your answer.
- We do not save what you enter in a database or keep a history of what you checked, and we never sell or share it.
- When a check needs public data, such as domain registries, DNS or a website you name, our server asks for it. Those services see our server, not you.
- A short counter of checks per minute protects the service from abuse; it holds no content.
Questions people ask
How many URLs can a sitemap have?
Up to 50,000 addresses and 50 MB uncompressed per file. Use a sitemap index for more.
Can my sitemap list another domain?
Normally no; a sitemap may list only addresses on its own host, unless you prove ownership of both in Search Console.
Does every page need to be in the sitemap?
Every important, indexable page should be. The sitemap helps Google find them, but links between your pages matter too.
Can it read .xml.gz files?
Yes, compressed sitemaps are read automatically.