shipfound

Free tool

Sitemap validator: check your XML sitemap

Enter your site or sitemap URL to check your XML sitemap the way Google and Bing read it: that robots.txt points to it, that it is a real sitemap under 50,000 URLs, that every URL is listed once on your site, and that a sample of its pages load. Each check comes back pass, check or fail.

Free, no account. Usually under 10 seconds.

What it checks

A sitemap is the list of pages you want crawlers to find. It only helps when they can reach it, read it and trust it: a sitemap that returns an HTML page, sits behind a robots.txt rule or lists pages that redirect or no longer exist sends crawlers to the wrong places.

The checker fetches your robots.txt and your sitemap, reads every URL in it (and in the first three child sitemaps of an index), and loads ten of the listed pages spread across the file. Each check comes back as pass, check or fail, with the line to change when something is wrong.

Common sitemap errors and how to fix them

It returns a web page, not XML
Serve the sitemap itself at its address, as XML. A sitemap URL that shows a 404 page or your home page is not read as a sitemap.
Robots.txt does not name it, or blocks it
Add a line like Sitemap: https://yourproduct.com/sitemap.xml to robots.txt, and remove any Disallow rule that covers the sitemap's path.
Too many URLs or too large
One sitemap holds at most 50,000 URLs and 50 MB. Past that, split it into several and list them in a sitemap index.
Relative or off-site URLs
List full addresses on your own site (https://yourproduct.com/pricing, not /pricing).
The same URL listed twice
List each page once, at the one address you want shown in search.
Listed pages that robots.txt blocks
Either allow those pages in robots.txt or take them out of the sitemap: a sitemap and a block on the same page contradict each other.
Listed pages that redirect or are missing
List the final address of each page, and drop pages that no longer exist.

Questions

What does this sitemap validator check?
It finds your sitemap the way crawlers do (the Sitemap: line in robots.txt, then /sitemap.xml), checks that it answers 200 and is a real sitemap rather than an HTML page, that robots.txt names it and does not block it, that it stays under 50,000 URLs and 50 MB, that every URL is a full address on your site and listed once, that robots.txt allows the listed pages, and that a sample of 10 pages loads without errors or redirects.
Can I check a sitemap index?
Yes. If the address is a sitemap index, the checker reads its first three child sitemaps and checks the URLs in them.
Where should my sitemap be?
Anywhere on your own site, as long as robots.txt points to it with a line like Sitemap: https://yourproduct.com/sitemap.xml.
Do I still need to submit it to Google and Bing?
Submitting it in Google Search Console and Bing Webmaster Tools tells them about it directly and shows you which listed pages they have added. The result links to both.
How do I check my sitemap in Google Search Console?
Open the Sitemaps report in Search Console. Each submitted sitemap shows its status and how many pages Google found in it; a sitemap Google could not read says so there. This validator shows why, before or after you submit it.
Is there a limit?
No account is needed. Each connection can run ten checks an hour, and the same address checked again within ten minutes is answered from the last result.