Sitemap splitter and merger
Split one oversized sitemap into several, or merge several into one.
Free, no signup, and it runs entirely in your browser.
About this tool
Splitting and merging are the same job seen from two sides, so this does both from one box: paste a URL list and get several files, or paste several sitemaps and get one list back. Whichever direction you came from, the sitemap index that ties the result together is generated too, since that is the part people forget.
- Paste sitemap XML or a plain URL list — the format is detected. Several sitemaps pasted one after another are merged and deduplicated.
- The 50,000 limit is the hard ceiling, but smaller files are easier to work with: when Search Console reports an error in a file of 5,000 URLs you have somewhere to start looking.
- The index is generated whenever there is more than one file. Reference the index from robots.txt and submit that single URL rather than each shard.
- All the split files must live on the same host as the index, or the references are ignored.
Questions
- When do I need to split a sitemap?
- At 50,000 URLs or 50MB uncompressed. Many people split earlier and by section, because it makes errors far easier to locate.
- How do I merge several sitemaps?
- Paste them one after another. Every <loc> is collected and deduplicated, and you can then re-split at whatever size you want.
- Do I submit the index or each file?
- The index. Search engines follow it to every sitemap listed, so one submitted URL covers all of them.