Skip to main content

XML Sitemap

Core SEO Last reviewed: ← All glossary terms

TL;DR: What is XML Sitemap?

An XML sitemap is a machine-readable file listing the URLs a site wants crawled, with optional metadata like last-modified dates. It is a discovery aid and a statement of intent to crawlers, not a ranking lever, and it works only as well as its hygiene.

XML Sitemap explained

The sitemap protocol gives sites a direct channel to declare their crawlable inventory: URLs, organized in one file or an index of several, submitted through Search Console and referenced in robots.txt. Its job is discovery insurance, ensuring crawlers know about pages regardless of internal-link depth, and freshness signaling, where accurate lastmod dates tell crawlers what changed and earn recrawls sooner. Google has said it largely ignores the priority and changefreq fields; lastmod is the metadata that matters, and only when it is truthful.

The operative word throughout is truthful. A sitemap is a promise about what deserves crawling, and hygiene is what makes the promise credible: canonical URLs only, no redirects, no 404s, no noindexed or blocked pages, nothing the site itself considers second-class. Sitemaps stuffed with junk teach crawlers to discount the file; clean ones function as an honest map that also doubles as a monitoring surface, since Search Console reports indexation against submitted URLs, making the sitemap the denominator for coverage tracking.

What a sitemap cannot do rounds out the definition: inclusion guarantees neither crawling nor indexing, and it substitutes for nothing, not internal linking, not quality thresholds, not access. It is the site's table of contents, useful precisely in proportion to its accuracy.

In practice

Sitemap review is a two-minute audit step that keeps producing findings: files still listing deleted pages, staging URLs, redirect chains, or in one memorable case, nothing at all since a migration two years prior. My rule is that the sitemap should match the site's own opinion of itself, canonical, indexable pages only, with lastmod dates my publishing systems set honestly, because a truthful sitemap is also how I verify coverage: submitted versus indexed in Search Console is the cleanest health readout available.

Common misconception

People often expect sitemaps to boost rankings or force indexing. Actually, a sitemap aids discovery and monitoring only; inclusion promises nothing, and its real value is as an accurate, truthful map crawlers learn to trust.

Want the bigger picture? Start with the Founder’s Guide to SEO.