Skip to content

Sitemap Index Generator

Build the sitemap index file that points at all your sitemaps.

Absolute URLs on the same host. Add a date after a pipe to give one sitemap its own lastmod.

Applied to any line without its own date. Leave blank to omit it.

Used for the robots.txt line and to check the sitemaps share its host.

Sitemap index

Your generated code appears here.

Quick Tool Overview

The Sitemap Index Generator turns a list of sitemap URLs into a valid sitemapindex file, with optional lastmod dates and the robots.txt line that declares it. It exists because splitting sitemaps by content type is what makes Search Console's coverage report per-sitemap — and that is what turns a vague indexing problem into a specific one.

What it does
Builds a sitemap index file from a list of sitemaps
You give it
One sitemap URL per line, with optional lastmod dates
You get back
A valid sitemapindex XML file and the robots.txt line for it
Best for
Sites past 50,000 URLs, and any site worth splitting by content type
SEO Tools Free, unlimited use No sign-up Runs in your browser

About the Sitemap Index Generator

List your sitemap URLs, one per line, and the generator writes the sitemap index file that points at them. Each entry can carry its own lastmod, and the robots.txt line that declares the index is produced alongside it.

A sitemap index is what you need once a single sitemap will not do, and the threshold arrives sooner than most people expect: 50,000 URLs or 50MB uncompressed, whichever comes first. It is also worth splitting well before that, by content type — products, categories, blog posts, static pages each in their own sitemap — because Search Console reports indexing coverage per sitemap. Split that way, "42 of 8,000 product URLs are not indexed" is a sentence you can act on. In one giant sitemap, the same fact is invisible.

Key features of the Sitemap Index Generator

Valid structure guaranteed

The correct namespace and element nesting, which is where hand-written index files usually fail.

Per-sitemap lastmod

Set one date for all of them or a different date per line, written in the W3C format.

Host consistency check

Sitemaps on a different host than the index are flagged, since that combination is invalid.

Nesting caught

An index listing another index is invalid, and the tool says so rather than generating it.

robots.txt line included

The Sitemap directive to add is generated alongside the file itself.

How to use the Sitemap Index Generator

  1. 1

    List your sitemap URLs

    One per line, absolute, on the same host — "https://example.com/sitemap-products.xml".

  2. 2

    Add lastmod dates

    Optional, written after a pipe. Or set one date for all of them at once.

  3. 3

    Copy the index file

    Save it as sitemap.xml at your domain root, or wherever your sitemaps live.

  4. 4

    Declare it

    Add the Sitemap line to robots.txt and submit the index in Search Console.

Frequently asked questions

Once you pass 50,000 URLs or 50MB in one sitemap, you must. Well before that, you should: splitting by content type makes Search Console's coverage report per-sitemap, and that is what turns "some pages are not indexed" into a specific, actionable number.

Reviews of the Sitemap Index Generator

What people who use the Sitemap Index Generator think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Sitemap Index Generator. It takes half a minute and no account.

Write the first review

More SEO tools