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.
Related issues
Sources and references
Google Search Central, Manage your sitemaps with a sitemap index file
sitemaps.org, Sitemaps XML format

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.



