Home/SEO/Sitemap Index Generator

Sitemap Index Generator

Build a valid sitemap index — or paste a URL list and have it split into spec-compliant 50,000-URL sitemaps with the index generated for you.

Free Browser-based No signup Copy-ready
Generator Settings
List the sitemaps you already generate — this builds the index that ties them together.
One per line. Paths are resolved against the site URL; full URLs are kept as-is.
Only claim a lastmod you can keep accurate. Google ignores dates it finds unreliable.
Options
Generated Files ready
sitemap.xml

      

How it works

1

Add sitemaps or URLs

List the child sitemaps you already produce, or paste a raw URL list to be chunked.

2

Check the limits

File size, URL counts and cross-host issues are validated against the sitemaps.org spec.

3

Publish and submit

Upload the files, add the robots.txt line, then submit the index in Search Console.

When you need an index — and how to structure it

A single sitemap tops out at 50,000 URLs or 50 MB uncompressed, whichever comes first. Past that you need a <sitemapindex>: one file listing your sitemaps, which you submit instead of submitting each child individually.

Split by content type, not alphabetically

Separate sitemaps for products, blog posts, category pages and images turn Search Console's coverage report into a diagnostic tool. When indexing drops, you can see which content type broke — impossible if everything is in sitemap-1.xml through sitemap-9.xml.

Keep lastmod honest

It is the one optional field Google still uses. Set it to when the content genuinely changed. Sites that stamp every URL with today's date on every build teach Google to ignore the field entirely.

Rules worth memorising

  • Every URL must be absolute and on the same host as the sitemap, unless both hosts are verified.
  • A URL should appear in exactly one sitemap.
  • Ampersands must be escaped as &amp; — unescaped ones make the XML invalid.
  • Only include canonical, indexable, 200-status URLs. Redirects, 404s and noindex pages waste crawl budget and depress your indexed ratio.
  • Indexes may nest one level deep, but not further.
  • Submit the index only — never the children as well, or the reports double-count.
A sitemap is a discovery aid, not an indexing guarantee. It helps crawlers find URLs they might otherwise miss — deep pages, new content, weakly linked sections — but it does not make thin or duplicate pages rank.

Frequently Asked Questions

View all FAQs
How many URLs can one sitemap contain?
A single sitemap can contain up to 50,000 URLs and must remain within the 50 MB uncompressed size limit.
What does a sitemap index contain?
It contains links to child sitemap files, not the complete list of page URLs.
Can I submit one sitemap index instead of every child file?
Yes. A sitemap index is designed to let search engines discover multiple sitemap files from one top-level file.
Should sitemap URLs be canonical?
Generally yes. Include the preferred URLs you want indexed rather than duplicate or tracking variants.
Should I use lastmod?
Use it when you can keep it accurate. Do not publish artificial dates just to make pages appear fresh.
Does a sitemap improve rankings?
A sitemap improves URL discovery and crawl organization, but inclusion in a sitemap does not guarantee indexing or rankings.
Can this tool split a large URL list?
Yes. Paste the URL list, choose a split size and filename pattern, then generate the sitemap index and child files.

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:

  1. Split the page URLs into valid child sitemaps.
  2. List those sitemap files in the sitemap index.
  3. 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:

&amp;

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 .gz files 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.

Related searches

sitemap index generatorxml sitemap 50000 limitsplit large sitemapsitemapindex xmlsitemap lastmodgzip sitemapmultiple sitemapssitemap index vs sitemapsitemap deduplicate urlsrobots.txt sitemap linesitemap xml escapinglarge site sitemap generator