Tools / Sitemap Validator

Sitemap Validator.

Validate an XML sitemap or sitemap index - structure, URLs, lastmod dates and limits.

Uses server

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Summary
Issues
First 100 entries

About Sitemap Validator

Sitemap Validator downloads an XML sitemap and checks it against the sitemaps.org 0.9 protocol that Google, Bing and other search engines read. It accepts a plain urlset or a sitemap index, decompresses .xml.gz files, and reports problems with line numbers: XML that does not parse, a missing or wrong xmlns namespace, url or sitemap entries without a loc, locations that are relative or not http(s), URLs on another host than the sitemap, duplicate URLs, lastmod values that are not W3C dates, changefreq values outside always to never, priorities outside 0.0 to 1.0, and more than 50,000 entries. The summary counts entries, errors and warnings, and the first 100 entries are listed so you can eyeball them. For example, a sitemap generated by a plugin that writes lastmod as "26/11/2026" gets one error per entry, and a sitemap at https://example.com that lists https://www.example.com pages gets cross-host warnings. Child sitemaps of an index are listed but not fetched; run the validator on each of them. Files over 2 MB are only partly checked. Common mistakes are an unescaped ampersand in a URL (write &), serving the sitemap with an HTML error page and status 200, listing redirected or noindex URLs, and forgetting to reference the sitemap in robots.txt.

How to Use

  1. Enter the full URL of your sitemap.xml, sitemap index or .xml.gz file.
  2. Run the validator.
  3. Fix the errors by line number, then review the warnings and the listed entries.

Frequently Asked Questions

Do I need changefreq and priority?

No. Both are optional, and Google ignores them. lastmod is useful if it reflects real content changes.

Why are URLs on www flagged when my sitemap is on the bare domain?

Search engines treat them as different hosts. A sitemap may list URLs only from its own host unless robots.txt on the other host points to it.

Does the validator check the child sitemaps of an index?

It lists them and checks their URLs and dates, but does not download them. Run the validator on each child sitemap.

How large can the sitemap be?

The protocol allows 50,000 URLs and 50 MB uncompressed. This tool reads the first 2 MB, which covers roughly 10,000 to 20,000 URLs.

Related Tools