Sitemap Index Generator – Split and Organize Large XML Sitemaps
Use the Sitemap Index Generator above to combine existing sitemap files into one index or split a large URL list into multiple XML sitemaps automatically. Add your site URL, choose the URLs per sitemap, control filenames and lastmod handling, then download the index and child files.
A sitemap index acts as a directory of sitemap files. It gives search engines one location to discover multiple child sitemaps, which is especially useful for large websites, ecommerce stores, publishers and programmatic SEO sites.
What Is a Sitemap Index?
A sitemap index is an XML file that lists other sitemap files.
A basic structure contains one <sitemap> entry for each child sitemap.
Each entry includes a <loc> value pointing to the sitemap URL and can optionally include an accurate <lastmod> date.
The index itself does not normally contain your page URLs.
Instead, it points to child sitemaps that contain those URLs.
Example structure:
sitemap.xml → sitemap-pages.xml → sitemap-posts.xml → sitemap-products.xml → sitemap-images.xml
This makes large collections easier to organize and submit.
When Do You Need a Sitemap Index?
A sitemap index is useful when your website has too many URLs for one sitemap or when separating content types makes management easier.
A single sitemap is limited to:
- 50,000 URLs
- 50 MB uncompressed
If you exceed either limit, split the sitemap.
You can also split earlier for operational reasons.
For example, an ecommerce site might separate products, categories, blog posts, brands and help articles. This can make debugging and Search Console analysis easier even below the technical maximum.
How to Use This Sitemap Index Generator
Choose one of two modes.
Use I have sitemap files when your site already generates separate sitemap files and you need an index tying them together.
Enter the site URL and list each child sitemap.
Use Split a URL list for me when you want a large page-URL list divided into valid child sitemaps.
Choose the number of URLs per file and a filename prefix.
You can also de-duplicate URLs, normalize and escape them, add relevant metadata and generate a Sitemap line for robots.txt.
Download the index and child files.
Sitemap Index vs XML Sitemap
An XML sitemap lists page or resource URLs.
A sitemap index lists sitemap files.
That distinction is important.
If you have 80,000 page URLs, you should not try to place all 80,000 directly inside one sitemap index.
Instead:
- Split the page URLs into valid child sitemaps.
- List those sitemap files in the sitemap index.
- Submit or expose the index.
The index is the top-level directory, not a substitute for the child sitemap content.
50,000 URL and 50 MB Limits
Each individual sitemap has a maximum of 50,000 URLs or 50 MB uncompressed, whichever limit is reached first.
Large sites should leave some operational headroom instead of always sitting at the maximum.
For example, using 40,000 or 45,000 URLs per sitemap can make future additions easier.
This generator lets you choose the split size rather than forcing every child file to the maximum.
Remember that compressed .gz files are measured against the uncompressed sitemap-size rule.
How Should You Split a Large Sitemap?
There is no SEO requirement that every sitemap contain the same number of URLs.
Split in a way that helps maintenance.
Useful strategies include splitting by content type, site section, numbered batch or update pattern. An ecommerce site might separate products, categories and blog posts, while a programmatic site may prefer predictable numbered batches. Choose the structure that makes generation and debugging easiest.
What URLs Belong in a Sitemap?
Include URLs you want search engines to discover and potentially index.
Your sitemap should generally contain preferred canonical URLs.
Avoid filling it with URLs that are:
- Redirects
- 404 pages
- Noindexed
- Duplicate parameter variants
- Session URLs
- Internal search pages
- Non-canonical duplicates
- Blocked unintentionally
A sitemap should be a curated set of URLs you consider important and indexable.
Canonical URLs and Sitemaps
Sitemaps can reinforce canonicalization.
If a page declares URL A as canonical but your sitemap lists URL B, your site is providing inconsistent signals.
Whenever possible, use the same preferred URL in:
- Canonical tags
- XML sitemaps
- Internal links
- Hreflang annotations
- Redirect targets
Before splitting a raw URL export into sitemaps, clean tracking parameters and duplicate variants.
Use the Canonical Tag Generator when you need to normalize URLs first.
What Does lastmod Mean?
lastmod tells search engines when the referenced resource was last meaningfully modified.
It should reflect a real content change.
Good examples include:
- Substantial article update
- Product information change
- Important structured data change
- Significant page revision
Do not update lastmod every day simply because your sitemap is regenerated.
Search engines can learn to ignore unreliable dates.
If you cannot maintain accurate lastmod values, leaving them out is better than publishing misleading timestamps.
lastmod in a Sitemap Index
A sitemap index can include a lastmod value for each child sitemap.
That date should indicate when the sitemap file itself was meaningfully updated, such as when URLs were added or removed.
Do not automatically set every child sitemap to today on every generation if nothing changed.
Accurate dates can help crawlers prioritize work.
Inaccurate dates create noise.
The generator lets you choose how lastmod values are handled so you can match your real publishing workflow.
Should Sitemaps Be Compressed?
Large sitemap files can be served as gzip-compressed .gz files. If you use compression, the sitemap index must reference the actual published filenames. Compression reduces transfer size but does not increase the 50 MB uncompressed sitemap limit.
De-Duplicating URLs
A clean sitemap set should not repeatedly list the same URL across child files unless there is a specific format-related reason.
Duplicate entries add noise without creating extra ranking value.
When splitting a large pasted list, enable de-duplication to remove exact repeats.
Also normalize the URLs before generation.
For example, tracked and untracked forms may technically be different strings even though they resolve to the same canonical page.
A sitemap generator cannot always infer your content strategy, so review the source URL list before publishing.
XML Escaping and Valid URLs
XML reserves characters such as &.
A URL containing query parameters must be correctly escaped inside an XML document.
For example, an ampersand may need to appear as:
&
rather than a raw &.
The generator can normalize and XML-escape URLs so the final output remains well formed.
Always use complete absolute URLs including the protocol and hostname.
Do not put relative paths such as /products/widget directly into a standard sitemap URL entry.
Add the Sitemap to robots.txt
You can declare the location of a sitemap or sitemap index in robots.txt.
Example:
Sitemap: https://example.com/sitemap.xml
This helps compliant crawlers discover the file.
The line uses the full sitemap URL.
If the sitemap index already points to all child sitemaps, one robots.txt line for the index is normally enough.
You can also submit the sitemap index through search-engine webmaster tools such as Search Console. See the AI Crawler Robots.txt Generator to build the full robots.txt file.
Sitemap Submission Does Not Guarantee Indexing
A sitemap helps search engines discover URLs.
It does not guarantee that every listed URL will be crawled, indexed or ranked.
A page can still remain unindexed because of duplicate content, noindex directives, canonicalization, server errors, crawl problems or quality issues. Treat sitemaps as one part of technical SEO.
Strong internal linking and accessible site architecture remain important.
Common Sitemap Index Mistakes
Frequent problems include:
- Exceeding the URL or size limit
- Putting page URLs directly into a sitemap index
- Listing sitemap files that return 404
- Including redirecting sitemap locations
- Publishing inaccurate lastmod dates
- Listing non-canonical page URLs
- Forgetting XML escaping
- Referencing
.gzfiles that do not exist - Creating child sitemap filenames but not uploading them
- Submitting an index before checking its live URLs
Validate both the index and every child sitemap.
A valid index is not useful if half of its children cannot be fetched. If URLs have moved, use the Nginx Redirect Generator before updating the sitemap.