web validator

Sitemap XML Validator

Validate sitemap XML locally, check loc URLs, and catch structure errors before submitting to search engines.

Results

Processing…
Status
Processing...
Details
Processing...
Entries
Processing...
Invalid loc
Processing...

How to use this validator

  1. Paste your sitemap XML (urlset or sitemapindex).
  2. Run validate to parse and check loc URLs.
  3. If invalid, fix missing roots, malformed loc URLs, or bad entries and re-validate.

Rules & checks

Requires <urlset> or <sitemapindex> as the root element.

Ensures each entry has a valid absolute <loc> URL.

Parses XML locally—no fetching of URLs or remote resources.

Best for typical sitemap sizes; keep payloads modest in-browser.

Inputs explained

  • Sitemap XML

    Paste your sitemap XML (urlset or sitemapindex). Use absolute loc URLs. Keep size modest for browser parsing.

When to use it

  • Validate sitemaps from CMS/static site generators before submission
  • QA sitemap indexes with multiple sitemap files
  • Check staging/production sitemaps for URL correctness

Common errors

  • Root element is not urlset or sitemapindex
  • loc values are relative or malformed
  • Missing loc in url/sitemap entries

Limitations

  • Structure and URL-pattern check only; does not fetch or verify live URLs.
  • Does not validate lastmod/changefreq/priority semantics.
  • Very large sitemaps may be slow in-browser; split or validate in CI for huge files.

Tips

  • Always use absolute URLs in loc
  • Keep sitemaps within search engine limits (50k URLs or 50MB uncompressed)
  • Separate large sites into multiple sitemaps and use a sitemap index

Examples

Valid urlset

  • <urlset><url><loc>https://example.com/</loc></url></urlset> -> Valid

Valid sitemap index

  • <sitemapindex><sitemap><loc>https://example.com/sitemap-1.xml</loc></sitemap></sitemapindex> -> Valid

Invalid loc

  • <url><loc>example</loc></url> -> Invalid URL (must be absolute)

Deep dive

This sitemap validator checks urlset/sitemapindex roots and absolute loc URLs entirely in your browser so you can fix issues before submitting to search engines.

Use it to QA CMS-generated sitemaps and indexes, then push to Google/Bing once structure passes.

FAQs

Do you fetch URLs?
No. This validates structure and URL format only; no network calls are made.
Do you check lastmod/priority/changefreq?
Not yet. Current focus is roots and loc URL validity.
Is my sitemap stored?
No. It stays in your browser and clears on refresh.

Related validators

All validation happens in your browser. No data is sent, logged, or stored.

Structure-only check; does not fetch or verify live URLs.