Free tool

Free XML sitemap validator.

Enter a domain or sitemap URL and we check that the file is valid XML, follows the sitemap protocol and lists URLs that actually return a 200 status.

Validate a sitemap

Enter a sitemap URL, or a domain to test /sitemap.xml.

We fetch the URL from our server, check only public pages and do not store results.

What it checks

What the sitemap validator checks.

A clean sitemap helps search engines discover and prioritize your pages.

Structure

Well-formed XML, the correct namespace and a valid root element for either a URL set or a sitemap index.

  • XML syntax
  • urlset or sitemapindex
  • Namespace check

Protocol limits

Each file may hold up to 50,000 URLs. Entries need absolute http(s) locations.

  • Entry count
  • Valid loc values
  • Host consistency

Quality

Duplicates, malformed dates and URLs that do not return 200 reduce trust in the file.

  • Duplicate URLs
  • lastmod format
  • Sample status check
How to use it

Three steps to useful results.

1

Enter the sitemap

Use the full sitemap URL, or just the domain if it lives at /sitemap.xml.

2

Review the checks

Fix invalid or inconsistent entries first.

3

Submit it

Reference the sitemap in robots.txt and submit it in Google Search Console.

Common problems

Sitemap errors we see most, and how to fix them.

Run the validator above, then check this list.

  • The sitemap does not return a normal page. It should open with a 200 status at its final address. Redirects, 404s and server errors stop search engines from reading it.
  • Wrong address version. If your site uses https and no www, every URL in the sitemap should too. Mixed versions create duplicates.
  • Pages that should not be there. Remove pages set to noindex, blocked by robots.txt, redirected or deleted. A sitemap should list only live pages you want in search.
  • Too many URLs in one file. A single sitemap can hold up to 50,000 URLs or 50 MB uncompressed. Split larger sites into several files with a sitemap index.
  • A fake or always-today lastmod date. Google has said it prefers no lastmod to a wrong one. Update it only when the page really changes.
  • Duplicate or non-canonical URLs. List the canonical version of each page once, without tracking parameters.
  • Relying on priority and changefreq. Google ignores both, so you can leave them out.
  • Never telling search engines. Add a Sitemap line to your robots.txt and submit the sitemap in Google Search Console and Bing Webmaster Tools.
A simple example

What a minimal valid sitemap looks like.

This is the smallest useful XML sitemap. Each page gets one url entry with a loc address, and lastmod is optional.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-10-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/services/</loc>
  </url>
</urlset>
FAQ

Sitemap Validator FAQ

Common questions about this tool and what the results mean.

Ask us about your results
Do I need an XML sitemap?

Small, well-linked sites can be crawled without one, but a sitemap helps discovery and gives you indexing reports in Search Console.

Should every URL be in the sitemap?

Only canonical, indexable pages that return 200. Leave out redirects, noindex pages and duplicates.

Does the validator support compressed sitemaps?

Not at the moment. Test the uncompressed XML URL.

What if I have a sitemap index?

The tool validates the index structure. Validate each child sitemap separately.

Ready when you are

Want an expert to fix what the tool finds?

Our team turns diagnostics into a prioritized roadmap and does the work. Start with a free audit request.