Custom Web Audits
Run Audit Demo Audit Audit Types Free Tools Pricing What We Analyze 🔒 Login
← All free tools
🗺️

XML Sitemap Validator

Validate any XML sitemap (or sitemap index): confirm it is well-formed, count the URLs, flag duplicates and insecure http:// links, and check it stays under Google's 50,000-URL / 50 MB limits before you submit it.

⚡ Interactive demo — sample data
Valid XML urlset with 12,480 URLs — 2 issues to clean up before submitting.
Format — valid <urlset> (URL set), well-formed XML Looks good
URLs — 12,480 entries, under the 50,000-URL limit Looks good
File size — 4.7 MB, under the 50 MB uncompressed limit Looks good
Duplicate URLs — 36 pages listed more than once; dedupe across the set Issue
Insecure URLs — 14 http:// links; switch to the final https:// version Warning
<lastmod> dates — 12,480 present, helps crawl scheduling Looks good

About this tool

Validate any XML sitemap (or sitemap index): confirm it is well-formed, count the URLs, flag duplicates and insecure http:// links, and check it stays under Google's 50,000-URL / 50 MB limits before you submit it.

How it works

Enter your sitemap URL or domain
Paste the full sitemap URL (e.g. https://example.com/sitemap.xml). If you give us just a domain, we look for /sitemap.xml at the root automatically — the conventional location search engines check first.
We fetch and parse the XML
We download the file and parse it as real XML. We detect whether it's a <urlset> (a list of pages) or a <sitemapindex> (a list of other sitemaps), then count every <loc> entry and read the <lastmod> dates inside.
Review the validation report and fix
You get a pass/fail on well-formed XML, the URL count, the 50,000-URL and 50 MB limits, duplicate URLs and insecure http:// links. Fix anything flagged, then submit the clean file to Google Search Console and Bing Webmaster Tools.

What we check

Common issues we catch

Where this matters

Frequently asked questions

What is an XML sitemap?
An XML sitemap is a file that lists the URLs on your site you want search engines to discover, wrapped in a <urlset> root with one <url> entry per page. Each entry has a required <loc> (the URL) and optional <lastmod>, <changefreq> and <priority> tags. It helps crawlers find pages they might otherwise miss.
How many URLs can a sitemap have?
A single sitemap file can contain a maximum of 50,000 URLs and must stay under 50 MB uncompressed. If your site is larger, split your URLs across multiple sitemaps and list them in a sitemap index file, which can itself reference up to 50,000 sitemaps.
What's the difference between a urlset and a sitemapindex?
A <urlset> is a sitemap that lists actual page URLs. A <sitemapindex> is a master file that lists other sitemaps rather than pages — used by large sites to stay under the 50,000-URL limit. The root element tells search engines which kind of file they're reading.
Do I need lastmod, changefreq and priority?
Only <loc> is required. <lastmod> is genuinely useful — an accurate last-modified date helps search engines decide when to re-crawl. Google largely ignores <changefreq> and <priority> today, so don't agonize over them; an honest <lastmod> is worth far more.
Why does my sitemap fail to validate as XML?
The most common cause is an unescaped special character inside a URL — an ampersand from a query string (&) must be written as &amp;, and the same goes for <, > and quotes. An unclosed tag or a leading byte-order mark will also break parsing. Fix the offending character and the file will parse.
Should sitemap URLs be http or https?
Use https:// if your site runs on HTTPS. Listing http:// URLs forces a redirect to the secure version on every crawl and sends a mixed canonical signal. Every <loc> should be the final, canonical https:// URL you actually want indexed.
Where do I submit my sitemap?
Submit it in Google Search Console (Indexing → Sitemaps) and Bing Webmaster Tools. You can also add a Sitemap: line pointing to its full URL in your robots.txt so crawlers discover it on their own. For large sites, submit one sitemap index file rather than each child sitemap.
How often should I update my sitemap?
Whenever your URL set changes — new pages, removed pages, or significant content updates. Most CMS platforms and SEO plugins regenerate it automatically. The key is accuracy: a stale sitemap full of dead or redirected URLs is worse than a smaller, current one.

This is one of several free SEO tools from Custom Web Audits. For a complete, prioritized analysis of your whole website, run a full audit.