XML Sitemap Validator

Free tool

Check your XML structure, review your URLs, and find the details that need attention.

Validate your sitemap

Paste XML or fetch a public sitemap file.

Up to 1 MB / 5,000 entries. Validation runs in this browser tab.

Supports urlset and sitemapindex XML. No pages or child sitemaps are fetched.

One file at a time.

Validate a URL sitemap or a sitemap index. Child sitemaps and listed pages aren’t fetched, so this checks your file rather than crawling your site.

Clear, practical checks.

Review namespaces, required locations, duplicate URLs, dates, priorities and change frequencies. Extension schemas are identified but not validated.

Know the limits.

This tool supports uncompressed XML up to 1 MB and 5,000 entries. The sitemap protocol allows larger files; this is our tool’s processing limit.

Checks follow the core Sitemaps protocol ↗ and Google’s guidance ↗. This is not full XSD validation or a guarantee of indexing. Google ignores priority and changefreq; if supplied, we check their protocol values. Pasted XML stays in your tab. DTDs and custom entities are rejected.

ABOUT THIS FREE TOOL

How to validate an XML sitemap

Use this free XML sitemap validator to check a sitemap file or sitemap index before submission. Inspect XML syntax and core sitemap fields, find duplicate or invalid entries, and download a report of the findings.

  1. Enter a public sitemap URL such as https://example.com/sitemap.xml, or paste your XML directly.

  2. Review XML parsing, sitemap structure, namespaces, locations, duplicates, and optional metadata findings.

  3. Search the entries, filter findings, and download your JSON report to guide corrections.

COMMON QUESTIONS

XML Sitemap Validator: useful answers

Is this a general XML validator?

This is an XML sitemap validator. It checks XML well-formedness and the core sitemap structure for urlset and sitemapindex documents. It is not a general XML editor or a validator for arbitrary XML schemas, XSD files, RSS feeds, or SVG documents.

Can I validate a sitemap index?

Yes. The tool supports both URL sitemaps and sitemap indexes, including namespace-prefixed XML. It checks the entries in the submitted file without fetching child sitemaps or visiting the listed pages.

What sitemap errors can this checker find?

Checks include malformed XML, namespace and structure problems, missing or invalid locations, normalized duplicate URLs, fragments, invalid dates, and invalid priority or changefreq values. Host and directory differences are reported for review.

What are the sitemap file limits?

This tool accepts uncompressed XML up to 1,000,000 UTF-8 bytes and 5,000 entries, with additional limits on XML depth and element count. Explicit .gz file URLs are not supported. DTD and custom entity declarations are rejected. These are tool limits, not the sitemap protocol’s maximums.

Does a valid sitemap guarantee that Google indexes my URLs?

No. This checker reviews the submitted file, not the indexing status, HTTP response, canonical URL, or content of every listed page. Correct sitemap syntax can help you prepare a file for submission, but search engines decide which URLs to crawl and index.