Sitemap Size Limit: 50,000 URLs and 50 MB Explained
The 50,000 URL and 50 MB sitemap limits explained, plus sitemap indexes, gzip and how to split a large sitemap.

Contents
- Sitemap size limits at a glance
- What happens if your sitemap is too big?
- Does gzip compression help?
- How to fix a sitemap that is too large: use a sitemap index
- How to split a large sitemap
- Limits for image, video and news sitemaps
- How to count the URLs in your sitemap
- Generating a split sitemap automatically
- Submitting a split sitemap
Every XML sitemap has a size limit: a maximum number of URLs and a maximum file size. Most small websites never come close, but online shops, news sites, directories and large blogs hit it sooner than they expect — and when they do, Google Search Console reports an error and stops reading the file. This guide explains the exact sitemap limits for Google and Bing, how sitemap index files raise the ceiling, how gzip compression fits in, and what to do when your sitemap is too big.
Sitemap size limits at a glance
| Limit | Value |
|---|---|
| URLs per sitemap file | 50,000 |
| File size per sitemap | 50 MB (52,428,800 bytes), uncompressed |
| Sitemaps listed in one sitemap index | 50,000 |
| Sitemap index files you can submit per site in Search Console | 500 |
| Sitemaps you can list in robots.txt | No limit |
| Maximum URL length | 2,048 characters (recommended) |
The URL and file-size limits come from the sitemaps protocol at sitemaps.org and apply to Google, Bing and other search engines alike. Whichever limit you reach first applies — a file with 30,000 very long URLs and lots of extra tags can pass 50 MB before it reaches 50,000 URLs.
What happens if your sitemap is too big?
In Search Console, an oversized file shows “Sitemap file size error: Your sitemap exceeds the maximum file size limit”, and a file with more than 50,000 URLs shows “Too many URLs”. Google may ignore the whole file or only read part of it, so pages near the end may never be discovered through the sitemap. Bing behaves similarly. Large files are also slower to download and to process, even when they are under the limit.
Does gzip compression help?
You can compress a sitemap with gzip (for example sitemap.xml.gz), and search engines will read it. Compression makes the download much smaller and faster — XML often shrinks by 80–90%.
But compression does not raise the limit. The 50 MB rule applies to the file after it is decompressed. A 6 MB .gz file that expands to 60 MB is still too big. Use gzip for speed, and split files for size.
How to fix a sitemap that is too large: use a sitemap index
The answer is to split your URLs across several smaller sitemaps and list them in a sitemap index — a “sitemap of sitemaps”. You then submit just the index file.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
<lastmod>2026-11-20</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-products-1.xml</loc>
<lastmod>2026-11-22</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-products-2.xml</loc>
<lastmod>2026-11-22</lastmod>
</sitemap>
</sitemapindex>
One index can list 50,000 sitemaps, and each sitemap can hold 50,000 URLs — that’s up to 2.5 billion URLs per index. You will never run out of room.
Rules for sitemap index files
- Same site: the sitemaps listed in an index must be on the same site as the index (unless you’ve set up cross-site submission).
- Same folder or deeper: an index at
/sitemaps/index.xmlcan list sitemaps in/sitemaps/or its subfolders, but not files in the root. Keeping the index in your root folder avoids this problem. - Absolute URLs: every
<loc>must be a full address starting withhttps://. - Don’t nest indexes: list normal sitemaps in an index, not other index files. Search Console reports nested indexes as “Incorrect sitemap index format: Nested sitemap indexes”, and an index with more than 50,000 entries as “Too many sitemaps”.
How to split a large sitemap
| Approach | Example files | Good for |
|---|---|---|
| By content type | sitemap-posts.xml, sitemap-products.xml, sitemap-categories.xml | Seeing which type of page gets indexed in Search Console |
| By number | sitemap-1.xml, sitemap-2.xml … | Very large, uniform sites |
| By date | sitemap-2026-11.xml | News and blogs where old files rarely change |
| By section or language | sitemap-en.xml, sitemap-de.xml | Multilingual or multi-country sites |
Splitting by type is the most useful for most sites: Search Console shows indexed and not-indexed counts per sitemap, so you can instantly spot a section with problems. It’s also wise to stay well under the limits — many sites cap each file at 10,000–25,000 URLs so files stay quick to generate and download.
Limits for image, video and news sitemaps
- Image sitemaps: the same 50,000 URL and 50 MB limits apply. You can list up to 1,000 images for each page.
- Video sitemaps: the same file limits apply. Video tags add a lot of text per URL, so these files reach 50 MB faster — split them earlier.
- Google News sitemaps: a stricter limit of 1,000 URLs per file, and they should only include articles published in the last two days.
How to count the URLs in your sitemap
Paste your sitemap address into our sitemap URL extractor. It opens every child sitemap of an index, counts the URLs and lets you download them as CSV. To check the file size and catch format errors, run it through the sitemap checker — it tests the 50,000 URL and 50 MB limits, along with the XML, namespaces and every URL’s format.
Generating a split sitemap automatically
Most CMS platforms and SEO plugins split sitemaps for you: WordPress, Yoast SEO and Rank Math create an index with one file per content type, and Shopify splits products into numbered files. For other sites, our free XML sitemap generator creates a sitemap index plus separate files automatically when your site is large, and the Split by type option gives you separate files for pages, posts, categories, tags and products even when it’s small.
Submitting a split sitemap
- Upload the index and all the sitemap files to your server.
- Add one line to robots.txt pointing to the index:
Sitemap: https://example.com/sitemap_index.xml. See how to add a sitemap to robots.txt. - Submit the index in Search Console. Google reads the files listed inside it automatically, and shows the status of each one.
Tip: Size isn’t the only thing that matters. A smaller sitemap with only canonical, indexable URLs is far more useful than a huge one full of redirects and duplicates. If your sitemap is close to the limit, first check whether it lists pages that shouldn’t be there — such as non-canonical URLs.
Frequently asked questions
Quick answers to the questions we hear most. Still have a question? Ask us through our contact page.
What is the maximum size of a sitemap?
50,000 URLs or 50 MB uncompressed per file, whichever comes first.
Does gzip increase the sitemap size limit?
No. Compression makes downloads faster, but the 50 MB limit applies to the uncompressed file.
How many sitemaps can a sitemap index contain?
Up to 50,000 sitemaps, and you can submit up to 500 sitemap index files per site in Search Console.
Can a sitemap index list another sitemap index?
No. Nested sitemap indexes are not supported and show an error in Search Console.
What is the Google News sitemap limit?
1,000 URLs per file, with only articles published in the last two days.


