Sitemap Validator
Validate XML sitemap syntax, check URL structure, and verify compliance with the sitemaps.org protocol.
Validate your XML sitemap files instantly with this free online tool. It checks your sitemap against the sitemaps.org protocol specification, verifying proper XML structure, namespace declarations, required <loc> elements, and optional metadata like <lastmod>, <changefreq>, and <priority>. Get a detailed breakdown of total URLs, coverage statistics, and a list of every issue found. All processing runs locally in your browser — your sitemap data is never uploaded to any server. Essential for SEO professionals, web developers, and anyone managing website crawlability.
How to use
Paste your sitemap XML
Copy the contents of your sitemap.xml file and paste it into the input area. You can also paste a partial sitemap for testing specific URL entries.
Click Validate Sitemap
Press the validate button to run a comprehensive check against the sitemaps.org protocol specification.
Review results and fix issues
Check the stats grid for an overview of your sitemap coverage. Review any issues listed below and fix them in your source file to ensure search engines can crawl your site properly.
Complete Guide to XML Sitemaps
Worked Examples
Example: Validating a Basic Sitemap
Given: A sitemap.xml file with 3 URLs, one of which has an invalid <changefreq> value of "biweekly".
Step 1: Paste the sitemap XML into the validator input area.
Step 2: Click "Validate Sitemap" to run the check.
Step 3: The validator reports 3 total URLs, flags 1 issue: URL 2 has an invalid changefreq value "biweekly".
Step 4: Fix the changefreq to a valid value like "weekly" and re-validate to confirm.
Result: The sitemap now passes validation with 3 valid URLs and no issues.
Example: Diagnosing a Namespace Error
Given: A CMS-generated sitemap that search engines are ignoring despite containing valid URLs.
Step 1: Paste the sitemap contents into the validator.
Step 2: The validator immediately flags an invalid xmlns attribute — the namespace URL has a typo ("sitemap" instead of "sitemaps").
Step 3: Correct the namespace to "http://www.sitemaps.org/schemas/sitemap/0.9" in your CMS template or plugin configuration.
Step 4: Re-validate to confirm the sitemap is now fully compliant.
Result: With the correct namespace, search engines can now parse and process the sitemap, leading to proper indexing of all listed URLs.
Use cases
Pre-Deployment Sitemap Audit
“Before pushing a new site version to production, validate your generated sitemap to catch broken URLs, missing loc elements, or malformed dates. A single invalid entry can cause search engines to ignore your entire sitemap, leading to pages not being indexed. Running a quick validation as part of your deployment checklist prevents these silent SEO failures.”
SEO Migration Verification
“When migrating a website to a new domain, CMS, or URL structure, the sitemap must accurately reflect all new URLs. Paste your generated sitemap here to verify that every URL is valid, properly formatted, and uses the correct domain. This catches common migration issues like mixed protocols (http vs https), trailing slashes, and leftover staging domain references.”
CMS Plugin Output Validation
“Many CMS platforms auto-generate sitemaps through plugins, but plugin updates or configuration changes can silently break the output. Periodically validate your CMS-generated sitemap to ensure it still produces valid XML with correct namespace declarations, properly escaped URLs, and valid optional elements like lastmod and priority. This is especially important after WordPress, Drupal, or other CMS updates.”
Frequently Asked Questions
?What does this sitemap validator check?
It validates XML structure, checks for the required <urlset> root element with proper xmlns, verifies each <url> has a valid <loc>, and optionally validates <lastmod> dates, <changefreq> values, and <priority> scores against the sitemaps.org specification.
?Is my sitemap data private?
Yes, completely. All validation runs in your browser using the built-in DOMParser API. Your sitemap XML is never sent to any server. This makes it safe to validate sitemaps containing internal URLs or staging environments.
?Is this sitemap validator free?
Yes, it is 100% free with no registration, no usage limits, and no data collection. Use it as often as you need for any number of sitemaps.
?What is the maximum sitemap size I can validate?
Since validation runs in your browser, it depends on your device's memory. Most modern devices can handle sitemaps with tens of thousands of URLs without issue. The sitemaps.org protocol recommends a maximum of 50,000 URLs per sitemap file.
?Does it validate sitemap index files?
This tool is designed for individual sitemap files (<urlset>). Sitemap index files (<sitemapindex>) use a different structure. You would need to validate each referenced sitemap separately.
?What is the correct xmlns for a sitemap?
The standard namespace is http://www.sitemaps.org/schemas/sitemap/0.9. This must be declared in the <urlset> root element for the sitemap to be valid according to the protocol specification.
?Are lastmod, changefreq, and priority required?
No, only <loc> is required inside each <url> element. The <lastmod>, <changefreq>, and <priority> elements are optional. However, Google has stated that it primarily uses <lastmod> and largely ignores <changefreq> and <priority>.
?Why is my valid XML showing as an invalid sitemap?
Your XML may parse correctly but still fail sitemap validation if it's missing the <urlset> root element, has an incorrect namespace, or contains <url> entries without <loc> elements. The validator checks sitemap-specific rules beyond basic XML syntax.
Related Tools
Recommended Books on SEO & Web Development
As an Amazon Associate we earn from qualifying purchases.
Professional Tools for Web Developers

Dell UltraSharp 27 4K USB-C Hub Monitor
Dell

Mechanical Keyboard for Developers
Various

Logitech MX Master 3S Wireless Mouse
Logitech
As an Amazon Associate we earn from qualifying purchases.


