Sitemap Validator
Paste or upload your sitemap.xml and check it for structural and formatting errors.
What this validator checks
| Check | What it verifies |
|---|---|
| Well-formed XML | Confirms the file is valid XML with no broken tags or syntax errors. |
| Root element and namespace | Checks that the file uses the correct <urlset> (or <sitemapindex>) element and namespace. |
| Absolute URLs in <loc> | Verifies each <loc> entry is a full, valid absolute URL rather than a relative path. |
| Sitemap protocol limits | Flags a sitemap that exceeds the protocol's 50,000 URL or 50MB (uncompressed) limits per file. |
Paste your file instead of a URL
Browsers can't freely fetch content from other domains, so this tool checks the sitemap's actual text rather than a live URL — paste in the content, or upload the file directly. For an accurate check, open yourdomain.com/sitemap.xml in a browser and copy what's actually being served there.
Validation vs. indexing
It's worth being clear about what a passing check does and doesn't mean. Validation confirms your file is well-formed XML that follows the sitemap protocol's structure — a correct root element, valid absolute URLs, and staying within the 50,000 URL / 50MB per-file limits. It doesn't check, and can't tell you, whether search engines have actually crawled or indexed the pages your sitemap lists — that's a separate process outside what a structural validator measures.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No — browsers can't fetch arbitrary cross-origin URLs for this kind of check. Paste the sitemap's contents, or upload the file, instead.
- Well-formed XML, the correct root element and namespace, valid absolute URLs in each <loc>, and the sitemap protocol's size and URL-count limits.
- Visit yourdomain.com/sitemap.xml in a browser and copy the content shown there, or download the file directly. That gives you the exact version your site is currently serving to crawlers.
- The sitemap protocol caps a single sitemap file at 50,000 URLs and 50MB uncompressed. If your site has more pages than that, you'll need to split them across multiple sitemap files and reference them all from a sitemap index file instead of one oversized sitemap.
- The sitemap protocol requires every <loc> entry to be a complete, absolute URL — including the scheme and domain, like https://example.com/page — rather than a relative path like /page. Crawlers won't reliably interpret a relative path in a sitemap, so this is treated as a structural error.
- Validation only confirms the file is structurally correct XML that follows the sitemap protocol — it doesn't check whether search engines have actually crawled or indexed the URLs listed inside it. Indexing depends on separate factors handled by each search engine.
- A sitemap index is a valid, different structure — it uses a <sitemapindex> root element and lists other sitemap files instead of individual page URLs. This validator recognizes that structure as valid on its own terms rather than treating it as an error just because it doesn't contain <url> entries directly.
- Fix the issues in your sitemap generation process (or the file itself, if you maintain it by hand), then re-check the corrected version here before re-uploading it to replace the live sitemap.xml on your site.