XML Sitemap Validator

An XML sitemap is valid when it is well-formed XML rooted at <urlset> or <sitemapindex>, every entry carries exactly one absolute <loc>, and the file stays inside the sitemap protocol's limits of 50,000 URLs and 50MB uncompressed. Check your sitemap.xml is well-formed and valid before you submit it — paste or upload the file and see a PASS/FAIL checklist. Everything runs in your browser.

Free, no sign-up, no usage limits Runs in your browser — nothing is uploaded Checks structure, dates and the 50,000-URL limit
Awaiting input

    How to use the sitemap validator

    Paste the contents of your sitemap.xml into the box, or use Load a sitemap file to read one from your computer — the file's text drops straight into the box. The validator runs as you type: it parses the XML, confirms the root is a <urlset> or <sitemapindex>, and checks that every <loc> is an absolute http(s) URL, that any <lastmod>, <changefreq> and <priority> values are valid, and that the file stays within the 50,000-entry and 50MB limits. A big PASS or FAIL badge, a URL count, and a checklist show exactly what passed, with any errors and warnings listed underneath.

    This validates structure and syntax only, locally in your browser — it does not fetch or crawl the URLs, and it does not check that the pages exist or are indexable. Need to build a sitemap first? Use the sitemap generator. Once it is live, check that the pages it lists are not blocked with the robots.txt tester, and write the Sitemap: line itself with the robots.txt generator.

    Frequently Asked Questions

    What does this validator check?
    The XML Sitemap Validator checks that your file is well-formed XML, uses a correct <urlset> or <sitemapindex> root, that each <url> has exactly one valid absolute http(s) <loc>, that any <lastmod> is a valid W3C date (YYYY-MM-DD or full ISO 8601), that any <changefreq> is one of always, hourly, daily, weekly, monthly, yearly or never, that any <priority> is a number between 0.0 and 1.0, and that the file stays within the 50,000-entry and 50MB limits. A malformed document, a missing or invalid <loc>, an empty sitemap or more than 50,000 entries are reported as errors; bad <lastmod>, <changefreq> and <priority> values and a file over 50MB are reported as warnings. Every check is shown with a pass or fail mark, along with any errors and warnings.
    Does it crawl or fetch my URLs?
    No — the XML Sitemap Validator does not crawl or fetch your URLs; it only checks the file's structure and syntax locally in your browser. It does not fetch or crawl the URLs inside the sitemap, and it does not verify that those pages exist, respond, or are indexable. Nothing you paste or upload is sent to any server.
    What are the sitemap size limits?
    A single sitemap file can hold up to 50,000 URLs and must stay under 50MB uncompressed. If your site is larger, split the URLs across several sitemap files and reference them from a sitemap index file. The validator flags files that pass the 50,000-URL limit as an error and warns if the pasted text is very large.
    Can it read a sitemap index?
    Yes — the XML Sitemap Validator accepts a sitemap index as well as a plain URL list. For a <sitemapindex> root it checks that each <sitemap> entry has a valid absolute <loc> and that any <lastmod> value is a valid W3C date, and it counts the referenced sitemaps. The 50,000-entry and 50MB limits are applied to the index file itself, so the figure reported is the number of child sitemaps rather than the URLs inside them. Those child sitemaps are never fetched, so each one still has to be validated on its own.