Sitemap Index Files: Limits, Format and Examples

A sitemap index lists up to 50,000 sitemaps. Format, location rules, limits and how to split large sites, per Google’s documentation.
Updated November 5, 2026
Sitemap Index Files: Limits, Format and Examples

In this article

Once a site passes 50,000 URLs, one sitemap isn’t enough. Large stores, news sites and directories end up with dozens or hundreds of sitemap files. A sitemap index file ties them together so you submit one URL instead of many. Many WordPress plugins create one by default, which is why your sitemap is often called sitemap_index.xml.

In short: a sitemap index is a file that lists other sitemaps. Google says an index can contain up to 50,000 <loc> tags, and you can submit up to 500 sitemap index files per site in Search Console. It uses the <sitemapindex>, <sitemap> and <loc> tags, with optional <lastmod>. The sitemaps it lists must be on the same site as the index, unless you’ve set up cross-site submission, and in the same directory as the index or deeper. Facts below were checked against Google Search Central on 5 November 2026. See our hub guide to XML sitemaps.

When You Need a Sitemap Index

SituationUse an index?
Over 50,000 URLs or 50MB in one sitemapYes, required
Separate sitemaps for posts, pages, products, images or videoYes, convenient
Want to track sections separately in Search ConsoleYes
Small site with one sitemapNot needed

The Limits

LimitValue
Sitemaps per index (loc tags)Up to 50,000
Index files per site in Search ConsoleUp to 500
URLs per individual sitemapUp to 50,000 or 50MB uncompressed

In theory, that’s room for billions of URLs, far beyond what almost any site needs.

Sitemap Index Format

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/post-sitemap.xml</loc>
    <lastmod>2026-11-01</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/page-sitemap.xml</loc>
  </sitemap>
</sitemapindex>

TagRequired?Purpose
<sitemapindex>YesThe root element
<sitemap>YesOne per listed sitemap
<loc>YesThe sitemap’s URL
<lastmod>OptionalWhen that sitemap last changed. Helps Google schedule crawling

Sitemaps listed in an index can be compressed, for example sitemap1.xml.gz.

Location Rules

  • Same site: listed sitemaps must be on the same site as the index, unless cross-site submission is set up.
  • Same directory or deeper: an index at /public/ can list sitemaps in /public/shared/, but not in /private/.
  • Best practice: put the index at the root so it can list sitemaps anywhere on the site.

How to Split a Large Site

Split byExampleBenefit
Content typeposts, pages, products, categoriesSee indexing by type in Search Console
Section/blog/, /shop/, /help/Spot problem sections quickly
Datesitemap-2026-11.xmlOlder files rarely change, new ones carry fresh URLs
Number rangesproducts-1.xml, products-2.xmlSimple for very large catalogs

Submitting the Index

  1. Submit the index URL in Search Console’s Sitemaps report.
  2. Add it to robots.txt: Sitemap: https://example.com/sitemap_index.xml.
  3. Check each child sitemap’s status in the report.

For the basics, see how to build and submit a sitemap.

Common Mistakes

  • Listing sitemaps on another domain without cross-site submission.
  • Listing child sitemaps in a folder above the index.
  • Nesting an index inside another index.
  • Updating lastmod on every child sitemap daily, even when nothing changed.

Key Takeaways

  • A sitemap index lists other sitemaps so you submit one file.
  • Up to 50,000 sitemaps per index, and up to 500 index files per site.
  • Listed sitemaps must be on the same site, in the same directory or deeper.
  • Split large sites by type, section or date for easier monitoring.

FAQs

What Is a Sitemap Index File?

A file that lists multiple sitemaps so they can be submitted together.

How Many Sitemaps Can an Index Contain?

Up to 50,000, according to Google.

Can a Sitemap Index List Another Index?

Keep it simple and list regular sitemaps. An index should point to sitemaps, not other indexes.

Do I Submit the Index or Each Sitemap?

Submitting the index is enough.

Can Child Sitemaps Be Compressed?

Yes. Google’s example lists a gzipped sitemap.

Why Is My WordPress Sitemap Called sitemap_index.xml?

Plugins like Yoast split sitemaps by content type and list them in an index.

Search