CRAWLING, RENDERING & INDEXING
XML sitemap: what it means and how it works
A machine-readable list of the URLs you want search engines to discover.
- Beginner level
- 3 primary sources
- Reviewed 29 October 2026
- TopicCrawling, rendering & indexingAlso in Technical SEO
- LevelBeginnerNo background needed
- Also calledsitemap
- Sources3 primary sourcesGoogle Search Central, sitemaps.org
- Reviewed29 October 2026Re-checked every 12 months
On this page
Quick definition
An XML sitemap is a file that lists the URLs a site wants search engines to know about, optionally with the date each was last modified. It helps discovery, especially for new or poorly linked pages, but it does not guarantee crawling or indexing.
Why it matters
Links remain the main way crawlers find pages, but a sitemap is a direct list of what you consider canonical and current. For large catalogues, new sites with few backlinks and pages buried deep in pagination, it shortens the time to discovery. It is also a useful audit baseline: the URLs you say matter.
How it works
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/phones/redmi-note-14/</loc>
<lastmod>2026-10-21</lastmod>
</url>
</urlset>- One sitemap file holds up to 50,000 URLs and 50 MB uncompressed; larger sites use a sitemap index that lists several sitemaps.
- Google uses
lastmodwhen it is consistently accurate, and ignorespriorityandchangefreq. - Submit sitemaps in Search Console and Bing Webmaster Tools, or reference them in robots.txt with a
Sitemap:line.
How to check it
- Confirm every listed URL returns 200, is indexable and is its own canonical. Redirects, 404s and noindexed URLs in a sitemap send mixed signals.
- Check that
lastmodchanges only when the content changes, not on every page load. - Compare sitemap URLs with the pages a crawl finds through links: pages only in the sitemap may be orphans.
- Read the Sitemaps report in Search Console for fetch errors and the number of discovered URLs.
Common mistakes and misconceptions
Myth Submitting a sitemap gets pages indexed.
In fact A sitemap helps discovery. Indexing is still a separate decision.
Myth Priority and changefreq tell Google what to crawl first.
In fact Google ignores both values.
Check it on your site
Free tools, no sign-up
- FreeXML Sitemap ValidatorValidate a sitemap or sitemap index against the sitemaps.org protocol: namespace, escaping, URLs, dates, sizes and structure.Open the tool
- FreeSitemap FinderFind a site’s XML sitemaps from robots.txt and the usual locations, and check each one’s type, size, hosts and dates.Open the tool
- FreeXML Sitemap GeneratorTurn a list of URLs, or a CSV with dates, into a valid XML sitemap, split with an index above 50,000 URLs.Open the tool
- FreeSitemap vs Crawl ComparisonCompare a site’s XML sitemaps with a crawl: sitemap URLs that redirect, fail or are noindex, and crawled pages missing from the sitemap.Open the tool
- FreeSitemap Freshness AnalyzerSee how old the lastmod dates in a sitemap are, by section, and whether they look like real change dates.Open the tool
In the NdovuSEOLabs platform
Run the same checks on every page of your site, with your own data.
Keep learning
Sources and review
- Learn about sitemaps Google Search Central
- Build and submit a sitemap Google Search Central
- Sitemaps XML format sitemaps.org
Written and maintained by Ndovu SEO Labs. First published 29 October 2026. Facts last checked against the sources above on 29 October 2026. How we write and review the glossary.