An XML sitemap is a file listing a site's URLs in a standardized format so search engines can discover and prioritize them for crawling, with each file holding at most 50,000 URLs before its uncompressed weight passes 50MB. Google, Yahoo and Microsoft jointly agreed to support the protocol on 26 November 2006, after Google had introduced its own version the year before, and the specification still governs every sitemap submitted today. A sitemap does not guarantee indexing or improve rankings directly; it only makes a site's URLs easier for a crawler to find and schedule.
Key takeaways
- Origin: Google introduced Sitemaps 0.84 in June 2005, before Google, Yahoo and Microsoft jointly agreed to support the protocol on 26 November 2006.
- Limits: one sitemap file tops out at 50,000 URLs or 50MB uncompressed, whichever boundary a site reaches first; larger sites split URLs across multiple files listed in a sitemap index.
- Fields: Google ignores the priority and changefreq fields entirely, and only trusts lastmod when its dates are accurate.
- Canonical signal: when several similar URLs exist, Google is more likely to pick the one listed in a sitemap as the canonical version.
- Submission: a sitemap reaches Google either through Search Console's Sitemaps report or a Sitemap directive inside a site's robots.txt file.
What Is an XML Sitemap?
An XML sitemap is a file, written in XML format, that lists up to 50,000 of a site's URLs for crawlers, giving a direct index of pages instead of relying only on followed links. A sitemap sits inside a broader technical SEO review and does not replace internal links or guarantee indexing.
A sitemap works alongside a site's robots.txt file rather than in place of it, and alongside structured data rather than instead of it: robots.txt controls which URLs a crawler may request, and a sitemap adds crawlability by suggesting which allowed URLs are worth requesting first. A sitemap entry for a URL robots.txt blocks is wasted, since the crawler was never going to fetch that URL either way.
What Is the History of the XML Sitemap Protocol?
Google introduced Sitemaps 0.84 in June 2005, letting site owners publish a structured list of their own URLs for the first time. Google, Yahoo and Microsoft jointly agreed to support the protocol on 26 November 2006, handing its upkeep to the newly created sitemaps.org, released openly under a Creative Commons share-alike license, with the schema bumped to version 0.90.
Ask.com and IBM added their own support for the protocol in April 2007, and the same group of search engines agreed to let a site announce its sitemap's location through a Sitemap directive placed inside robots.txt, the auto-discovery method many sites still rely on today. No search engine involved in that original 2006 agreement has replaced the protocol since; the same XML structure from 2006 is still what every modern sitemap uses.
What Are the Size Limits for a Sitemap?
Google's own documentation sets a ceiling of 50,000 URLs or 50MB uncompressed for any one sitemap file, whichever threshold a site hits first, and a site past that point must spread its URLs across several sitemap files instead. A site can gzip the file to cut transfer size, but the 50MB ceiling is measured against the raw, uncompressed version, not the smaller file actually uploaded.
| Limit | Applies to | What happens past it |
|---|---|---|
| 50,000 URLs | A single sitemap file | Split URLs across multiple sitemap files |
| 50MB uncompressed | A single sitemap file | Same: split into multiple files |
| Sitemap index | A file listing multiple child sitemaps | One index file can reference many sitemap files, submitted as a single entry |
A site organized by website structure, such as separate sitemap files per subfolder or content type, keeps each file easier to audit than one sitemap holding every URL the site has.
What Does the lastmod Field Do?
Google ignores the priority and changefreq fields in a sitemap entirely, but uses lastmod, the date a URL last changed, to help schedule recrawls of pages it has already discovered. Google's own documentation states it stops reading a site's lastmod values once the dates misrepresent when a page actually changed, since the field only helps when it's accurate.
A common mistake stamps every URL's lastmod with the time of the latest deployment, cache refresh or sitemap export, rather than when that specific page's main content changed, which is exactly the inconsistent pattern that causes Google to stop trusting the field. Google's 2023 announcement retiring the separate sitemap ping endpoint confirmed lastmod's recrawl-scheduling role directly.
How Does a Sitemap Affect Canonical Selection?
A sitemap listing is one of the signals Google weighs when several similar or duplicate URLs exist and it must choose one as the canonical URL for that content, making the listed URL somewhat more likely to be the version Google picks. A canonical tag still carries more direct weight in that decision, since a sitemap listing is only a hint, not a directive the way a canonical tag's own signal works.
Google's own canonicalization documentation lists HTTPS preference and hreflang clustering alongside a sitemap listing as the kind of setup-based signals it weighs together, not any single one in isolation. A sitemap that lists a URL a 301 redirects elsewhere confuses this signal rather than reinforcing it, since Google has to resolve the redirect before it can treat that entry as a real canonical candidate. The same applies to an hreflang tag's alternate-language URLs: every URL named inside a hreflang set stays the live, final destination a sitemap entry points to, not one that redirects somewhere else first.
How Do You Submit a Sitemap to Google?
A sitemap reaches Google through 2 methods: submitting its URL directly in Search Console's Sitemaps report, or adding a Sitemap directive inside a site's robots.txt file for Google to discover on its own. Submitting through Search Console additionally shows when Googlebot last accessed the file and any processing errors found, information the robots.txt method alone does not surface.
The Sitemaps report only displays sitemaps actually submitted through it; a sitemap Google discovers independently through robots.txt can still be read and used without ever appearing in that report. A sitemap index file covering several child sitemaps can be submitted as a single entry either way, rather than submitting each child file on its own.
What Common XML Sitemap Mistakes Hurt Crawling?
Most sitemap mistakes list URLs Google was never going to index anyway, wasting the crawl priority a sitemap is supposed to concentrate on URLs that matter. Each mistake below points a crawler toward the wrong set of URLs instead of the ones actually worth prioritizing.
- Blocked URLs: listing a URL that robots.txt disallows wastes the entry, since the crawler was never permitted to request it.
- Non-canonical URLs: listing a URL that carries a canonical tag pointing elsewhere confuses the exact signal a sitemap is meant to reinforce.
- Redirected URLs: listing a URL that 301 redirects somewhere else forces Google to resolve the redirect before the entry means anything.
- Stale HTTPS migration: a sitemap still listing HTTP URLs after a site's website security for SEO migration to HTTPS sends crawlers to the outdated address.
- Inaccurate lastmod: stamping every URL with a deployment timestamp instead of a real content-change date is the single fastest way to lose Google's trust in the field.
- JavaScript-only discovery: relying on a sitemap to surface URLs a JavaScript SEO rendering problem otherwise hides doesn't fix the underlying rendering issue itself.
- No log file analysis follow-up: a site that never checks whether Googlebot actually requests its sitemap URLs has no way to confirm the file is working as intended.
A sitemap plays no role in Core Web Vitals or mobile SEO scores directly; it only affects which URLs a crawler finds and how it prioritizes requesting them.
| Number | What it means | Source |
|---|---|---|
| 26 Nov 2006 | Date Google, Yahoo and Microsoft jointly agreed to support the Sitemaps protocol | eWeek, via Wikipedia's Sitemaps article |
| 50,000 / 50MB | Maximum URLs or uncompressed file size per sitemap file | Google Search Central |
| 1,500 / mo | US monthly search volume for "xml sitemap", KD 84 | Ahrefs, 10 Nov 2026 |
XML Sitemap FAQ
What is an XML sitemap?
An XML sitemap is a file, written in XML format, that lists a site's URLs along with optional metadata about each one, giving a crawler a direct index of pages instead of relying only on following links.
How big can a sitemap be?
One sitemap file tops out at 50MB uncompressed or 50,000 URLs, whichever boundary a site reaches first. A site with more URLs than that splits them across multiple sitemap files, listed together in a sitemap index.
What does the lastmod field do?
Lastmod tells Google when a URL last changed, helping it schedule recrawls of pages it has already discovered. Google stops trusting a site's lastmod values once the dates misrepresent when a page actually changed.
Does a sitemap affect rankings?
Not directly. A sitemap helps Google discover and prioritize crawling a site's URLs and can influence which URL gets picked as canonical among duplicates, but it is not itself a ranking factor.
How do you submit a sitemap to Google?
A sitemap reaches Google either by submitting its URL in Search Console's Sitemaps report or by adding a Sitemap directive inside a site's robots.txt file for Google to discover on its own.
The Bottom Line
An XML sitemap concentrates a crawler's attention on the URLs worth prioritizing: the protocol has worked the same way since Google, Yahoo and Microsoft jointly agreed to support it on 26 November 2006, capped at 50,000 URLs or 50MB per file, with lastmod the one field Google actually trusts when its dates are accurate. A technical SEO checklist built without a sitemap audit misses blocked, redirected or non-canonical URLs quietly wasting that priority. Request Banana Marketing's technical SEO audit to confirm a site's sitemap lists exactly the URLs worth crawling, and nothing else, as part of a wider SEO program built on a clean crawl foundation.

