Validate sitemap

Validate an XML sitemap or sitemap index against protocol limits and URL fields.

freeworks offlinenothing uploaded
ToolSitemap Validator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The XML is parsed and checked for urlset namespace, loc elements, URL syntax, size and URL-count limits, and optional lastmod, changefreq, and priority shapes. Sitemap indexes are validated separately from URL sets.

  • Protocol limits are checked before quality warnings.
  • A sitemap can be well-formed XML but still fail SEO expectations.

Worked example

Validate a minimal XML sitemap
Check a single-URL XML sitemap for structural correctness
Input
											<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
</urlset>
										
Output
												Sitemap is valid! Found 1 URL(s).
											

When to use this

Site deploys, SEO audits, and CI checks validate sitemap files.

Edge cases

  • A loc outside the site can be valid XML but an unwanted target.
  • lastmod needs an accepted date-time form.
  • More than 50,000 URLs or 50 MB requires splitting.

References