A single XML sitemap file can contain a maximum of 50,000 URLs. This limit is defined by the Sitemaps.org protocol that Google, Bing, and every other major search engine follow — it isn't a Google-specific rule, and there's no way to request an exception.
The Two Limits That Apply Together
A sitemap file hits its limit at whichever of these two thresholds comes first:
- 50,000 URL entries — the hard cap on how many
<url>blocks a single file can hold. - 50 MB uncompressed — the maximum file size, measured before gzip compression. Most sites hit the URL count limit first; file size only becomes the binding constraint if you have unusually long URLs or attach a lot of optional metadata (like image tags) to every entry.
What Happens If You Go Over the Limit?
Search engines don't silently truncate an oversized sitemap and process the first 50,000 entries. Behavior varies by parser, but the safest assumption is that Google Search Console will reject the whole file with a parsing error, and none of the URLs in it will be picked up from that submission. You'll see this as a fetch or parse error in the Sitemaps report.
How to Check Your Current URL Count
If you generate your sitemap with a plugin or tool, it usually shows a URL count in its dashboard. If you need to count manually, open the sitemap XML and count the number of <loc> tags — most text editors and command-line tools (grep -c "<loc>" sitemap.xml) can do this instantly.
What to Do If You Exceed 50,000 URLs
Split your URLs across multiple sitemap files and reference them all from a single sitemap index file. The index acts as a table of contents — you submit it once to Search Console, and it points search engines to each child sitemap. Most CMS platforms (WordPress with Yoast or Rank Math, Shopify) do this automatically once your site crosses the threshold.
A practical way to split is by content type — pages, blog posts, product pages — rather than arbitrary chunks of 50,000. This makes it much easier to spot which section of your site has a problem when Search Console reports an error on a specific child sitemap.
Do You Actually Need to Worry About This?
For most sites, no. A blog, small business site, or portfolio rarely approaches even 1,000 URLs. This limit mainly matters for large e-commerce catalogs, marketplaces, news publishers, and content-heavy sites with tens of thousands of pages. If that's not you, the 50,000 ceiling is effectively a non-issue — just make sure your sitemap only lists URLs worth indexing, since bloating it with thin or duplicate pages wastes crawl budget long before you'd ever hit the actual limit.