Aveena
Free tool

Sitemap Validator

Validate your XML sitemap for errors and coverage - then run a live health check across your URLs to catch the broken and redirecting links search engines see.

What is a sitemap validator?

A sitemap validator checks that your XML sitemap is well-formed, follows the sitemaps.org spec, and lists URLs that actually work. It catches the problems that quietly waste crawl budget - malformed XML, dead and redirecting links, duplicates and wrong hosts - before they cost you coverage in search and AI results.

What this validator checks

The validator runs two passes. First it checks the sitemap itself: valid, well-formed XML; the correct urlset namespace; a <loc> for every entry; absolute HTTPS URLs on the right host; sensible lastmod dates; and no duplicate URLs. If you submit a sitemap index, it recurses into each child sitemap and checks them too.

Then it does what a syntax checker won’t: a live health check of the URLs inside. It requests each one and reports the status, so you can see the dead links (404s) and redirect chains (301s and 302s) that are wasting crawl budget - the gap between a sitemap that looks valid and one that actually is.

Common sitemap errors and how to fix them

  • Dead URLs (404s) - remove pages that no longer exist. A sitemap full of 404s tells crawlers the whole file is unreliable.
  • Redirecting URLs (301/302) - list the final destination, not a URL that redirects. Sitemaps should point straight at the live page.
  • Wrong host or protocol - every URL must be on the same site and use HTTPS. Mixed http/https or bare domains are a common cause of ignored entries.
  • Duplicate or non-canonical URLs- list each page once, at its canonical URL, so you’re not sending mixed signals.
  • A stale or fake lastmod - use a real last-modified date. If every entry says today, crawlers learn to ignore the field.

Sitemap requirements Google actually enforces

Strip away the parts of the spec that don’t matter and the rules are short: a sitemap must be UTF-8 encoded, hold no more than 50,000 URLs, and be under 50MB uncompressed. URLs must be fully-qualified and absolute, and should sit on the same host as the sitemap. Special characters in URLs have to be XML-escaped.<loc> is required; an accurate <lastmod> is used; and priority and changefreq are ignored entirely.

Here’s a minimal, valid sitemap that meets every requirement above:

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

How sitemaps affect AI crawlers

AI crawlers like GPTBot, ClaudeBot and PerplexityBot discover pages much the way search engines do - and a clean sitemap gives them a direct, complete list of your URLs instead of leaving them to find pages through links. If a page isn’t linked from anywhere prominent, your sitemap may be the only way an AI engine finds it at all.

A sitemap works best alongside two other files. Your robots.txt should reference the sitemap and allow the AI crawlers you want; an llms.txt gives AI models a curated summary of your best content. Together they make your site as easy as possible for AI engines to reach, read and cite.

Frequently asked questions

Do I need an XML sitemap?

If your site is small and well-linked, Google can usually find everything without one. A sitemap becomes valuable as you grow, when pages aren't linked from anywhere obvious, or when you want to give crawlers - including AI crawlers - a clean, complete list of your URLs to work from.

How often should I update my sitemap?

Whenever your set of pages changes. Most modern sites generate the sitemap dynamically, so it updates itself on every deploy. The key is accuracy: an out-of-date sitemap listing dead URLs, or a lastmod that's always 'today', trains crawlers to trust it less.

Does Google use priority and changefreq?

No. Google ignores the priority and changefreq tags - they were part of the original spec but are no longer used. The only fields that matter are loc (the URL) and an accurate lastmod. You can keep priority and changefreq or drop them; either way Google won't read them.

What's the difference between a sitemap and robots.txt?

A sitemap lists the URLs you want crawled; robots.txt controls which URLs a crawler is allowed to visit. They work together: robots.txt sets the rules and points to your sitemap, and the sitemap provides the list. You want both, and they should agree with each other.

How many URLs can a sitemap hold?

A single sitemap can hold up to 50,000 URLs and be no larger than 50MB uncompressed. If you exceed either limit, split your URLs across multiple sitemaps and list them in a sitemap index file - which this validator follows and checks for you.