Sitemap Validator (Free)

Paste in a sitemap URL or file and see every problem Google would complain about, including URLs that redirect or 404.

Sitemap Validator (Free) cover

What it does

Check an XML sitemap or sitemap index before Google does. One command, a local file (.xml or .xml.gz) or a URL.

python3 -m sitemapcheck sitemap.xml --host https://yoursite.com/
python3 -m sitemapcheck https://yoursite.com/sitemap_index.xml --follow --sample 50
python3 -m sitemapcheck https://yoursite.com/sitemap.xml --json > report.json

What you get

The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 4 tests OK on Python 3.13 and 3.10.

Real terminal output from Sitemap Validator: demo and passing tests

What it checks

  • Valid XML; <urlset> or <sitemapindex> root with the sitemaps.org 0.9 namespace; DOCTYPE/ENTITY declarations refused.
  • Google's limits: 50,000 URLs and 50 MB (uncompressed) per file; split bigger ones and use a sitemap index.
  • Every <loc> absolute and on the same host as the sitemap (cross-host needs Search Console verification); duplicates.
  • <lastmod> in W3C Datetime format (2026-11-01 or 2026-11-01T09:15:00+00:00).
  • Notes that Google ignores <priority> and <changefreq>.
  • --follow: validates every child sitemap of an index and flags unreachable ones.
  • --sample N: fetches the first N URLs; anything that isn't a final 200 (redirects, 404s) shouldn't be in a sitemap.

Exit code 1 on high-severity problems or non-200 sampled URLs, 2 if the file can't be read. Python 3.9+, no dependencies. Fetching uses http(s) only, refuses private/local addresses (set SITEMAPCHECK_ALLOW_PRIVATE=1 for a local dev server), 15 s timeout. ./demo.sh runs the example; ./run_tests.sh runs 4 tests.

Honest limits

  • It checks sitemap XML only; it doesn’t validate image, video or news sitemap extensions.
  • --sample fetches only the first N URLs you ask for, not every URL in the sitemap.

Format and license

Zip, 10 KB, v1.0, 12 files. Free to use, modify and share for any purpose, including commercial work, as long as this notice stays in copies. Not affiliated with or endorsed by Google.

FAQ

Is it free?
Yes, free to use, change and share.
Does it need an account or API key?
No, it runs on your computer.
Does it check robots.txt too?
Use the free robots.txt tester, or the SEO Audit MCP Server for both.
How do I get the files?
Click Download free. The zip downloads straight away: no checkout, no account.
Do I have to sign up for the newsletter?
No. The form is optional and the download works without it.

Get Sitemap Validator (Free)

Free XML sitemap validator: Google's 50,000 URL / 50 MB limits, lastmod format, duplicates, sitemap indexes and redirecting or 404 URLs. Runs locally.

Pairs well with

Download$19

WooCommerce Product CSV Checker Skill

Check a WooCommerce product CSV before import: variations, prices, booleans, encoding, duplicate SKUs and image paths, with a safely fixed copy. $19 once.

View WooCommerce Product CSV Checker Skill
DownloadFree

Hreflang Checker (Free)

Free hreflang checker: invalid codes, missing self-references and return links, x-default, and alternates that redirect, 404 or are noindex.

View Hreflang Checker (Free)
Download$19

Google Merchant Center Feed Checker Skill

Check a Google Merchant Center feed before upload: prices, GTIN check digits, identifiers, availability dates, variants, with a fixed copy. $19 once.

View Google Merchant Center Feed Checker Skill

Related