XML Sitemap

XML Sitemap is a structured file that lists the URLs on a website along with metadata about each — last modified date, change frequency, priority — used by search engines to discover and prioritize crawling.

Also known as: sitemap.xml, site map, URL sitemap

An XML Sitemap is a structured file (typically at example.com/sitemap.xml) that lists the URLs on a website along with metadata about each — last modified date, change frequency hints, priority hints, and on large sites, often broken into multiple smaller sitemap files referenced by a sitemap index. Sitemaps are submitted to search engines through Google Search Console and Bing Webmaster Tools, and they're used by crawlers as a discovery aid for important URLs.

What XML Sitemap Means

An XML sitemap is a structured file that lists URLs the site wants search engines to discover, along with per-URL metadata (last modified date, change frequency hints, priority hints). It typically lives at example.com/sitemap.xml and is referenced in robots.txt with a Sitemap: directive. Large sites usually use a sitemap index that references multiple smaller sitemap files, each covering a logical section (pages, blog posts, products, media). The XML sitemap protocol limits individual sitemap files to 50,000 URLs and 50 MB uncompressed. Most CMS platforms handle generation automatically; custom implementations need to handle chunking and updates as content changes.

How an XML Sitemap Works

An XML sitemap works as a hint, not a directive. Sitemaps tell search engines 'these are the URLs we consider important and want crawled,' but engines decide independently which URLs to actually fetch and index based on their own evaluation. Sitemaps are most useful for surfacing URLs that internal linking alone might miss — new content, deep pages with few inbound links, pages that update frequently and need recrawl prompts, and pages on large sites where crawl budget is constrained. Google has stated it largely ignores change frequency and priority values, treating them as hints at most. What matters is whether the URL is listed and the accuracy of its last-modified value.

Common Pitfalls and Misconceptions

A common mistake is treating the XML sitemap as a complete URL inventory rather than a curated list of priorities. Including every URL on the site — including thin pages, low-value parameter variants, and noindexed pages — dilutes the signal. The best practice is to include only the URLs the site genuinely wants indexed: canonical versions of important pages, with accurate last-modified dates that reflect real content changes (not just template re-publishes). Another error is letting sitemaps go stale. Static sitemaps that lag behind real content updates produce stale signals; search engines also recheck sitemap URLs periodically, so outdated sitemaps can affect crawl prioritization.

XML Sitemap in Practice

The mature practice is to generate sitemaps automatically from the CMS, validate them against the content the site actually wants indexed, and monitor Search Console's sitemap reports for errors or mismatches. Large sites typically break sitemaps into logical sections (pages, blog posts, products, media) via a sitemap index, which makes per-section issue diagnosis easier. As AI crawlers become more relevant, sitemap accuracy matters across more surfaces — many AI crawlers also consume XML sitemaps as a discovery aid, so a well-maintained sitemap benefits both classic search indexing and AI visibility, making accuracy more important now than it was when sitemaps served only traditional search.

Back to the glossary
XML Sitemap

Frequently asked questions

  • What does an XML sitemap do?

    Lists the URLs on a website along with metadata about each (last modified, change frequency, priority) so search engines can discover and prioritize crawling. Sitemaps are most useful for surfacing URLs that internal linking might miss — new content, deep pages with few links, frequently-updated pages. They're a discovery aid, not a ranking factor.

  • Where should the XML sitemap be located?

    Typically at example.com/sitemap.xml or a similar root-level path. Submit it through Google Search Console and Bing Webmaster Tools, and reference it in robots.txt with a Sitemap: directive. Large sites usually use a sitemap index referencing multiple smaller sitemap files, each covering a logical section of the site.

  • What URLs should be included in the sitemap?

    Only URLs the site genuinely wants indexed: canonical versions of important pages with accurate last-modified dates. Exclude noindexed pages, duplicates that aren't canonical, redirect URLs, parameterized variants of canonical URLs, and pages blocked in robots.txt. The sitemap should be a curated list of priorities, not a complete URL inventory.

  • Does the change frequency or priority value affect crawling?

    Less than expected. Google has stated it largely ignores both values, treating them as hints at most. What matters is whether the URL is listed and the accuracy of its last-modified value. Sitemap last-modified dates that reflect real content changes (not template re-publishes) prompt useful recrawl behavior; inflated change-frequency values do not.

  • How often should the sitemap be updated?

    Continuously, ideally generated dynamically by the CMS so every content change is reflected. Static sitemaps that lag behind real content updates produce stale signals. Search engines also recheck sitemap URLs periodically; an outdated sitemap can suggest the site is poorly maintained, which can affect crawl prioritization on the margins.

  • How big can an XML sitemap be?

    The XML sitemap protocol limits individual sitemap files to 50,000 URLs and 50 MB uncompressed. Sites with more URLs use a sitemap index referencing multiple sitemap files, each within those limits. Most CMS platforms handle this automatically; for custom implementations, the chunking strategy is part of sitemap architecture.

  • Do AI crawlers use XML sitemaps?

    Many do, yes. AI training and answer-engine crawlers from major providers often consume XML sitemaps as a discovery aid alongside their crawl behavior. A well-maintained sitemap benefits both classic search indexing and AI visibility — which makes sitemap accuracy more important now than it was when it served only traditional search engines.