Home › Tools › Technical SEO Tools › XML Sitemap Validator
Free Technical SEO Tool

XML Sitemap Validator

Paste the XML of any sitemap or sitemap index. The validator checks the file against the sitemaps.org protocol and Google's rules, and lists every problem with the exact URL to fix.

Your Sitemap

Tip: open your sitemap in a browser, press Ctrl+U to view the source, then copy everything.

Validation Report

0URLs
0Errors
0Warnings
0Size
#URLProblem

What Is an XML Sitemap Validator?

An XML sitemap validator checks that your sitemap is a file search engines can read and trust. One stray character, such as an unescaped & in a URL, can break the whole file. Smaller mistakes, like relative URLs or badly formatted dates, quietly cause Google to skip entries.

Paste the XML and the validator reads it in your browser, checks every entry and tells you exactly which URL to fix and why. Nothing is uploaded, so it works for staging sites and private projects too.

How to Validate Your Sitemap

  1. Open your sitemap, for example yourdomain.com/sitemap.xml, and view the page source.
  2. Copy all of the XML and paste it into the box.
  3. Add the sitemap location so the tool can check the host and folder rules.
  4. Fix every error first, then review the warnings.
  5. Resubmit the sitemap in Search Console once it is clean.

What the Validator Checks

CheckWhy it matters
Well formed XMLA single syntax error makes the whole file unreadable
Root tag and namespaceurlset or sitemapindex with the sitemaps.org namespace
Full, encoded URLsEvery loc needs the protocol and domain, with spaces encoded
Same host and folderA sitemap normally covers only URLs on its own host and below its folder
Valid lastmod datesW3C format only. Dates like 28/10/2026 are rejected
changefreq and priorityMust use allowed values, though Google ignores both
Duplicates and tracking codesWaste crawling and send mixed signals about the canonical URL
50,000 URLs and 50 MBThe hard limits for one file

The rules follow the sitemaps.org protocol and Google's sitemap guidelines.

Tips After Validating

Keep Your Sitemaps Healthy

Fix pages Google found but skipped with discovered, currently not indexed, learn how to manage big sites with a sitemap index generator in PHP, and see whether IndexNow can speed up indexing. Need a fresh file? Build one with the XML sitemap generator.

Frequently Asked Questions

1Why does Search Console say my sitemap could not be read?

Usually the file is not valid XML, often because of an unescaped ampersand, a missing closing tag, or an HTML error page served instead of the sitemap. Paste the XML here to find the first error.

2Are relative URLs allowed in a sitemap?

No. Every loc must be a full URL including https and the domain. A path like /contact/ on its own is rejected by Google.

3What date format should lastmod use?

Use the W3C datetime format. A simple date like 2026-11-04 is fine, or add the time and time zone, like 2026-11-04T10:30:00+05:30.

4Can I validate a sitemap index file?

Yes. Paste a sitemap index and the tool checks each listed sitemap URL and date. Then paste each child sitemap to check the pages inside it.

Related Articles

More Free Technical SEO Tools

See all technical seo tools →  |  Browse every free tool →