Back to SEO & Web Tools

Free XML Sitemap Validator

Paste your sitemap.xml contents to check it's well-formed and follows the correct structure.

About This Tool

Free XML sitemap validator online — paste the contents of your sitemap.xml and instantly check whether it is well-formed XML, uses the correct `<urlset>`/`<url>`/`<loc>` structure, and count how many URLs it contains. Useful for site owners and developers debugging why Google Search Console is rejecting a sitemap, or verifying a sitemap generated by a CMS or script before submitting it. Flags common mistakes like a missing `<loc>` tag, invalid XML syntax, or an empty sitemap. Runs entirely in your browser using the native XML parser — nothing is uploaded.

How to Use

  1. 1

    Paste your sitemap XML

    Paste the full contents of your sitemap.xml file.

  2. 2

    Validate

    Click Validate to check structure, required tags, and URL count.

  3. 3

    Fix any flagged issues

    Review errors or warnings and correct your sitemap accordingly.

Frequently Asked Questions

What tags does a valid sitemap need?+
A standard sitemap needs a root <urlset> element (with the correct XML namespace) containing one or more <url> elements, each with at least a <loc> tag holding the page URL.
Is there a limit on how many URLs a sitemap can contain?+
Yes — a single sitemap file can list at most 50,000 URLs and must be under 50MB uncompressed; larger sites should split into multiple sitemaps referenced by a sitemap index file.
Does this tool check if the URLs actually exist?+
No — it validates the XML structure and syntax only. It does not fetch each URL to confirm it returns a 200 response.

Related Tools

Robots.txt Generator

Try it free →

XML to JSON Converter

Try it free →

HTML Formatter

Try it free →