Validate XML sitemap

Validate sitemap XML structure, URLs and common optional metadata.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Enter your own site data. Process and inspect the generated result before adding it to your website.

Limits and behavior

Checks urlset and sitemapindex namespace, loc fields, duplicate/host limits, priority, changefreq and lastmod. Does not fetch URLs or recursively inspect sitemap indexes. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Check an XML sitemap for common structural errors

Validate an XML sitemap's structure and listed URLs before submitting it to search engines. This sitemap XML validator inspects common sitemap fields and malformed entries.

Does a valid sitemap guarantee Google indexing?

No. A valid sitemap supports discovery, but search engines still decide whether and when to crawl or index its URLs.

Worked example: a minimal valid XML sitemap

Paste this example into the tool, then verify that its urlset root, namespace and loc entries are recognised:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
  <url><loc>https://example.com/help</loc></url>
</urlset>

For a negative test, remove the closing </urlset> tag and check that the tool reports an XML structure problem. Also try adding the same <loc> twice to inspect duplicate URL warnings.

What this validator cannot prove

A structurally valid XML file may still reference pages that return 404, redirect unexpectedly, contain noindex, or duplicate another canonical URL. The validator does not visit linked pages or inspect Search Console indexing status. It also does not recursively fetch child sitemaps. Check those separately before submitting or resubmitting.

Related: Generate an XML sitemap and Review crawler rules.

Built on Hatchable