SEO Tools
XML Sitemap Validator
Validate your sitemap.xml against the sitemaps.org protocol and extract every URL with lastmod, changefreq, and priority. Errors and warnings flagged inline.
Parsing runs in your browser via DOMParser. Sitemaps for staging or unpublished sites stay on your device.
What this checks
- Root element is <urlset> or <sitemapindex>.
- Namespace is the official sitemaps.org schema.
- Every entry has a <loc> with an absolute http(s) URL under 2048 characters.
- <lastmod> is a valid W3C Datetime (YYYY, YYYY-MM, YYYY-MM-DD, or full RFC 3339).
- <changefreq> is one of always, hourly, daily, weekly, monthly, yearly, never.
- <priority> is a decimal from 0.0 to 1.0.
- Entry count is within the 50,000 URL protocol limit.
- File size is within the 50 MB protocol limit.
- Duplicate URLs are surfaced as warnings.
How to use
- Paste the contents of your sitemap.xml on the left. The file should start with <?xml ... ?> and have a <urlset> or <sitemapindex> root.
- Read the validation summary on the right: green Valid or rose Issues found, plus entry count, file size, encoding, and lastmod range.
- Scroll the Errors and warnings panel below to fix any flagged <loc>, <lastmod>, <changefreq>, <priority>, or duplicate-URL issues. Each issue links to a source line when possible.
- Use Copy URL list to grab every URL as plain text, or Copy as CSV to get a spreadsheet-ready file with lastmod, changefreq, and priority columns.
- Click a sample (Basic urlset, Sitemap index, or Sample with errors) to see how a clean sitemap and a broken one each appear.
About this tool
XML Sitemap Validator is a browser-only checker for the sitemap.xml files that Google, Bing, and every other search engine read to discover the pages on your site. Paste the body of a sitemap, drop in a sample, or feed it the output of your build pipeline, and the tool walks the XML, validates it against the sitemaps.org protocol, and lists every URL it finds in a sortable table. Both root types are supported: the standard <urlset> file that lists pages, and the <sitemapindex> file that points at multiple sub-sitemaps. The validator checks each entry for the things that quietly break indexing: a missing or non-absolute <loc>, a <loc> longer than 2048 characters, a <lastmod> that is not a valid W3C Datetime, a <changefreq> outside the allowed seven values (always, hourly, daily, weekly, monthly, yearly, never), a <priority> outside the 0.0 to 1.0 range, the sitemap exceeding the 50,000 URL or 50 MB protocol limits, and duplicate URLs that crawlers will see as the same canonical page. It also warns when the root element is missing the official xmlns namespace, when <priority> is set to the default 0.5 (which has no effect), and when the file is empty. Each error and warning is paired with the source line number when possible, so you can jump back into your sitemap generator or CMS template and fix the problem in one go. Once the structure is clean, the tool surfaces high-level stats: the file type (URL set or sitemap index), entry count, file size, declared encoding, lastmod range, and number of duplicate URLs. The full URL list can be copied as plain text (one URL per line, ready for a smoke test, a screaming-frog import, or a redirect map) or as CSV with all four sitemap fields, ready to paste into a spreadsheet for SEO auditing, content reviews, internal-link analysis, or migration planning. The parser uses the browser's native DOMParser, so a malformed XML payload produces a precise error message instead of crashing, and the entire pipeline runs locally on your device. Sitemaps for staging environments, internal subdomains, unpublished launches, and competitive teardown analysis stay private; nothing is uploaded.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Robots.txt Tester
Test allow or disallow against any robots.txt and user-agent, with the matched rule.
Open tool
SEORobots.txt Generator
Generate a valid robots.txt with grouped rules, sitemap URLs, and useful presets.
Open tool
SEOMeta Tag Preview
SERP, Open Graph, and Twitter Card preview with pixel-accurate length checks.
Open tool
SEOSchema Markup Generator
Generate JSON-LD schema markup for ten common types with live validation.
Open tool
DeveloperXML Formatter
Format, minify, and validate XML with line and column error reporting.
Open tool