← All Tools

The 50,000-URL Sitemap Limit: Why That Number?

Guide · Last verified Aug 28, 2026

Building an XML sitemap, you eventually run into the question: "how many URLs can I put in this file?" The answer is "50,000, or 50MB uncompressed — whichever limit you hit first." It isn't an arbitrary number; it's a limit set out explicitly in the sitemaps.org protocol standard, and understanding why that number was chosen and what actually happens when you exceed it makes running a large site a lot less confusing.

1. 50,000 URLs and 50MB — whichever limit you hit first

The sitemaps.org protocol places two caps on a single sitemap XML file at the same time. The URL count can't exceed 50,000, and the file size can't exceed 50MB uncompressed (about 52,428,800 bytes). A sitemap becomes invalid the moment either limit is hit, whichever comes first. In practice, the URL-count limit is overwhelmingly the one you hit first. Assuming a single `<loc>` tag averages around 100 bytes, filling all 50,000 slots only brings the file to roughly 5-10MB — nowhere near 50MB. In other words, the 50MB limit really only kicks in for the unusual case where every URL is loaded up with lastmod, changefreq, priority, and image sub-tags — normally the 50,000 number is the actual bottleneck.

2. Why exactly 50,000 — a compromise with crawler parsing load

This number was set around the realistic ceiling of what a search engine can parse and load into memory in one pass. Because a sitemap is a file a crawler has to read start to finish just to understand its structure, an oversized file drives up both parsing time and memory use together, which eats into crawl budget inefficiently. The two caps — 50,000 URLs and 50MB — represent a practical agreement to "split it into chunks the crawler can actually handle," not a ceiling on the total number of URLs a search engine can process for a given site. That's why large sites split their sitemap into multiple files and bundle those files together into a single sitemap index file. The index file is itself a separate XML document using the `<sitemapindex>` tag, and the same 50,000 limit applies to the number of sitemap entries listed inside it.

3. How modoo hub's Sitemap Generator handles this limit

Checking the actual code of the Sitemap Generator, every URL you add is simply pushed onto the `urls` array — there's no logic anywhere that checks whether you've crossed 50,000. The `generateXml()` function likewise loops over every URL regardless of array length and builds the XML string for download, so adding 50,001 URLs generates a single file with no warning at all. The tool's SEO copy and FAQ do spell out the standard rule — "a single sitemap can't exceed 50,000 URLs or 50MB" — but it's on the user to split the file themselves. In short, there's no automatic splitting; the limit is only explained in text. That's fine for small sites (a few hundred to a few thousand URLs), but for a storefront or large content site with tens of thousands of pages, you need to split your URLs into groups, run the tool multiple times, and stitch the resulting files together into a sitemap index yourself.

Example: a storefront with 120,000 products would split into sitemap-products-1.xml (URLs 1-50,000), sitemap-products-2.xml (50,001-100,000), and sitemap-products-3.xml (100,001-120,000), then place a sitemap-index.xml at the root referencing all three — and declare only that one index file in robots.txt.
ItemLimitIf exceeded
URL count50,000Split the sitemap into multiple files
File size (uncompressed)50MBgzip compression or split the file
Files inside a sitemap index50,000 (rarely an issue in practice)Multi-level index structure

4. Declaring in robots.txt and submitting to Search Console are separate matters

If you've split your sitemap, the `Sitemap:` directive in robots.txt should point to a single URL — the index file that bundles them, not the individual sitemap files. Google Search Console, on the other hand, accepts either the index file or each individual sitemap file submitted separately. It's safest to verify robots.txt syntax and that the Sitemap directive is recognized correctly with our robots.txt Validator, and to check that an existing sitemap file complies with the standard using our Sitemap Validator.

5. priority and changefreq are just hints, regardless of the limit

Separate from the URL-count limit, a frequent point of confusion is the priority (0.0-1.0) and changefreq (always-never) values. These are only hints a search engine may use to weigh crawl priority — they're not guaranteed as an absolute rule. When a large site splits its sitemap across multiple files because of the 50,000 limit, giving the file with important pages a higher priority doesn't guarantee the actual indexing order will follow suit. Keeping your internal link structure and lastmod values accurate contributes more directly to crawl efficiency than priority tuning does.

Frequently Asked Questions

Q. If I go slightly over 50,000, won't the search engine just ignore the excess and move on?

There's no guarantee of that. A sitemap that violates the standard may, depending on the search engine, be ignored entirely, or only partially read with the rest discarded. Either way, the URLs past the cutoff lose that discovery path through the sitemap, so it's safer to stay within the limit from the start.

Q. Does gzip compression relax the 50MB limit?

No. The 50MB limit is based on the uncompressed file size. gzip compression is a bonus that reduces transfer size and download time — it doesn't change the size limit set by the standard.

Q. Does the 50,000 limit also apply to the sitemap index file itself?

Yes — the number of sitemap entries an index file can list is also capped at 50,000, with the same 50MB file-size limit. But since a single sitemap can hold 50,000 URLs, the index itself would only hit this cap once total URLs reach 2.5 billion, so it's rarely an issue in practice.

Q. Does modoo hub's Sitemap Generator split files automatically?

No. Checking the actual code, there's no logic that limits how many URLs you can add or splits files automatically — the SEO copy just explains the 50,000/50MB limit as text. If your site has a lot of URLs, you need to split them into groups, generate multiple times, and stitch the results into a sitemap index yourself.