Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sitemap over 50,000 URLs or 50 MB: split it with an index

SEO-108Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

An XML sitemap is a file that lists the URLs you want search engines to crawl. The sitemap protocol, used by Google and Bing, sets two limits per file: 50,000 URLs and 50 MB uncompressed. Gzip compression does not help, because the limit applies to the file after it is unpacked.

Why it costs you leads or sales

The impact is usually low and indirect. If a file goes over the limit, Search Console may show an error such as the sitemap being too big, or URLs past the limit may not be read. Pages that are not discovered are slower to appear in search, so new product, service or landing pages can miss out on organic traffic.

How an oversized sitemap loses pages
  1. Sitemap growsCatalogue passes 50,000 URLs
  2. One file onlyNo sitemap index in place
  3. Search engine reads itFile rejected or cut off
  4. New pages found lateSlower indexing, less organic traffic

The break is the oversized file; URLs beyond the limit may never be read.

How to check if your site has it

Check your sitemap size
  1. Open the sitemap

    Visit /sitemap.xml (or the URL in your robots.txt Sitemap line) in a browser.

  2. Check whether it is already an index

    If the root tag is <sitemapindex>, you already have an index. If it is <urlset>, it is a single file.

  3. Count the URLs

    Search the page source for <loc> tags, or use a crawler such as Screaming Frog, which reports sitemap URL counts.

  4. Check the file size

    Download the file and look at its size on disk, uncompressed. Over 50 MB is too big.

  5. Look in Search Console

    Open Indexing > Sitemaps and read the status and any error for each submitted sitemap. Compare discovered URLs to what you expect.

Count URLs and size from a terminalbash
curl -s https://www.example.com/sitemap.xml -o sitemap.xml
grep -o '<loc>' sitemap.xml | wc -l
ls -l sitemap.xml

How to fix it

Split the URLs into several files, each well under the limits (many people use 10,000 to 40,000 URLs per file), then create an index that lists them. Group them in a sensible way, such as products, categories, blog posts and pages.

Sitemap index examplehtml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-products-1.xml</loc>
    <lastmod>2025-01-15</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-products-2.xml</loc>
    <lastmod>2025-01-15</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-blog.xml</loc>
    <lastmod>2025-01-10</lastmod>
  </sitemap>
</sitemapindex>
Split the sitemap on your platform
  1. Use your SEO plugin's index

    Yoast SEO and Rank Math both output a sitemap index (sitemap_index.xml) by default and split by post type. Make sure only one plugin's sitemap is active.

  2. Lower the entries per sitemap

    Yoast has the wpseo_sitemap_entries_per_page filter. Rank Math has a Links Per Sitemap setting under Rank Math > Sitemap Settings.

  3. Exclude low-value URLs

    Remove tag archives, filtered pages and other thin content from the sitemap so only pages you want indexed remain.

Finish the change
  1. Reference the index in robots.txt

    Add a line such as Sitemap: https://www.example.com/sitemap_index.xml. Point to the index, not each child.

  2. Submit the index

    In Google Search Console (Indexing > Sitemaps) and Bing Webmaster Tools, submit the index URL.

  3. Remove the old oversized file

    Delete the old single sitemap or redirect it to the index so it is not submitted twice.

Single file vs index

Before

  • One sitemap.xml with 80,000 URLs
  • Search Console reports the file is too large
  • Later URLs may never be read

After

  • sitemap_index.xml lists three child files
  • Each child is under 50,000 URLs and 50 MB
  • Search Console shows each file as Success

How to confirm it's fixed

Confirmation checklist
  • The index URL loads and its root tag is <sitemapindex>
  • Every child sitemap loads with a 200 status
  • Each child has under 50,000 <loc> entries and is under 50 MB uncompressed
  • The index is listed in robots.txt
  • Search Console shows the index with status Success and the child sitemaps listed
  • Discovered URL totals roughly match the number of pages you expect

How to prevent it happening again

Use a generator that splits automatically, or one with a clear per-file cap. Keep junk URLs out of the sitemap so it does not grow without reason. Review the sitemap after big imports, new filters or language launches.

Limits at a glance
ItemLimit
URLs per sitemap file50,000
Size per sitemap file50 MB uncompressed
Sitemaps per index file50,000
NestingAn index cannot list other indexes
URLs a search engine can read from one fileExample numbers
URLs a search engine can read from one file (example)Single file (limit applies): 50,000 URLs; Index with 2 children: 80,000 URLs030,66761,33350,00080,000Single file (limit ap…Index with 2 childrenURLs

Example: a site with 80,000 pages, comparing a single file to an index with two child files.

How FunnelGuard handles this

FunnelGuard does not check this yet. Sitemap size and URL count are a possible future check. Today FunnelGuard runs your real customer journeys, such as lead forms, checkouts and booking buttons, and checks tracking hits and whether test leads arrive. That covers conversion paths, not sitemap files.

To watch for this yourself, check Search Console's Sitemaps report after big site changes, run a crawler such as Screaming Frog on a schedule to count sitemap URLs, or use the curl commands above. A free read-only FunnelGuard website audit is available, but it should not be relied on for sitemap limits.

Questions people ask

What is the maximum size of an XML sitemap?

A single XML sitemap can contain up to 50,000 URLs and be up to 50 MB uncompressed. If you go over either limit, split the URLs across several sitemaps and list them in a sitemap index.

Does gzip compression count towards the 50 MB sitemap limit?

No. The 50 MB limit applies to the file after it is uncompressed. Serving a .xml.gz file saves bandwidth but does not let you fit more into one sitemap.

How do I split a large sitemap into multiple files?

Divide your URLs into groups under the limits, for example by content type or in chunks of 40,000. Save each as its own sitemap, then create a sitemap index that lists each file's full URL and submit the index.

What is a sitemap index file?

A sitemap index is an XML file with a <sitemapindex> root that lists other sitemap files. It lets you go beyond the limits of one sitemap. It can list up to 50,000 sitemaps, and it cannot list other indexes.

Why does Search Console say my sitemap is too large?

Your sitemap file has more than 50,000 URLs or is over 50 MB uncompressed. Split it into smaller sitemaps, group them under a sitemap index, and resubmit the index in Search Console.

Do I need to submit every child sitemap to Google?

No. Submitting the sitemap index is enough, and Google reads the child files from it. You can also submit children separately to see per-file reports, but avoid double-listing the same URLs.

Does a sitemap over the limit hurt my rankings?

Not directly. The risk is that URLs past the limit are not read, so those pages may be found and indexed later. Well-linked pages are usually still discovered by crawling.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.