Home » SEO Tools » XML Sitemap Validator
Paste sitemap XML to check whether it is well formed, how many URLs it contains, and whether any obvious errors are present.
Last updated 13 November 2026
This tool reads only the XML you paste. It does not fetch a live sitemap or submit anything to a search engine.
A sitemap with broken XML, empty entries or duplicate URLs can confuse crawlers and waste crawl effort. Validating a sitemap before you upload it catches the simplest errors early.
This tool checks whether the XML you paste is well formed, counts URL entries and loc values, and flags empty loc values, non http loc values and duplicates.
A sitemap is a file that lists the pages of a website for search engines. It is usually named sitemap.xml and sits at the root of a site. A sitemap validator reads that file and checks whether it is correct. It tells you whether the XML parses, how many URLs the file lists, and whether any obvious errors are present. You use it before you upload a sitemap or submit it to Google, so a broken file does not reach the search engine.
This tool checks only what it can see in the XML you paste. Here is exactly what it does:
What it does not check: the sitemaps.org namespace, lastmod, changefreq and priority values, the 50,000 URL limit, whether a sitemap index file is structured correctly, or whether the listed URLs actually load. Those checks need a different tool.
Here are the errors this tool catches most, with the fix for each:
Worked example: paste a sitemap with three URLs and validate it. The tool reports three URL entries and no obvious errors. Now remove the closing urlset tag and validate again. The tool reports a parse error at the end of the file. Add the tag back, and the same file validates cleanly.
One sitemap file can hold up to 50,000 URLs and must be no larger than 50 MB when uncompressed. If your site has more than 50,000 pages, split the URLs into several sitemap files and list them all in a sitemap index file. The index file points to each child sitemap, and you submit the index to Google instead of the individual files.
A valid sitemap is only the first step. After it passes, submit it in Google Search Console under Sitemaps, so Google knows where to find it. Add a Sitemap line to your robots.txt file as well, so any crawler can find it. Then check the Search Console Sitemaps report over the next few days to see how many of the URLs Google discovered. If you do not have a sitemap yet, use the XML Sitemap Generator to create one from your URLs.
Sources: the sitemaps.org protocol and the Google Search Central sitemap guide.
No. A valid sitemap helps crawlers discover pages, but indexing is still a search engine decision for each page.
No. It reads only the XML you paste. It does not fetch a live sitemap or submit anything to a search engine.
It means the XML parses without errors, with matching tags and valid structure, as checked by the browser XML parser.
No. Everything runs in your browser on your own device, so your text never leaves your computer.
Most sites put it at yourdomain.com/sitemap.xml. You can also find it in your robots.txt file, which often has a Sitemap line, or in your CMS sitemap settings. If you use WordPress with Yoast or Rank Math, the sitemap is usually at /sitemap_index.xml.
This tool reads the XML you paste and counts url and sitemap entries. It does not validate a sitemap index file as a full index with child sitemaps, so check each child sitemap separately.
One sitemap file can hold up to 50,000 URLs and must be no larger than 50 MB uncompressed. If you have more URLs, split them into several sitemap files and list them in a sitemap index.
A valid sitemap can still fail to fetch if the URL returns an error, blocks Googlebot, redirects, or is too large. Check that the sitemap URL loads in a browser, returns HTTP 200, and is not blocked by robots.txt.
No. Validation only checks the file. To submit it, add it in Google Search Console under Sitemaps, or add a Sitemap line to your robots.txt file.
No. This tool reads only the XML you paste. Open your sitemap file, copy its contents, and paste them into the box.