Sitemap index files for large websites

A single sitemap can hold 50,000 URLs. Large websites, online shops and sites that publish every day often need more than that, or simply want to organize their URLs better. The answer is a sitemap index: one file that lists your other sitemaps.

WorldmapPDFFree world maps in PDF, PNG and JPG
Diagram of a sitemap index pointing to three sitemaps
An index file pointing to three sitemaps, each with its own URLs

When do you need a sitemap index?

The protocol sets two limits for each sitemap file: 50,000 URLs and 50 MB uncompressed. As soon as your site goes over either one, you must split the list into several files. An index is then the cleanest way to tell search engines about all of them at once.

Many sites use an index well before reaching the limits, because separate sitemaps make reports easier to read. If your products, your blog posts and your category pages each have their own file, Search Console shows indexing figures for each group. A problem with one type of page stands out immediately.

The format of an index file

An index file looks like a sitemap, with different tag names:

Example of a sitemap_index.xml file
A sitemap index that points to two sitemaps
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-pages.xml</loc>
    <lastmod>2026-11-12</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-products.xml</loc>
  </sitemap>
</sitemapindex>

The rules to respect

Good ways to split your URLs

Split byExample filesBest for
Content typesitemap-pages.xml, sitemap-posts.xml, sitemap-products.xmlMost sites: clear reports per type
Datesitemap-2025.xml, sitemap-2026.xmlNews sites and blogs with a long archive
Language or sectionsitemap-en.xml, sitemap-es.xmlMultilingual sites in subfolders
Fixed blockssitemap-1.xml, sitemap-2.xmlVery large catalogs generated automatically

Splitting by date has a hidden advantage: the files for past years almost never change, so search engines can skip them and focus on the file that holds your recent content.

Submitting an index

Submit the index the same way you would submit a sitemap: one Sitemap: line in robots.txt and one entry in Google Search Console. Search Console then lists every child sitemap under the index, with its own status and URL count. There is no need to submit each child file separately.

And for smaller sites?

If your site has a few hundred or a few thousand pages, a single sitemap is perfectly fine and simpler to maintain. sitemapauto.com crawls up to 5,000 pages and delivers them in one valid sitemap.xml file, which covers the vast majority of small and medium websites.

Frequently asked questions

How many URLs can a sitemap contain?

Up to 50,000 URLs, and the file must not exceed 50 MB uncompressed.

Can a sitemap index contain another sitemap index?

No. An index can only point to regular sitemap files.

Do I need to submit each child sitemap separately?

No. Submit the index and search engines will read every sitemap listed in it.

Is it bad to have many small sitemaps?

No. Splitting by content type is common and makes indexing reports easier to read.

Sitemap guides

What is an XML sitemap?The format, the tags and a complete example you can copy. Submit a sitemap to Google and BingStep by step in Search Console and Bing Webmaster Tools. Declare your sitemap in robots.txtOne line that lets every search engine find your file. Sitemap best practicesWhat to include, what to leave out, and common mistakes. Sitemap FAQShort answers to the questions webmasters ask most. How sitemapauto.com worksWhat happens between your URL and your sitemap.xml file.

Another free tool we built

Validate your whole site, not one page at a time

W3cvalidator.com crawls your website and checks your pages against W3C standards automatically, up to 1,500 pages in a single run. Far faster than validating each page by hand, and a good way to catch the markup errors that hurt accessibility.

Validate my website on W3cvalidator.com