XML Sitemap Validator
Check whether your XML sitemap is valid. Paste the sitemap content (or a sitemap URL) and the validator checks the XML structure, counts the URLs, and lists every problem it finds — broken tags, missing
How to use this converter
Paste your sitemap XML in the box (or paste a sitemap URL and press 'Fetch & validate' — the site must allow cross-origin fetching). Press Validate and the tool lists every problem, or confirms the sitemap is valid with its URL count.
Formula
A valid sitemap is an XML file starting with , with a root
Google silently ignores a broken sitemap: it reports 'couldn't fetch' in Search Console and your pages stay undiscovered. Common mistakes are unescaped & characters in URLs (& must be written as & in XML), missing
Sitemap errors this validator catches
| From | Equals |
|---|---|
| Unescaped & in a URL | Write & instead of & |
| Missing | Every |
| Relative URL | URLs must start with http:// or https:// |
| Duplicate URL | Same URL listed twice |
| Over 50,000 URLs | Split into several sitemaps |
| Bad XML | Unclosed tags, wrong nesting |
Frequently asked questions
How do I validate my sitemap?
Paste the sitemap XML above (or its URL) and press Validate. The tool lists every problem, or confirms the sitemap is valid with its URL count.
Why does Google say 'couldn't fetch' for my sitemap?
Usually the file is not reachable (wrong URL, blocked by robots.txt or login) or the XML is broken. This validator checks the XML; also check that the URL opens in a browser.
Do & characters need escaping in a sitemap?
Yes — in XML, a bare & is an error. Write & instead. A URL like page?a=1&b=2 must appear as page?a=1&b=2.
How many URLs can a sitemap have?
50,000 URLs or 50 MB uncompressed. Bigger sites use a sitemap index file that lists several sitemaps.
Is my sitemap sent anywhere?
No, if you paste it. If you use 'Fetch & validate', your browser fetches the URL directly — the content is checked in your browser and never sent to our servers.