Zahid Awais Get a free audit

Free XML sitemap splitter

Paste a URL list or a big sitemap and get several smaller sitemap files plus a sitemap index that points to them.

By Zahid Awais · Technical SEO tools · Free, private, no sign-up

Limits come from Google and sitemaps.org: 50,000 URLs or 50MB uncompressed per file, whichever comes first. Everything runs in your browser.

Result
0URLs kept
0Sitemap files
0Skipped
0Largest file
      XML Sitemap Splitter: what it does and an example result

      The free XML sitemap splitter takes a long list of URLs, or a sitemap that has grown too big, and splits it into smaller sitemap files that each stay under the 50,000 URL and 50MB limits. It also writes the sitemap index that points to them.

      Quick answer

      To split a sitemap, divide its URLs into files of at most 50,000 URLs and 50MB uncompressed each, upload them to one folder, and list them in a sitemap index file. Submit only the index in Search Console. This tool does the split, escapes special characters and writes the index for you.

      What does an XML sitemap splitter do?

      An XML sitemap splitter breaks one large set of URLs into several valid sitemap files and creates a sitemap index that lists them. Google's sitemap guide says: "All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs." It adds that if you have more, "you must break your sitemap into multiple sitemaps." The sitemap index page then lets you submit all of them through one index file.

      This tool checks both limits at once. It fills each file up to your URL count, but it also measures the size of every entry in bytes as UTF-8 and starts a new file before the size limit is reached, so long URLs cannot push a file over 50MB. Special characters such as & are entity-escaped as the protocol requires. If you only need an index for files you already have, use the sitemap index generator.

      How do you use the XML Sitemap Splitter?

      How to use the XML Sitemap Splitter: enter details, see the result and copy it
      Real screenshot of the XML Sitemap Splitter with the example input from this page.
      1. Paste your URLs, one per line, or the XML source of a sitemap that is too big.
      2. Keep 50,000 URLs per sitemap, or set a lower number such as 10,000 to keep files small and easy to check.
      3. Enter the folder URL where you will upload the files and, if you like, a file name prefix.
      4. Check the file list, preview each file and download them one by one or all together.
      5. Upload the files and the index to that folder, then submit the index in Search Console.

      What are the size limits for an XML sitemap?

      One sitemap can hold at most 50,000 URLs and 50MB of uncompressed data, whichever comes first. The sitemaps.org protocol gives the same limits and states 50MB as 52,428,800 bytes. Gzip compression is allowed, but the limit applies to the file once it is uncompressed. A sitemap index has its own limit: Google says it "may have up to 50,000 loc tags", one per sitemap.

      Do I submit every split sitemap or only the index?

      Submitting only the index is enough. Google says you can "submit that single index file" and it will find the sitemaps listed inside. The child sitemaps "must be hosted on the same site as your sitemap index file" and in the same directory or lower, unless you set up cross-site submission. Google also allows up to 500 sitemap index files per site in Search Console.

      Should I split a sitemap before it reaches 50,000 URLs?

      You do not have to, but smaller files are often easier to work with. Many sites split by section, for example one sitemap for products and one for blog posts, so the Search Console Sitemaps report shows how many URLs of each type are discovered. Smaller files are also quicker to regenerate. Whatever size you choose, keep every URL in exactly one sitemap.

      Quick reference: sitemap limits

      ItemLimitSource
      URLs in one sitemap50,000Google, sitemaps.org
      Size of one sitemap50MB uncompressed (52,428,800 bytes)Google, sitemaps.org
      Sitemaps in one index50,000 loc tagsGoogle, sitemaps.org
      Index files per site in Search Console500Google
      URL lengthLess than 2,048 characterssitemaps.org
      Nested index filesNot allowedSearch Console Help

      Worked example

      Example

      Example: the default sample has 9 lines for www.example.com, and /services/ appears twice. With URLs per sitemap set to 3, the splitter keeps 8 URLs, skips 1 duplicate and creates sitemap-1.xml and sitemap-2.xml with 3 URLs each and sitemap-3.xml with 2. It also writes sitemap-index.xml listing the 3 files under https://www.example.com/. The URL with ?page=2&sort=new is written as & so the XML stays valid.

      Learn more

      Frequently asked questions

      Can I use this tool to split a gzip sitemap?

      Not directly. Unzip the .gz file first, open the XML in a text editor and paste it here. You can gzip the new files after downloading them, because the 50MB limit applies to the uncompressed size.

      Does the splitter keep image and video tags?

      No. It keeps loc and lastmod only and tells you how many extension tags were dropped. For image, video or news entries, regenerate those sitemaps with your CMS or a dedicated generator so the extra tags stay intact.

      What happens to duplicate URLs?

      The splitter keeps the first copy of each URL and skips any exact repeat, so no URL appears in two files. The result line shows how many duplicates were skipped. Invalid lines and URLs of 2,048 characters or more are skipped as well.

      Where should I upload the split sitemaps?

      Upload them to the folder URL you entered, which should be on the same host as the URLs they list. The site root is the usual choice, because Google recommends posting sitemaps at the root so they can cover the whole site.

      Can a sitemap index list another sitemap index?

      No. Search Console reports an error for nested sitemap indexes, saying an index file can list only sitemap files. If you have more than 50,000 sitemaps, create several index files and submit each one.

      Is my URL list sent to a server?

      No. The splitting, the size checks and the downloads all happen in your browser with JavaScript. The files are created on your device, so you can safely paste URLs from a staging site or a client project.

      Sources

      Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.

      Related free tools

      All free tools

      Sitemap URL Extractor

      Pulls every URL and lastmod out of pasted sitemap XML, flags duplicates and other hosts.

      Sitemap Index Generator

      A sitemap index generator is a tool that wraps each sitemap URL in a sitemap element with a loc and optional…

      Sitemap XML Validator

      A sitemap validator is a tool that parses sitemap XML and checks it against the sitemap protocol and Google's…

      Want a full audit instead?

      Send your website and I will check it for you, free.

      Get my free audit
      Chat on WhatsApp
      Free updates

      Get new tools, guides and coupons first

      One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.