How to validate sitemap XML before submitting to Google
Paste your sitemap XML to catch malformed URLs, duplicates, and structural errors — before Search Console rejects it.
A sitemap with broken XML or duplicate URLs wastes crawl budget and can delay indexing. The Sitemap XML Validator parses pasted sitemap content and reports URL count, format issues, and duplicates — all in your browser.
Paste-only limitation: the tool cannot fetch yoursite.com/sitemap.xml. Open the sitemap in a browser, copy the XML source, and paste it here. It also does not check whether URLs return HTTP 200 — that requires a server-side crawler.
How it works
- Copy your sitemap XML — from
/sitemap.xml, a sitemap index, or your CMS export. - Paste into the tool — validation runs immediately on the XML structure.
- Fix reported issues — invalid URLs, missing
<loc>tags, bad date formats, or duplicate entries.
Supported formats
- urlset — standard sitemaps with
<url>entries per sitemaps.org spec. - sitemapindex — index files that point to child sitemaps.
Each <loc> is checked for valid URL format. <lastmod> values are validated against ISO 8601 date patterns when present.
What it cannot check
- Whether URLs are reachable (HTTP 200, 301, 404).
- Whether pages are indexable (noindex, blocked by robots.txt).
- Whether the sitemap is within Google's 50,000 URL / 50 MB limits — it reports count so you can check manually.
Use Google Search Console after fixing structural issues here to confirm Google can fetch and process the file.
Related tools
Test crawler access with the Robots.txt Tester, or validate structured data with the Schema Markup Validator.