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.
- Sitemap growsCatalogue passes 50,000 URLs
- One file onlyNo sitemap index in place
- Search engine reads itFile rejected or cut off
- 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
Open the sitemap
Visit /sitemap.xml (or the URL in your robots.txt Sitemap line) in a browser.
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.
Count the URLs
Search the page source for <loc> tags, or use a crawler such as Screaming Frog, which reports sitemap URL counts.
Check the file size
Download the file and look at its size on disk, uncompressed. Over 50 MB is too big.
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.
curl -s https://www.example.com/sitemap.xml -o sitemap.xml
grep -o '<loc>' sitemap.xml | wc -l
ls -l sitemap.xmlHow 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.
<?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>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.
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.
Exclude low-value URLs
Remove tag archives, filtered pages and other thin content from the sitemap so only pages you want indexed remain.
Nothing to build
Shopify generates /sitemap.xml as an index that links to child sitemaps for products, collections, pages and blog posts, and splits them automatically.
Submit the index
Submit /sitemap.xml only, not the child files. You cannot edit the file, so this issue points to a custom or app-made sitemap if you see it.
Check the auto sitemap
In Site settings > SEO, turn on auto-generate sitemap. Webflow splits large sitemaps for you, so check the result at /sitemap.xml.
Exclude pages you do not need
Use the page's SEO settings to hide it from the sitemap if it should not be indexed.
Chunk the URL list
In your generator, write at most a set number of URLs per file (for example 40,000) and name the files sitemap-1.xml, sitemap-2.xml and so on.
Generate the index
Write a <sitemapindex> file that lists each child sitemap with its full URL and lastmod date.
Watch file size too
If URLs are long or you add image or hreflang data, you can hit 50 MB before 50,000 URLs. Split on whichever limit comes first.
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.
Submit the index
In Google Search Console (Indexing > Sitemaps) and Bing Webmaster Tools, submit the index URL.
Remove the old oversized file
Delete the old single sitemap or redirect it to the index so it is not submitted twice.
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
- 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.
| Item | Limit |
|---|---|
| URLs per sitemap file | 50,000 |
| Size per sitemap file | 50 MB uncompressed |
| Sitemaps per index file | 50,000 |
| Nesting | An index cannot list other indexes |
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.
Related issues
- SEO-099No XML sitemapFix guide
- SEO-100Sitemap not referenced in robots.txtFix guide
- SEO-101Sitemap not submitted in Search Console / Bing WebmasterFix guide
- SEO-103Sitemap XML invalid or wrong namespaceFix guide
- SEO-112Sitemap index references dead child sitemapsFix guide
- SEO-113Plugin generates duplicate sitemaps (Yoast plus Rank Math)Fix guide