What is sitemap.xml?
By SearchChamp teamUpdated
A sitemap.xml is an XML file served at example.com/sitemap.xml that lists every publicly indexable URL on a website in a structured format. It is the primary mechanism by which websites communicate their URL inventory to search engine crawlers. Defined by the Sitemap Protocol (sitemaps.org, supported by Google, Bing, Yahoo, Ask since 2006), each URL entry can include optional metadata: lastmod (last modification date), changefreq (how often it changes), and priority (relative importance, 0.0–1.0). Sitemap protocol supports a maximum of 50,000 URLs per file and 50MB uncompressed — large sites use a sitemap index file that points to multiple sub-sitemaps.
sitemap.xml in context
The Sitemap Protocol launched in 2005 (first by Google, then standardized with major search engines in 2006). Before sitemaps, search engines discovered URLs purely through crawl — following internal links from the homepage outward. Sitemaps are not instructions: Google treats them as hints, not mandates. A URL in your sitemap won't rank if the content is poor; a URL not in your sitemap can still rank if it has strong internal and external links. The practical value of sitemaps is highest for large sites with deep URL structures, orphan pages (no internal links pointing to them), and new pages not yet linked from anywhere. Video, image, and news sitemaps extend the standard with media-specific metadata. As of 2026, llms.txt is the AI-specific complement — it provides curated site summaries to AI engines where sitemaps provide URL inventories to crawl engines.
Example
A SaaS marketing site has 350 public URLs across blog posts, product pages, glossary terms, and comparison pages. Their sitemap index at /sitemap.xml points to 4 child sitemaps: /sitemap-pages.xml (35 core pages), /sitemap-blog.xml (280 blog posts), /sitemap-glossary.xml (22 glossary terms), /sitemap-compare.xml (8 comparison pages). Each entry includes a lastmod tag updated on publish or significant edit. After submitting the sitemap index in Google Search Console, Google discovers and crawls all 350 URLs within 48 hours, vs the estimated 2-3 weeks for pure crawl discovery through internal links. Six months later, the site has grown to 40,000 URLs after adding a large programmatic content section — still comfortably under any one child sitemap's 50,000-URL cap, but now needing a 5th child sitemap (/sitemap-programmatic.xml) to keep the newest, highest-volume section separately diagnosable in Search Console rather than blended into /sitemap-blog.xml, where a crawl or indexing problem specific to the new section would otherwise be invisible.
Related terms
Common questions about sitemap.xml.
Catch sitemap and indexing gaps automatically.
SearchChamp’s Site Audit verifies your sitemap, flags blocked or orphaned URLs, and checks robots.txt and canonicals across 40+ technical and AI-readiness checks. 7-day free trial.