Skip to main content
Sitemap indexes for large sites: find errors by segment
Technical SEO

Sitemap indexes for large sites: find errors by segment

A sitemap index helps submit multiple child sitemaps. Its real diagnostic value depends on whether an error points to a recognizable group of pages. Learn to plan segments and inspect the index, child files and URLs separately.

Matthias RamahiMatthias Ramahi
9 min readNovember 24, 2026Legacy score: 95/100

A sitemap index is a list of sitemap files. It is useful when one sitemap grows too large or when you want to submit many separate files to Google together. It does not make the URLs inside them crawlable or indexable by itself. An XML sitemap complements internal links, but does not replace them. Its most practical benefit may be that it helps you narrow a failure to a manageable group of pages.

Imagine a site with 120,000 product and guide URLs that should be eligible for Search. Instead of generating one file for every URL, the team could create three child sitemaps with 40,000 entries each. An index points to those three files. The content still needs checking. The useful part of the split is that it lets the team tell a faulty product, language or site-area file apart from the others.

This guide covers sitemap index limits and diagnosis. It does not explain how to calculate a trustworthy lastmod value for every URL. Check page modification dates separately from the index file.

When a sitemap index helps

Google's documentation for building a sitemap limits an individual sitemap to 50 MB of uncompressed data or 50,000 URLs. Whichever limit is reached first applies. A compressed file may look small to download and still exceed the limit after decompression.

When either limit is reached, the large sitemap has to be split into several valid files. You can use a sitemap index to submit the child files together. You can also submit the child sitemaps separately. An index is an organizational aid, not an extra signal Google requires.

For a small site with a few thousand URLs, an index is not needed for SEO alone. One sitemap is often easier to generate and check. An index makes more sense when multiple files are necessary anyway or when you want to monitor content groups separately.

Three limits that are easy to confuse

The figures apply to different layers:

LayerLimitWhat is counted
Individual sitemap50 MB uncompressed or 50,000 URLsPage URLs in one sitemap file
Sitemap indexAt most 50 MB uncompressed or 50,000 loc entriesSitemap files listed by the index; whichever limit is reached first applies
Search Console account and siteUp to 500 sitemap index filesIndex files submitted for a site in the account

Google's sitemap build guide limits an individual sitemap to 50 MB uncompressed or 50,000 URL entries. The sitemap index guide separately sets a limit of 50,000 loc entries and says sitemap requirements also apply to index files. So check both the number of child files and the index's own uncompressed size. The 500-index limit refers to index files submitted in Search Console for a site, not the total number of URLs across your website.

For example, three child sitemaps with 40,000 URLs each are within the individual file limit. An index with three loc entries is well below the index limit. None of those facts tells you that Google has crawled or indexed the URLs. The indexing status is a separate question. A sitemap entry is a URL hint, not a crawl command.

Choose segments that help with diagnosis

An index can group files by page type, language, directory or stable ranges of URLs. Choose a split that matches your publishing system and gives the team a useful next question when something goes wrong.

A shop might use a structure like this:

text/sitemaps/sitemap-index.xml
/sitemaps/products-000.xml
/sitemaps/products-001.xml
/sitemaps/categories.xml
/sitemaps/guides.xml

The numbered product files need a documented, stable rule. That might be an ID range or a split by product group. If URLs are randomly reassigned to files on every build, comparing the current export with the previous one becomes difficult. If you need to investigate language sections separately, give them a recognizable mapping too.

Avoid segments whose names promise more than their contents explain. sitemap-3.xml is less useful than products-000.xml when the issue affects product pages. One file per URL is not useful either. Tiny segments create more files and submissions without automatically increasing crawling or solving a crawl budget issue.

The split does not have to follow URL type. A large documentation area could be divided into stable ID ranges. The important parts are a repeatable rule, a verifiable list of URLs and a clear owner for the generator.

Check the index and directory scope

A sitemap index and the sitemaps it lists generally have to be on the same site. The referenced files must also be in the same directory as the index or lower in the directory hierarchy. If the index lives at /public/sitemap-index.xml, it can list files under /public/ or /public/shared/. A file outside that scope is not automatically allowed. Google documents an exception for correctly configured cross-site submission.

For many teams, an index in the site root is straightforward to maintain:

xml<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemaps/products-000.xml</loc>
    <lastmod>2026-10-20</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemaps/products-001.xml</loc>
    <lastmod>2026-10-20</lastmod>
  </sitemap>
</sitemapindex>

lastmod in the index describes a change to the child sitemap. A lastmod element inside a child sitemap describes the page listed there. Both are optional. Use each only when it reflects the relevant change. The Sitemaps protocol defines the XML format and permitted elements.

Check the index, child sitemap and URL separately

A common diagnostic mistake is to open only the index file. It may be available even when one of its child sitemaps returns an error. Check each layer in order:

  1. Fetch the index file. Request the exact URL submitted in Search Console or named in robots.txt. Check that it is available and contains valid XML with the sitemap namespace.
  2. Check every child file. Open the loc URLs from the index. Check retrieval, uncompressed size, URL count and XML format.
  3. Inspect sample URLs. The loc values should be complete, absolute URLs. Compare a sample with its current canonical URL and intended HTTP destination. A sitemap should not contain URL variants you do not want in Search results.
  4. Compare segments. Check whether a child file changed unexpectedly since the last build. An empty segment can indicate an export failure or stale routing.
  5. Read Search Console in context. Review the status and details of the index or child files you submitted. Use URL Inspection when you need to investigate an individual page.

A technical site audit workflow can connect these checks with other crawling and indexing questions. It does not replace fetching the actual XML files.

Read Search Console statuses accurately

The Sitemaps report in Search Console shows the latest fetch and processing status for sitemaps submitted through the report or the API. It can label a file as a sitemap index and, for an index, total the discovered pages from its child sitemaps. Duplicate URLs are counted once. Google's report documentation describes its details.

A status with errors does not always mean that no URL was processed. Google may partially read a file and queue the URLs it was able to parse for crawling. In the other direction, a high number of discovered URLs does not mean that those pages have already been crawled or indexed. The counts answer different questions.

The report also does not show every sitemap Google may have found through other routes. It includes submitted sitemaps for the current Search Console property. If an index is missing, check the property, hostname, protocol and exact submitted URL. This matters when www and non-www properties are separate.

If individual pages are missing, start with a sample. Check whether each URL appears in the expected child file and whether Google read that file. Then investigate the URL itself. The guide to crawled but not indexed pages covers the next step when Google already knows a URL but it still does not appear in Search.

Common mistakes with large sitemap structures

  • Checking only the compressed size. Google's 50 MB limit is uncompressed.
  • Mixing up the limits. 50,000 entries in an index are sitemap files, not page URLs.
  • Using paths outside the index scope. A file can be reachable and still be outside the directory that the index is allowed to cover.
  • Testing only the index on each build. Valid XML can point to a missing or broken child file.
  • Submitting every URL known to the CMS. A sitemap should contain URLs you want eligible for Search. Drafts, filter variations and non-canonical addresses do not belong by default.
  • Reporting discovered URLs as indexed pages. Search Console distinguishes parsing, crawling and indexing. A sitemap cannot force any of those later decisions.
  • Creating more files without a reason. Each extra shard needs a clear purpose and an owner.

A small release process

Decide who generates the index and child files, how each segment is named, and which checks run before submission. Keep a build timestamp separate from page modification dates. Record the URL count and uncompressed byte size for each file. Comparing those values with the previous build can surface unexpected changes, but it is a monitoring clue rather than proof of a search problem.

After changing the generator, do more than check that /sitemap-index.xml returns status 200. Download it, parse the child URLs and inspect at least one file per segment. For important sections, you can also submit child sitemaps individually in Search Console if you want their processing statuses separately. Google allows multiple sitemap submissions and notes that this can help when tracking individual files.

If a discrepancy appears after a release, compare the actual files. A server status alone does not tell you whether the sitemap contents still match the site. A broader SEO audit can compare sample URLs with internal links, HTTP status codes and canonical destinations.

Questions that come up when setting this up

Does every large site need a sitemap index?

No. An index is useful when you have multiple child sitemaps and want to manage them together. Below the sitemap limits, one file may be simpler. Neither option guarantees that Google will crawl or index the listed pages.

Can I submit child sitemaps directly and still use an index?

Yes. Google allows multiple sitemaps and sitemap indexes to be submitted. Separate submissions can be useful when you want to track a particular child file's status independently. Keep the structure maintainable.

Does “Success” in the report mean that every page is indexed?

No. “Success” means Google fetched and processed the submitted sitemap without processing errors. The report distinguishes that from later crawling and indexing of individual pages.

A useful sitemap index answers two questions: which files belong to this site, and which segment should I inspect if one of them fails? If the structure cannot answer those questions, improve the segmentation and checks first. Adding files by itself will not solve the problem.

Sources

Build a keyword database you own

Import and organize keywords, audit technical issues with evidence, and export everything at any time.

Start Free
Matthias Ramahi

Matthias Ramahi

Founder, Crawl Foundry

SEOKeyword ResearchTechnical SEO

Matthias Ramahi is the founder of Crawl Foundry and leads the product, its data sources, and its editorial standards. Crawl Foundry is his central software and SEO project.

Prefer Crawl Foundry on Google

Add crawlfoundry.com as a preferred source in your Google account and our articles will appear higher up on Google. Optional, and you can undo it at any time.

Set as preferred source

You Might Also Like

Search this website

Find product information, FAQ and documentation with links to the original pages.