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
| Situation | Use an index? |
|---|---|
| Over 50,000 URLs or 50MB in one sitemap | Yes, required |
| Separate sitemaps for posts, pages, products, images or video | Yes, convenient |
| Want to track sections separately in Search Console | Yes |
| Small site with one sitemap | Not needed |
The Limits
| Limit | Value |
|---|---|
| Sitemaps per index (loc tags) | Up to 50,000 |
| Index files per site in Search Console | Up to 500 |
| URLs per individual sitemap | Up 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>
| Tag | Required? | Purpose |
|---|---|---|
| <sitemapindex> | Yes | The root element |
| <sitemap> | Yes | One per listed sitemap |
| <loc> | Yes | The sitemap’s URL |
| <lastmod> | Optional | When 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 by | Example | Benefit |
|---|---|---|
| Content type | posts, pages, products, categories | See indexing by type in Search Console |
| Section | /blog/, /shop/, /help/ | Spot problem sections quickly |
| Date | sitemap-2026-11.xml | Older files rarely change, new ones carry fresh URLs |
| Number ranges | products-1.xml, products-2.xml | Simple for very large catalogs |
Submitting the Index
- Submit the index URL in Search Console’s Sitemaps report.
- Add it to robots.txt:
Sitemap: https://example.com/sitemap_index.xml. - 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.



