Skip to main content

Sitemap validator

Find your sitemaps, parse every file and see the XML errors, protocol limit breaches and URLs on other domains, in seconds and without an account.

The validator reads your /robots.txt for Sitemap lines, falls back to /sitemap.xml and /sitemap_index.xml, and opens each file it finds. For a sitemap index it also opens the child sitemaps, up to eight files per check.

These are the same checks a squirrelscan audit runs as crawl/sitemap-valid and crawl/sitemap-domain. What it cannot do is look at the pages behind the URLs: whether they are noindex, whether they return 4xx and how much of the site the sitemap covers all need a crawl.

What it checks

XML and protocol limits

Checks that tags nest and close, that ampersands are escaped and that the root is urlset or sitemapindex. Flags a file with more than 50,000 URLs, an index with more than 50,000 child sitemaps, and relative or over-long URLs.

lastmod values

Reads every lastmod and flags values that are not W3C Datetime, such as 2024/09/10 or an RFC 1123 date, and datetimes with no time zone.

Entries on another domain

Lists URLs whose host is not the site you entered. A www variant counts as the same site. Search engines ignore these entries, and a child sitemap on another host is listed but never fetched.

How to use it

  1. Enter your domain

    Type a domain such as example.com. The validator fetches /robots.txt and the sitemap files only, and stores nothing.

  2. Read the errors first

    An error means a crawler may reject the file or ignore entries. Warnings are limits and formats a crawler may tolerate but you should fix.

  3. Fix the generator, not the file

    Errors usually repeat on every entry because one generator writes them. Fix the plugin or the build step, then run the check again. Each network gets ten checks a minute.

How to fix what it finds

The XML does not parse

Escape & as &amp; and < as &lt; in URLs, close every tag and save the file as UTF-8. A sitemap that returns an HTML page, such as a login wall or a 404 template with a 200 status, shows up here too.

Reported bycrawl/sitemap-valid

A file is over 50,000 URLs or 50 MB

Split it into several sitemaps and list them in a sitemap index. Each file stays under both limits, and the index lists the files.

Reported bycrawl/sitemap-valid

lastmod is not W3C Datetime

Write dates as 2026-11-16 or 2026-11-16T09:30:00+00:00. Drop the field if you cannot supply a real modification date, since a wrong one is worse than none.

Reported bycrawl/sitemap-valid

Entries point to another domain

A sitemap may list only URLs on its own host. Remove the foreign URLs, or fix the base URL in your generator if a staging or CDN host leaked into the file.

Reported bycrawl/sitemap-domain

What this does not do

It does not request the URLs in the sitemap. A noindex page in a sitemap, a URL that answers 404 and the pages your sitemap misses are all invisible from the file alone. A full audit finds them with noindex-in-sitemap, sitemap-4xx and sitemap-coverage.

It reads at most eight files per check and 10 MB of each. A larger file is reported as over the cap and not parsed, since the protocol limit is 50 MB.

Keep going

Frequently asked questions

Where does the validator look for my sitemap?
It reads Sitemap lines in /robots.txt first. If there are none it tries /sitemap.xml and /sitemap_index.xml. A sitemap in another location is found only if robots.txt names it.
What are the sitemap limits?
The sitemaps.org protocol allows 50,000 URLs and 50 MB uncompressed per file. A sitemap index may list up to 50,000 sitemaps. Larger sites split into several files.
Why are URLs on another domain a problem?
The protocol says a sitemap may only list URLs on the host it is served from, and search engines ignore the rest. A www and non-www pair counts as the same site here.
Does it check that the URLs work?
No. It validates the file, not the pages. Whether the URLs return 200, carry noindex or cover your site needs a crawl, which a full squirrelscan audit does.
Does it read compressed sitemaps?
Yes. A file ending in .gz is decompressed before it is checked, and the size limit applies to the uncompressed text.
Is it free?
The llms.txt validator, the AI crawler checker, the robots.txt generator and the instant security headers check are free and need no account. The other checks run inside a squirrelscan audit. The squirrel CLI runs audits on your machine for free when you are signed out or pass --offline, with no cap on how many. Signed in, CLI and cloud audits spend credits: every account gets 500 free credits a month. An audit costs 50 credits plus 2 per audited page, and 1 per external link the cloud verifies when link checks are on.

Check the pages behind the sitemap

A squirrel audit runs this check plus noindex-in-sitemap, sitemap-4xx and sitemap-coverage, which request the pages and compare the sitemap with what a crawl finds.

Or install it yourself

Then run squirrel audit https://nutshop.squirrelscan.com

The squirrel CLI is free while you are signed out or with --offline. Every account gets 500 free credits a month. An audit costs 50 credits plus 2 per audited page, and 1 per external link the cloud verifies.