Tool 05 · Validate

XML sitemap checker

Paste, upload or load an XML sitemap and validate the structure, locations, dates, duplicates, hosts and limits. The checker parses the XML locally and explains each problem it finds.

Version 2.0.0 · Last tested 2026-11-28 · Maintained by Mark · Test cases · How we test

Related tests: MAP-01 to MAP-06 · Known limit: does not request the listed URLs or verify HTTP status.

The "Load this site's sitemap" button reads /sitemap.xml from this domain. Other sites are blocked by browser cross-origin rules, so paste or upload their XML instead.

Summary

Checks

This result describes the pasted input. It is not a Google ranking, indexing or eligibility decision.

Two roots

urlset and sitemapindex.

A regular sitemap uses a <urlset> root and one <url> entry per page. A sitemap index uses a <sitemapindex> root and one <sitemap> entry per child sitemap. The checker detects both and validates the matching child elements.

ElementRequiredWhat the checker looks for
<urlset> / <sitemapindex>YesRoot name and the sitemap namespace
<loc>Yes, one per entryAbsolute http or https URL, no whitespace, no fragment
<lastmod>OptionalW3C date, such as 2026-11-23 or 2026-11-23T10:00:00+00:00
<changefreq>Optionalalways, hourly, daily, weekly, monthly, yearly or never
<priority>OptionalNumber from 0.0 to 1.0

The checker also reports a host mismatch when you provide an expected host, exact duplicate locations, more than 50,000 entries and a file larger than 50 MB uncompressed.

What belongs

Canonical, useful, returning pages.

  • Public pages that return a successful response and represent the preferred URL.
  • The final protocol, host, path and trailing-slash convention.
  • Pages you want a search engine to know about, not every URL the server can produce.
  • A real lastmod when the page changed. Do not use today's date for every entry.

Leave out redirects, duplicate parameter URLs, test pages, empty archives, staging URLs and pages you do not want indexed. A sitemap is a communication, not a guarantee of crawling or indexing.

Worked example

A valid file and a broken one.

The valid sample has a namespace, two absolute locations and a date. The broken sample has a relative location, a non-date lastmod, a fragment and a duplicate. Load both to see the difference between a pass and a list of blockers.

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/guides/page-title</loc> <lastmod>2026-11-23</lastmod> </url> </urlset>

A common mistake is treating the sitemap as a list of every internal URL. Start with the canonical pages that return successfully. Add more only when they deserve to be discovered.

Limits

What the checker cannot verify.

  • Whether each URL returns 200, redirects or 404s. The checker does not fetch them.
  • Whether each page is canonical, indexable or free of noindex.
  • Whether Google has crawled or indexed the sitemap.
  • Whether the XML is served with the correct content type or status.
  • Whether a sitemap index child is reachable or valid. Each child needs its own check.
Submit, then inspect. After deployment, submit the sitemap in Search Console and read the sitemap report. A valid file can still contain URLs that Google chooses not to index.

Test record

Cases that exercise the parser.

CaseExpected result
Valid urlsetValid, one entry
Malformed XMLBLOCKER: XML could not be parsed
Relative locBLOCKER: not absolute
Duplicate locREVIEW: duplicate
Invalid lastmodREVIEW: invalid date
Valid sitemapindexValid, root sitemapindex
More than 50,000 URLsBLOCKER: split the file

FAQ

Questions about sitemaps.

Does a sitemap make pages rank?

No. It helps discovery. Crawling, indexing and ranking are separate decisions.

Should every page be in the sitemap?

No. Include canonical pages you want discovered. Exclude redirects, duplicates, test pages and pages you do not want indexed.

How many URLs can one sitemap contain?

Up to 50,000 URLs and 50 MB uncompressed. A sitemap index can point to up to 50,000 child sitemaps.

Why does the checker not fetch my URLs?

Browsers block most cross-origin requests, and a checker that silently fetched arbitrary URLs would create privacy and security problems. The tool validates the file; use your server or Search Console to check responses.