Skip to content
Nazmul Nikhil
Menu

Sitemap Larger Than 50MB (Ahrefs): Split It With a Sitemap Index

Sitemaps can't be larger than 50MB uncompressed. Ahrefs flags files over the limit. Here's how to split them with a sitemap index.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Sitemap Larger Than 50MB (Ahrefs): Split It With a Sitemap Index
Photo: AbsolutVision on Unsplash

In short

Ahrefs flags "Sitemap larger than 50MB" when a sitemap file is bigger than 50MB uncompressed, the maximum allowed. A file also can't hold more than 50,000 URLs. Split it into smaller sitemaps and list them in a sitemap index. Gzip reduces the download size but doesn't change the limit, which applies to the uncompressed file.

The sitemap protocol has hard size limits. Files over them may be ignored.

A sitemap index

<?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></sitemap>
<sitemap><loc>https://example.com/sitemap-posts-1.xml</loc></sitemap>
<sitemap><loc>https://example.com/sitemap-posts-2.xml</loc></sitemap>
</sitemapindex>

Submit the index in Search Console and list it in robots.txt.

Why a sitemap gets this big

  • Image or video extensions with many entries per URL

  • Every product variant or filter combination listed

  • Long URLs with parameters

Removing non-canonical URLs often shrinks the file a lot.

WordPress: Yoast and Rank Math split sitemaps automatically.

Shopify, Webflow and Wix: automatic sitemaps are split by the platform.

Custom builds: generate one sitemap per content type and paginate each, for example at 10,000 URLs, which also makes debugging easier.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditSitemap larger than 50mbSitemap size limitSitemap index file
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com