XML Sitemap Validator
Scan any XML sitemap or sitemap index URL to audit XML formatting, urlset declarations, HTTP status codes, and entry counts.
XML Sitemap Protocol & Crawl Indexation Architecture
1. The XML Sitemap Protocol
A valid sitemap follows a specific XML structure â an <urlset> root element (or <sitemapindex> for index files) containing one <url> entry per page, each with at minimum a <loc> tag holding the absolute URL. Google's own documentation notes that a sitemap doesn't guarantee indexing â it's a discovery aid, not a directive â but a malformed or unreachable sitemap actively hurts discovery of pages that have few internal links pointing to them.
2. Sitemap Index vs. Urlset File Structures
A standard sitemap (<urlset>) lists actual page URLs directly. A sitemap index (<sitemapindex>) instead lists the locations of multiple child sitemap files â used once a site exceeds the 50,000-URL / 50MB single-file limit, or simply as an organizational pattern (splitting sitemaps by content type: posts, pages, products, categories). This tool identifies which structure a given URL uses and counts direct <loc> entries either way, though for a sitemap index the counted entries are the child sitemap URLs themselves, not the underlying pages inside them.
3. Declaring Sitemaps in Robots.txt
Referencing a sitemap's location via a Sitemap: directive in robots.txt is the standard way to make it discoverable without manual submission to each search engine's webmaster tools. If you're validating a sitemap because search engines don't seem to be finding it, confirm it's actually declared correctly with the robots.txt Validator.
4. Sitemap Delivery via Nimbica Static Edge
Nimbica serves XML sitemaps as pre-rendered static files from its edge network for connected sites, so a sitemap fetch â whether from a search engine crawler doing routine re-checks or a large site with a substantial sitemap index â never triggers origin PHP execution.
5. How to Use This Validator
- Enter the sitemap URL directly â usually at a predictable path like
/sitemap.xmlor/sitemap_index.xmlfor WordPress SEO plugins. - Confirm the HTTP status is 200 and the XML declaration check passes â either failing means search engines can't reliably parse it.
- Check the URL count against your rough expectation (roughly how many published pages/posts you have) â a count far lower than expected suggests missing content; far higher suggests stale or duplicate entries.
- If it's a sitemap index, spot-check a few of the listed child sitemaps individually with this same tool to confirm they're each valid too.
6. Common Sitemap Mistakes
- Including non-indexable URLs. Pages marked `noindex`, blocked by robots.txt, or redirecting elsewhere shouldn't appear in the sitemap â their presence sends search engines a contradictory signal.
- Sitemap not updating after content changes. A cached or statically-generated sitemap that doesn't refresh when new content publishes defeats the purpose of using one for faster discovery.
- Forgetting the robots.txt declaration. A perfectly valid sitemap that's never referenced anywhere still needs manual submission via each search engine's webmaster tools to be found.
- Mixing HTTP and HTTPS URLs, or www/non-www inconsistently, within one sitemap. Every listed URL should match the site's canonical protocol and hostname exactly.
7. Who Should Use This Tool
Site owners and developers confirming a sitemap was generated correctly after a CMS or plugin change, SEOs auditing a client's technical setup, and anyone troubleshooting why certain pages aren't getting indexed who wants to rule out a sitemap-level problem first.
8. Limitations
This check validates structural presence (XML markers, `<loc>` entries, HTTP reachability) â it does not fetch and verify each individual listed URL, validate optional fields like `lastmod` date formatting, or check the file against the full formal XML schema. A sitemap index's child sitemaps are identified but not automatically crawled and validated in turn; check each one individually if needed.
Give search engine crawlers sub-50ms response times with Nimbica
Transform dynamic PHP rendering bottlenecks into ultra-fast static HTML deployed across 300+ global edge locations.
Frequently Asked Questions
What is an XML sitemap?
It's a structured XML file â following a protocol jointly supported by Google, Bing, and other major search engines â that lists a site's URLs so crawlers can discover pages without relying solely on following internal links. It doesn't force indexing, but it does make discovery faster and more complete, especially for pages with few internal links pointing to them.
What is the maximum URL limit for a single XML sitemap file?
Google's sitemap protocol caps a single sitemap file at 50,000 URLs or 50MB uncompressed, whichever comes first. Sites exceeding that split their URLs across multiple sitemap files and reference all of them from one sitemap index file â the "Sitemap File Type" result on this tool tells you whether the URL you entered is a sitemap index or a standard urlset.
Does this tool validate every rule in the sitemap protocol, or just basic structure?
It checks that the file is fetchable, contains valid XML sitemap markers (an `<?xml` declaration and either `<urlset>` or `<sitemapindex>`), extracts and counts `<loc>` URL entries, and identifies whether it's an index or a standard sitemap. It does not validate every optional field in the protocol (lastmod date formats, priority/changefreq values â which Google has said it largely ignores anyway) or confirm that every listed URL actually resolves.
Why would a sitemap show 0 URLs even though the file loads successfully?
This usually means the file loaded (a valid HTTP response) but didn't contain recognizable `<loc>` tags â which can happen if the "sitemap" URL is actually an HTML page (some CMS setups serve a friendly error page at 404 with a 200 status instead of a real 404), if the file uses a non-standard or malformed tag structure, or if it's a sitemap index whose child sitemaps weren't individually crawled by this check.
Related Tools in This Cluster
robots.txt Validator
Validate robots.txt directives, detect syntax errors, and check Disallow blocks.
Title Tag Length Checker
Audit pixel width and character length of your meta titles to prevent SERP truncation.
Meta Tag Generator
Generate complete HTML meta tags, Open Graph social tags, and Twitter Card tags.
