# Sitemap splitter and merger

Merge several sitemaps into one deduplicated list, or split a large sitemap into smaller files.

Canonical page: https://aismarty.com/tools/sitemap-split-merger

## Purpose

Merge up to five sitemaps of the same type into one deduplicated set, then split it into files of the size you choose, each downloadable on its own, with an optional index.

## How to use this tool

1. Open up to 5 sitemap files, paste one, or both. Do not mix sitemaps and sitemap indexes.
2. Choose how many entries each output file should hold, then Merge and split.
3. Download each file. Optionally create an index that lists them.

## Example inputs

- Sitemap XML (optional if you open files): <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-09-28</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.example.com/pricing</loc>
    <lastmod>2026-09-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://www.example.com/blog/</loc>
    <lastmod>2026-09-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://www.example.com/blog/opening-hours-update</loc>
    <lastmod>2026-04-02</lastmod>
    <changefreq>daily</changefreq>
  </url>
  <url>
    <loc>https://www.example.com/blog/how-to-book-online</loc>
    <lastmod>2025-11-20</lastmod>
    <changefreq>yearly</changefreq>
  </url>
  <url>
    <loc>https://www.example.com/contact</loc>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.example.com/search?q=shoes&amp;page=2</loc>
  </url>
</urlset>


## Limits and what to check

It runs in your browser and nothing is uploaded. Each file is limited to 2 MB and all files together to 6 MB. Sitemaps and sitemap indexes cannot be mixed. Duplicate URLs keep the latest valid lastmod.

## Frequently asked questions

### What happens to duplicates?

Entries with the same URL are kept once. When copies have different lastmod dates, the latest valid date is kept and the conflict is counted in the report.

### What are the limits?

Up to 5 files of 2 MB each and 6 MB together, 50,000 entries after merging and 50 output files. If a split would create more files, choose more entries per file. Larger inputs are refused, never cut short.

### Are my sitemaps uploaded to split or merge them?

No. Splitting and merging happen in your browser and nothing is sent to AI Smarty.

### Do I need an index after splitting?

Usually yes. Generate the optional index so search engines can find every split file from one address.

## Related tools

- [Sitemap URL extractor](https://aismarty.com/tools/sitemap-url-extractor)
- [Sitemap URL comparison](https://aismarty.com/tools/sitemap-urls-comparison)
- [Sitemap analyzer](https://aismarty.com/tools/sitemap-analytics)
- [All tools](https://aismarty.com/tools)
