Build your AI Agent and let it work for your business 24/7 →

Sitemap Index Generator

Combine several sitemaps into one sitemap index file. Check that each sitemap loads, count its URLs, use its newest lastmod, then download sitemap_index.xml and the robots.txt line.

  • 100% free
  • No sign-up
  • Runs in your browser

One URL per line. You can also paste an existing sitemap index to rebuild it.

Used for the robots.txt line and the host check.

Add your sitemap URLs and build the index to see the result here.

How sitemap index files work

A sitemap index uses a <sitemapindex> root element with one <sitemap> entry per file. Each entry has a <loc> with the sitemap's full URL and an optional <lastmod> with the time that sitemap last changed.

Rules to follow

  • An index can list up to 50,000 sitemaps and be up to 50 MB uncompressed.
  • It can only list sitemap files, not pages and not other sitemap indexes.
  • Sitemaps should be on the same host as the index unless you've verified both sites.
  • Child sitemaps can be gzipped (.xml.gz); the index just links to them.

After you download it

Upload the file to your site root, add the Sitemap: line to robots.txt, and submit the index in Google Search Console and Bing Webmaster Tools. When you add a new sitemap later, add it to the index and update its lastmod.

How it works

How to use it

  1. Step 1

    List your sitemaps

    Paste sitemap URLs one per line, paste an existing index, or upload a .txt, .xml or .xml.gz file.

  2. Step 2

    Check them

    Optionally load each sitemap to confirm it works, count its URLs and use its newest lastmod as the index date.

  3. Step 3

    Download the index

    Copy or download sitemap_index.xml, upload it to your site root and add the Sitemap line to robots.txt.

FAQs

Frequently asked questions

Answers to common questions about the Sitemap Index Generator.

A sitemap index is an XML file that lists other sitemap files instead of pages. Large sites use one because a single sitemap can only hold 50,000 URLs or 50 MB. You submit the index to search engines once, and they find every sitemap inside it.

It loads each sitemap, four at a time, and confirms it returns a 200 status and is a valid urlset. It counts the URLs inside and finds the newest lastmod, which can be used as the lastmod for that sitemap in the index. Up to 500 sitemaps are checked per run.

The lastmod of a sitemap entry should be the time that sitemap file last changed. Using the newest lastmod found inside the sitemap is a good approximation. Avoid setting every entry to today unless every sitemap really did change today, because inaccurate dates teach search engines to ignore them.

No. The protocol doesn't allow nested indexes. The checker flags any entry that turns out to be an index, and you should list its child sitemaps directly instead.

By default, a sitemap index should only list sitemaps on the same host as the index. Cross-host listings only work if you've verified ownership of both sites, for example in Google Search Console. The tool warns you when hosts don't match.

Upload it to your site's root, for example https://example.com/sitemap_index.xml. Then add a Sitemap line pointing to it in robots.txt and submit it in Google Search Console and Bing Webmaster Tools.

More free tools

Try another tool

More visitors means more DMs

Hypello's AI agents reply to every Instagram comment and DM, send links and offers, and collect contact details for you. The free plan covers 1,000 DMs a month.