You generate a sitemap, upload it, and assume search engines are reading it. Nothing on the surface tells you otherwise. But a single malformed entry, a date in the wrong format or a file that has quietly grown past the protocol limits can make engines reject entries, or the whole file, without any visible alarm on your site. The failure is silent, and it usually surfaces weeks later as pages that never get crawled.

This guide shows how to check a sitemap before search engines rely on it, using the free Sitemap Validator on Ovatly. You paste the XML, read the errors and warnings, fix them in the right order, and re-check the corrected file. Everything runs in your browser: the XML you paste is parsed on your device and never uploaded.

Contents

  • Quick answer
  • What the validator actually checks
  • Errors versus warnings
  • The date format that catches everyone
  • How to validate a sitemap, step by step
  • Worked example: a European date and a bad priority
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Paste the full contents of your sitemap.xml into the Sitemap Validator and read the summary: file type, entry count, size and error count. Fix the errors first, because errors break the format or the protocol and can make engines ignore entries or the whole file. Then fix the warnings, such as duplicate entries or a priority outside the 0.0 to 1.0 range. Re-paste the corrected file to confirm it is clean, upload it, and paste the published copy once more to be sure. If your file is a sitemap index, run each child sitemap it lists through the same check.

What the validator actually checks

The validator parses the XML with the browser's DOMParser and checks the structure of both kinds of sitemap file: urlset files, which list page URLs, and sitemap index files, which list other sitemaps. It also handles the namespaced variants produced by common CMS plugins, which is how most real-world sitemaps arrive. For each entry it looks for the problems that make search engines reject or ignore the file: malformed XML, a missing or invalid URL in an entry, lastmod dates in the wrong format, and breaches of the protocol limits, which allow up to 50,000 URLs and 50 MB uncompressed per file. Softer problems are reported separately as warnings rather than errors, so you can fix what is fatal first and tidy the rest afterwards.

Errors versus warnings

The distinction matters because it sets your working order. Errors are the failures: malformed XML, a missing loc element, an invalid date, an oversized file. An error can make an engine ignore the entry that contains it, or the whole file. Warnings are problems engines usually tolerate, chiefly duplicate entries and a priority value outside the 0.0 to 1.0 range. Tolerated is not the same as harmless, though. A duplicate entry wastes crawl attention and suggests the file is generated carelessly, and an out-of-range priority is simply wrong data you are handing to every engine that reads the file. The validator's notes are blunt about this: warnings are worth fixing even though engines usually tolerate them.

The date format that catches everyone

Of all the errors, the lastmod date is the most common trap, because the wrong version looks perfectly natural to the person writing it. Sitemap dates must use the W3C format, year first: 2026-01-31 means the 31st of January 2026. Regional orders like day-month-year are one of the most common errors this check catches, and they are easy to produce: many CMS settings and spreadsheet exports happily write dates the way local humans read them. The file then carries a date no sitemap parser will accept. Whenever you see an invalid lastmod error, check the order of the fields before anything else; the day, month and year are usually all present, just arranged for a human instead of the protocol.

How to validate a sitemap, step by step

  1. Paste the full sitemap.xml content into the box in the Sitemap Validator.
  2. Read the summary: file type, entry count, size and error count.
  3. Fix the errors first, then review the warnings.
  4. Re-paste the corrected file to confirm it is clean.
  5. If the file is a sitemap index, run each child sitemap it lists through the same check.

Worked example: a European date and a bad priority

Imagine a freshly generated sitemap whose first entry carries <lastmod>31-01-2026</lastmod>, written day-month-year by a CMS set to a European locale. The validator fails that entry with the error: "URL entry 1 has an invalid <lastmod> value "31-01-2026"." The fix is a rearrangement, not new information: sitemap dates must be in W3C format, year first, so the entry should read 2026-01-31. The same file with a priority of 1.5 on one entry would add a warning rather than an error, because priority must stay between 0.0 and 1.0. Two different severities, two different fixes, and both invisible until someone actually checks the file.

Limitations and alternatives

A clean validation has a precise and limited meaning: the file is well-formed and consistent. It cannot tell you whether the listed pages themselves are indexable or worth crawling. A valid sitemap full of blocked, duplicate or thin pages will pass this check and still perform badly, because indexing also depends on the pages being crawlable, canonical and valuable enough to include. The second limit is about what gets checked: the validator checks the text you paste, not the file live on your server. After fixing errors, upload the corrected file and paste its contents once more to confirm the published copy is clean; a fix that never reached the server fixes nothing. Used this way, as a sitemap checker after generating a new file, after a site migration, or whenever pages stop being crawled as expected, it covers the file itself completely and claims nothing about the pages inside it.

Common mistakes

  • Never checking the file at all. Generators produce whatever their settings tell them to, including wrong date formats. The first validation is the one that finds the embarrassing errors.
  • Fixing warnings and ignoring errors. The order matters. Errors can cost you entries or the whole file; warnings can wait until the errors are gone, but not forever.
  • Validating once and forgetting. Check whenever the file changes: after generating a new one, after a redesign or migration, and after adding or removing a large number of pages.
  • Assuming a pass means pages will be indexed. Validation covers the file only. If pages still do not appear, the problem is in crawlability, canonical signals or page quality, not in the sitemap's syntax.
  • Checking a local copy instead of the published one. Paste what is actually live on the server, especially after uploading a fix, so the check describes the file engines will really read.

FAQs

What is the difference between an error and a warning here? Errors break the format or the protocol (malformed XML, missing loc, invalid dates, oversized files) and can make engines ignore entries or the whole file. Warnings are problems like duplicates or out-of-range priorities that engines usually tolerate but you should still fix.

Why does my file need the sitemap namespace? The urlset element should declare xmlns="http://www.sitemaps.org/schemas/sitemap/0.9". Without it, strict parsers and some search engines will not recognise the file as a sitemap.

Can this validate a sitemap index file? Yes. Index files are detected by their <sitemapindex> root, and each child <sitemap> entry's loc and lastmod are checked the same way.

My sitemap passes but pages are not indexed. Why? Validation only covers the file. Indexing also depends on the pages being crawlable, canonical, and valuable enough to include; check robots rules and page quality next.

What does a valid sitemap need? Well-formed XML, the sitemap namespace declared on the root element, an absolute URL in every entry's loc element, W3C-format dates wherever lastmod is used, and no more than 50,000 URLs or 50 MB uncompressed in a single file.

Conclusion

Validating a sitemap takes a minute and removes an entire class of silent failures: broken XML, missing URLs, dates in a human order instead of the protocol's, and files that have outgrown the limits. Paste the file into the Sitemap Validator, fix errors before warnings, and re-check the published copy after every change. Clean URLs are the other half of the same discipline, covered in the related guide: How to Write SEO-Friendly URLs and Slugs. Both tools live in the SEO Tools category.