Home » SEO Tools » XML Sitemap Validator

Free 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

Use the tool

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.

What Is a Sitemap Validator?

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.

What This Validator Checks

This tool checks only what it can see in the XML you paste. Here is exactly what it does:

  • Whether the XML parses. If a tag is not closed or the structure is broken, the tool reports a parse error.
  • How many URL entries the file has, and how many loc values it has.
  • Empty loc values. A url entry with no address in it is flagged.
  • Loc values that do not start with http. Every loc should be a full web address.
  • Duplicate loc values. The same URL should appear only once in a sitemap.

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.

Common Sitemap Errors and How to Fix Them

Here are the errors this tool catches most, with the fix for each:

  • A tag that is not closed. If you remove the closing urlset tag, the XML will not parse at all. Add the missing closing tag and validate again.
  • An empty loc value. A url entry with an empty loc tells the crawler nothing. Remove the entry or add the full address.
  • A loc value without http. A relative path like /about/ is not a full address. Change it to the full address, such as https://example.com/about/.
  • A duplicate URL. The same address listed twice wastes crawl effort. Keep one copy and remove the other.

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.

Sitemap Size Limits

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.

What to Do After Your Sitemap Passes

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.

How to Use This Tool

  1. Paste your sitemap XML: paste the full file content.
  2. Click Validate Sitemap: read the counts and any flagged issues.
  3. Fix flagged issues: repair broken XML, remove duplicates and fix bad loc values.
  4. Validate again: paste the fixed XML and confirm no obvious errors remain.

Good Practice Tips

  • Validate before upload: a sitemap that fails to parse is worse than no sitemap at all for discovery.
  • Remove duplicates: the same URL should appear once in a sitemap.
  • Use full URLs: every loc value should be a full http address.
  • Validation is not indexing: a valid sitemap helps discovery, but it does not guarantee indexing.

Frequently Asked Questions

Does a valid sitemap guarantee indexing?

No. A valid sitemap helps crawlers discover pages, but indexing is still a search engine decision for each page.

Does this tool fetch my live sitemap?

No. It reads only the XML you paste. It does not fetch a live sitemap or submit anything to a search engine.

What does well formed mean here?

It means the XML parses without errors, with matching tags and valid structure, as checked by the browser XML parser.

Is my input uploaded to a server?

No. Everything runs in your browser on your own device, so your text never leaves your computer.

How do I find my sitemap URL?

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.

Does it work with a sitemap index?

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.

What are the size limits for one sitemap file?

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.

Why does Search Console say Could not fetch when my sitemap is valid?

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.

Does validating a sitemap submit it to Google?

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.

Can I upload a file instead of pasting the XML?

No. This tool reads only the XML you paste. Open your sitemap file, copy its contents, and paste them into the box.

↑