Split a huge URL list into 50,000-URL sitemaps, or merge several sitemaps into one.
How to use the Sitemap split / merge
- Paste URLs or sitemap URLs.
- Choose split or merge.
- Download the files and, when splitting, create an index for them.
Limits to respect
50,000 URLs and 50 MB uncompressed per sitemap file.
How splitting and merging work
Paste a plain list of URLs, or the XML of one or more sitemaps. Every web address in the text is picked up and duplicates are removed, so pasting several sitemaps merges them into one list. The hint shows how many unique URLs were found. Set URLs per file (100 to 50,000) and you get one download button per file, sitemap-1.xml, sitemap-2.xml and so on, plus a sitemap_index.xml when there is more than one file. The index points to each file using the URL prefix you set, so enter the folder where you will upload them.
Getting clean output
Because any web address is picked up, image URLs from image sitemaps and namespace addresses in the XML header come along too; check the count and remove them if the number looks high. Use smaller files, like 10,000 URLs, if your server struggles to serve big XML or if you want indexing reports per chunk. Upload every file to the prefix you entered before submitting the index, or the children will 404.