FREE · No Sign-up
Free Tool · Website Management

XML Sitemap Validator & Checker

Validate any sitemap.xml or sitemap index: XML, protocol limits, lastmod, duplicates, hosts, child sitemaps and a spot check of listed URLs.

Check any XML sitemap the way Google reads it. Enter a sitemap URL (or paste the XML) and the validator checks the XML and namespace, the 50,000-URL and 50 MB limits, every <loc>, <lastmod>, <priority> and <changefreq> value, duplicates, http/https and host mismatches, image, video, news and hreflang extensions, and each child sitemap of a sitemap index. It then spot-checks the first 15 URLs for redirects, errors, noindex and canonical tags, which a plain validator never does.

How It Works

Using XML Sitemap Validator & Checker

1

Enter your sitemap URL

Usually /sitemap.xml or /sitemap_index.xml. Don’t know it? Use the sitemap finder. Gzip (.xml.gz) sitemaps work too, or paste the XML directly.

2

Read the checks

Errors stop Google from reading the sitemap or its URLs; warnings are worth fixing; OK and info rows confirm what is already right.

3

Review the URL spot check

Sitemaps should list only canonical, indexable 200 pages. Redirects, 404s, noindex and canonicalised URLs waste crawl budget and trigger Search Console warnings.

4

Fix and resubmit

Correct the issues in your CMS or sitemap plugin, run the check again, then resubmit the sitemap in Google Search Console and Bing Webmaster Tools.

Why Use This Tool

What you get with XML Sitemap Validator & Checker

Strict sitemaps.org protocol checks plus Google’s own rules

Validates sitemap index files and their first five child sitemaps

Flags inaccurate lastmod dates that make Google ignore them

Spot-checks listed URLs for redirects, 404s, noindex and canonicals

Handles gzip sitemaps and pasted XML

Free, no sign-up, results in seconds

Need more depth? Try URL Indexer →

What the sitemap validator checks

CheckRuleWhy it matters
XML and namespaceWell-formed UTF-8 XML with the sitemaps.org 0.9 namespaceOne unescaped & or a missing namespace makes the whole file unreadable
Size limitsUp to 50,000 URLs and 50 MB uncompressed per fileLarger files are rejected; split them with a sitemap index
<loc>Absolute http(s) URL, under 2,048 characters, listed onceRelative or duplicate URLs are ignored or waste crawl budget
HostSame host and protocol as the sitemapCross-host URLs need verification or robots.txt cross-submission
<lastmod>W3C date (YYYY-MM-DD or full timestamp), never in the future, accurateGoogle uses lastmod to schedule recrawls only when it is consistently accurate
<priority> / <changefreq>0.0–1.0 / always…neverOptional; Google ignores both, but invalid values break strict validators
Sitemap indexUp to 50,000 child sitemaps, each valid on its ownA broken child sitemap hides every URL inside it
Listed URLs200 status, indexable, self-canonicalRedirects, 404s and noindex pages trigger “Submitted URL” warnings in Search Console

Common sitemap errors and how to fix them

  • “Couldn’t fetch” in Search Console: the URL returns 404, 5xx, a login page or is blocked by robots.txt or a firewall. Open the sitemap in a private window and check the status above.
  • Invalid XML: usually an unescaped ampersand in a URL. Write &amp;, or let your plugin generate the file.
  • HTML instead of XML: the address is wrong or your CMS serves a styled HTML page. Use the raw XML address.
  • All lastmod dates identical: the plugin writes today’s date on every URL. Configure it to use each page’s real modified date.
  • Redirecting or noindex URLs listed: remove them, list the final canonical URL only, and keep noindex pages out of the sitemap.

Example of a valid XML sitemap

<?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-11-01</lastmod>
  </url>
</urlset>

Need a sitemap? Build one with the XML sitemap generator, find an existing one with the sitemap finder, and make sure crawlers can reach it with the robots.txt generator.

FAQ

XML Sitemap Validator & Checker questions

They are the same kind of tool. This one validates the file against the sitemaps.org protocol and Google’s rules, and also checks the URLs inside it, which a basic validator does not.

Yes. It validates the index, lists every child sitemap and checks the first five of them for fetch errors and invalid XML.

Search Console often shows “Couldn’t fetch” for a newly submitted sitemap until Google processes it, which can take days. If it persists, check that the URL returns 200, isn’t blocked by robots.txt or a firewall, and is on the verified property.

No. After it passes, submit it in Search Console (Sitemaps report) and add a Sitemap: line to robots.txt so every search engine finds it.

50,000 URLs and 50 MB uncompressed per file. For larger sites, split the URLs across several sitemaps and list them in a sitemap index.

No. Google ignores both. It does use lastmod, but only when the dates are consistently accurate.

Yes. Paste the XML into the box and the validator checks the file itself. The URL spot check needs a live sitemap.

More from GrowLytics

Free tools for your site — and for you

More Free Tools

Other tools you can try free