← All posts
Guide

What is a sitemap.xml, and does your site actually need one?

A sitemap.xml lists a site's pages for search engines. Here is what it actually does, when Google says a site needs one, the size limits almost nobody hits, and what makes a sitemap unreliable even once it exists.

Findability · Sitemap · Technical SEO
The short answer

A sitemap.xml lists a site's pages, and sometimes its images, videos or news articles, so search engines can find and understand them faster. Google says a site with roughly 500 pages or fewer, fully linked internally, may not need one. A single sitemap file is capped at 50,000 URLs or 50MB uncompressed, whichever limit comes first.

Key takeaways
  • A single sitemap file is capped at 50,000 URLs or 50MB uncompressed, whichever limit comes first.
  • A sitemap index file can reference up to 50,000 child sitemaps, and Search Console accepts up to 500 sitemap index files per site.
  • Google says a site with roughly 500 pages or fewer, fully linked internally, may not need a sitemap at all.
  • A robots.txt file can carry any number of "Sitemap:" lines; Google states there is no limit to how many a site can declare.
  • Having a sitemap never guarantees indexing: Google's own documentation says it "doesn't guarantee that all the items in your sitemap will be crawled and indexed."
  • Auditaar reads a site's sitemap directly on every audit, checking staleness, duplicate URLs, low-value URL patterns and index structure, not just whether the file exists.
Contents
  1. What is a sitemap.xml, and what does it do?
  2. Does your website need one at all?
  3. The size limits almost nobody hits
  4. Having a sitemap is not the same as being indexed
  5. How to check your own sitemap right now
  6. Sources

What is a sitemap.xml, and what does it do?

A sitemap.xml is a file at the root of a website that lists its pages, and can carry extra detail about video, image or news content on them. A search engine reads it to find and understand those pages faster than it might by following links alone, and a site built on a common CMS often already has one without anyone adding it by hand.

Fig. 1A sitemap, and the index file that groups several of themA plain sitemap lists URLs directly. Once a site outgrows one file's limits, a sitemap index points to several child sitemaps instead.
sitemap.xml
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-11-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
    <lastmod>2026-10-14</lastmod>
  </url>
</urlset>
sitemap_index.xml
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-posts.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-products.xml</loc>
  </sitemap>
</sitemapindex>

A plain sitemap lists URLs directly. Once a site outgrows one file's limits, a sitemap index points to several child sitemaps instead.

Does your website need one at all?

Google's own guidance ties the answer to a handful of signals, not to a blanket rule. A sitemap helps most on a site that is hard to fully link, new, or rich in media, and it matters least on a small site that is already well linked.

Table 1When Google says a sitemap helps, and when it may not matter
If this describes your siteWhat Google's documentation says
Large site, hard to guarantee every page is linked from somewhereMore likely Googlebot misses new pages without a sitemap
New site with few external links pointing to itCrawlers mostly discover pages via links from already-crawled pages, so a sitemap matters more when little else points to you
Heavy on video or image content, or shown in Google NewsA sitemap can carry extra detail, such as a video's length or an article's date, that Search can use
About 500 pages or fewer, and fully linked from the homepageGoogle's documentation says the site may not need a sitemap at all

Source: Google Search Central, Learn about sitemaps

The size limits almost nobody hits

A sitemap has hard ceilings, documented by Google rather than left to guesswork. Most sites never come close to them, but a growing site eventually does, and the fix is a sitemap index file, not a bigger single file.

Table 2Sitemap size and submission limits
LimitValue
URLs in one sitemap file50,000
Size of one sitemap file, uncompressed50MB
<loc> tags in one sitemap index file50,000
Sitemap index files you can submit per site in Search Console500
"Sitemap:" lines allowed in robots.txtNo limit

Source: Google Search Central, Build and submit a sitemap; Manage sitemaps with a sitemap index file

Mistakes Google's documentation calls out directly

  • Don't put anything other than URLs in the sitemap file.
  • List the canonical URL when the same content sits at more than one address, not every duplicate that leads to it.
  • Use fully-qualified, absolute URLs. Google attempts to crawl a sitemap's URLs exactly as listed, so a relative path will not resolve.
  • A sitemap not submitted through Search Console only affects URLs under its own folder; posting it at the site root, which Google recommends, covers the whole site instead.

Having a sitemap is not the same as being indexed

A sitemap is a hint, not a command. Google's own documentation states plainly that a sitemap "helps search engines discover URLs on your site, but it doesn't guarantee that all the items in your sitemap will be crawled and indexed." The file only does its job if what it lists is accurate.

Fig. 2What a stale or cluttered sitemap looks like in an auditA sitemap that still answers, but has stopped accurately describing the site.
Warning

Sitemap lists URLs no visitor can reach anymore

ObservationA sample of entries read from the sitemap carry a lastmod date over two years old, and a share of the <loc> lines match tag, category and search-filter URL patterns rather than real pages.
ImpactA sitemap crowded with stale or low-value URLs dilutes the one signal it exists to send: which pages the site actually wants indexed.
FixRegenerate the sitemap from the site's real content, drop utility and filter URLs, and keep lastmod accurate so it reflects a genuine edit.
ReceiptRead directly from the XML sitemap: duplicate <loc> entries, the lastmod distribution, and URL pattern classification.

How to check your own sitemap right now

  1. Open yoursite.com/sitemap.xml directly and confirm it loads and lists real URLs, not a 404 or an empty stub.
  2. Open yoursite.com/robots.txt and look for a "Sitemap:" line pointing at it.
  3. If the file is a sitemap index, open a couple of the child sitemaps it references and confirm they resolve too.
  4. Submit the sitemap, or the sitemap index, in Search Console's Sitemaps report so you can see Google's own read of it.
  5. Re-check it after changes: Auditaar reads sitemap staleness, duplicate URLs and low-value URL patterns on every audit, not just whether the file exists.

Run a free AI visibility check to see how Auditaar reads your own sitemap's staleness, duplicates and structure, or read how to read a website audit for how that fits into the six pillars.

Sources

  1. Google Search Central: Learn about sitemaps
  2. Google Search Central: Build and submit a sitemap
  3. Google Search Central: Manage sitemaps with a sitemap index file

See it on your own site

Auditaar turns a single URL into a scored, sourced, ordered plan across all six pillars, AI Visibility included.

Free AI visibility check. No sign-up required.

Related reading

FindabilityInternational SEOhreflang

What is hreflang, and how does it hide a page from its own audience?

Hreflang tells search engines which language or country version of a page to show a visitor, and it fails silently: a tag that looks correct can still go unread. Here is how the pairing actually works, the five mistakes that break it, and how Auditaar checks it.

October 26, 2026 · 5 min read
Technical SEOMistakes

Top 10 technical SEO mistakes that can quietly cost traffic

The technical SEO problems that matter most are often the ones nobody notices, such as pages left out of the index, canonicals that point the wrong way, and trackers that fire before consent is given. Here are ten of them to check, along with how to catch each one.

August 23, 2026 · 5 min read
SchemaFindability

Schema markup in 2026: the structured data that helps a page qualify for rich results and be read more clearly by AI engines

Structured data is a way of describing what your content means, written in a format that search engines and answer engines can understand. This section covers the schema types that are linked with being eligible for rich results and with being read more clearly by AI engines, and it also covers the ones you can skip.

August 13, 2026 · 3 min read
JavaScript SEOFindability

JavaScript SEO: what crawlers and AI engines can read on your pages

If your content only appears after JavaScript runs, then some crawlers and AI engines may read an empty shell instead. This section covers how to check what each system sees, why it matters, and how to fix it.

August 11, 2026 · 3 min read