You generated a sitemap, every important page is listed in it, and weeks later some of those pages still do not appear in Google. The instinct is to blame the sitemap, or to blame Google. Usually the real explanation is simpler: a sitemap does one job, and indexing is a different job. The sitemap presents your URLs. Whether a presented URL earns a place in the index is a separate decision, made page by page.
This guide separates the two steps. It shows what the free Sitemap Validator on Ovatly can rule out (a broken file), what it honestly cannot tell you (whether the pages deserve indexing), and where to look next when the file is clean but the pages are still missing.
Contents
- Quick answer
- Two different steps: presenting URLs and indexing them
- When the file itself is the problem
- When the pages are the problem
- How to validate your sitemap, step by step
- Worked example: one bad date hiding an entry
- Limitations: what validation cannot tell you
- Common mistakes
- FAQs
- Conclusion
Quick answer
A sitemap gets your URLs in front of search engines; it does not get them indexed. If pages in your sitemap do not appear in Google, first rule out the file: paste it into the Sitemap Validator and fix any errors, because errors such as malformed XML or wrongly formatted dates can make engines ignore entries or the whole file. If the file validates clean, the cause sits with the pages themselves. Indexing also depends on the pages being crawlable, canonical, and valuable enough to include, so check robots rules and page quality next.
Two different steps: presenting URLs and indexing them
Think of the sitemap as a list you hand over. It names the pages you want search engines to know about, in a structured file they can read. That is the discovery step, and the sitemap is where your control ends.
Indexing is the step after. A search engine can know a URL exists and still decide not to include the page in its index. The validator's own documentation makes the same distinction: a clean validation means the file is well-formed and consistent; it cannot tell you whether the listed pages themselves are indexable or worth crawling. So "the page is in my sitemap" and "the page should be in Google" are two claims, and only the first one is yours to make true.
This is why the debugging order matters. Check the file first, because it is quick and entirely within your control. Then check the pages, which is where the remaining causes live.
When the file itself is the problem
A sitemap with errors may never complete the discovery step properly. The validator groups what it finds into errors and warnings. Errors break the format or the protocol, and they can make engines ignore entries or the whole file. The error classes are:
- Malformed XML. The file does not parse as XML at all.
- A missing or invalid URL in an entry. Every entry needs an absolute URL in its
<loc>element. - Dates in the wrong format.
<lastmod>dates must use the W3C format, year first, such as 2026-01-31. Regional orders like day-month-year are one of the most common errors the check catches. - Protocol limit breaches. A single file may hold up to 50,000 URLs and 50 MB uncompressed; beyond that it breaks the protocol.
- A missing namespace. The
<urlset>element should declare the sitemap namespace; without it, strict parsers and some search engines will not recognise the file as a sitemap.
Warnings are softer problems, such as duplicate entries or a <priority> value outside the 0.0 to 1.0 range. Engines usually tolerate them, but they are still worth fixing, because a file you hand over should be a file you have read.
When the pages are the problem
If the file validates clean and pages are still missing, the validator has done all it can, and the answer is in the pages. Indexing depends on three page-level conditions:
- Crawlable. Your robots rules must allow the page to be fetched. A page listed in the sitemap but blocked from crawling is a contradiction the engine resolves in favour of the block.
- Canonical. The listed URL should be the version you actually want indexed. If the page declares a different canonical version, the engine will usually prefer that version instead.
- Valuable enough to include. Thin, duplicated or low-value pages may be known and still left out. That is a quality judgement, and no file format change overrides it.
None of these three can be fixed inside the sitemap. They are fixed in the robots file, in the page's canonical signals, and in the content itself.
How to validate your sitemap, step by step
- Paste the full sitemap.xml content into the Sitemap Validator. Use the contents of the published file, so you check the copy search engines receive.
- Read the summary: file type, entry count, size and error count.
- Fix the errors first, then review the warnings.
- Re-paste the corrected file to confirm it is clean.
- If the file is a sitemap index, run each child sitemap it lists through the same check. Index files are detected by their
<sitemapindex>root, and each child<sitemap>entry is checked the same way.
Everything runs in your browser: the XML you paste is parsed on your device and never uploaded.
Worked example: one bad date hiding an entry
A sitemap whose first entry carries the date in European order, written as <lastmod>31-01-2026</lastmod>, fails validation with an error naming entry 1 and the invalid value. Sitemap dates must be in W3C format, year first: 2026-01-31. The same file with a <priority> of 1.5 would add a warning, because priority must stay between 0.0 and 1.0.
The lesson is not the date itself. It is that a single malformed value marks the file as broken, and errors of this kind can make engines ignore entries or the whole file. A page can be well written, crawlable and canonical, and still never be properly presented because the list it sits in failed to parse the way the engine expected. Five minutes of validation removes that entire category of doubt before you spend hours on the pages.
Limitations: what validation cannot tell you
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. It also cannot judge the pages: a clean result says the file is well-formed and consistent, nothing about whether the listed pages are indexable or worth crawling. And it cannot promise an outcome. Even with a perfect file and good pages, inclusion is the search engine's decision, not a setting you control.
For the wider set of checks around a sitemap audit, see the sibling guide on auditing a client's sitemap during an SEO review, and the rest of the SEO Tools guides.
Common mistakes
- Assuming listed means indexed. The sitemap is a discovery hint. It names pages; it does not admit them to the index.
- Debugging pages before the file. An error in the file can hide every page in it. Validate first; it takes minutes.
- Pasting a local copy instead of the published file. You then validate a file search engines never saw. Always paste the live file's contents.
- Ignoring warnings. Duplicates and out-of-range priorities are tolerated, until they are the reason an entry is misread. Fix them while you are there.
- Validating the index but not the children. An index file only points at child sitemaps. Each child needs its own clean pass.
FAQs
My sitemap passes validation but my 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.
Can an error in the sitemap stop pages being picked up at all?
Yes. 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.
Does a valid sitemap guarantee that my pages will be indexed? No. A clean validation means the file is well-formed and consistent; it cannot tell you whether the listed pages themselves are indexable or worth crawling.
What should I check after the sitemap file itself? Check that the pages are crawlable under your robots rules, that each one is the canonical version, and that the page quality is high enough to be worth including.
Does the validator check the sitemap live on my server? No. The validator checks the text you paste, not the file live on your server. Paste the contents of the published file so you are checking the copy search engines actually receive.
Conclusion
Discovered and indexed are two different states, and the sitemap only owns the first one. Keep the file clean with the Sitemap Validator so discovery never fails on a technicality, then spend your real effort where indexing is actually decided: crawlable, canonical pages that are worth including.