---
title: "Sitemap limits explained: URLs, size, lastmod"
url: "https://blogautopost.com/blog/sitemap-limits-explained.md"
canonical_url: "https://blogautopost.com/blog/sitemap-limits-explained"
last_updated: "2026-10-19"
type: "guide"
summary: "The 50,000 URL and 50 MB limits per sitemap file, how a sitemap index lifts them, and what Google says about the lastmod date."
related: ["https://blogautopost.com/blog.md", "https://blogautopost.com/blog/google-and-ai-generated-content.md", "https://blogautopost.com/blog/read-search-console-performance-report.md"]
---

# Sitemap limits explained: URLs, size, lastmod

> **For AI agents:** the complete index of BlogAutoPost pages is [llms.txt](https://blogautopost.com/llms.txt). Every page is also served as markdown at its URL plus .md.

The 50,000 URL and 50 MB limits per sitemap file, how a sitemap index lifts them, and what Google says about the lastmod date.

## The two limits on one sitemap file

A single sitemap file may list at most **50,000 URLs**, and the file may be at most **50 MB** (52,428,800 bytes) once it is uncompressed. Both numbers come from the sitemap protocol, and Google's own documentation repeats them. Whichever limit you reach first is the one that forces a split.

Compression does not move the size limit. You may serve the file gzipped to save bandwidth, but the protocol measures the file after it is unpacked. A file that is small on the wire and large when opened still counts as large.

## Which limit you meet first

Take a typical blog entry with an address and a lastmod date. Written out with indentation, one entry like the sample below is 127 bytes. At that size, 50,000 entries fill about 6.1 MB, far below the size limit, so the URL count is what ends the file.

One sitemap entry, measured in the calculation above.

```xml
  <url>
    <loc>https://www.example.com/blog/how-to-write-a-meta-description</loc>
    <lastmod>2026-10-19</lastmod>
  </url>
```

The size limit only bites when entries are long. The two limits meet at about 1,048 bytes per entry. An address may be up to 2,047 characters, and if every entry were that long, a file with 50,000 of them would weigh around 101 MB. Sites with very long query-string addresses can therefore hit the size cap before the URL cap. Most blogs never will.

## How many files a site needs

The table divides a site's URL count by the per-file limit and rounds up. It assumes entries are short enough that the URL limit is the one that binds.

| URLs on the site | Sitemap files | Index file? |
| --- | --- | --- |
| 1,200 | 1 | Not needed |
| 50,000 | 1 | Not needed |
| 50,001 | 2 | Yes, one index listing the files |
| 130,000 | 3 | Yes, one index listing the files |
| 2,500,000 | 50 | Yes, one index listing the files |

## What a sitemap index file does

A sitemap index is a small XML file that lists other sitemap files instead of pages. You submit the index once and search engines find every file through it. An index has limits of its own: up to 50,000 sitemaps, and no more than 50 MB. Fifty thousand sitemaps of fifty thousand URLs each would put 2,500,000,000 URLs behind a single index, and the protocol allows more than one index file if you ever need them.

- The sitemaps an index lists must live on the same site as the index. Google adds that they should sit in the same directory as the index or deeper, unless cross-site submission is set up.
- Google lets you submit up to 500 sitemap index files for each site in Search Console.
- Submitting several files separately is useful when you want to see how each one performs in Search Console, for example one file for the blog and one for product pages.

## The lastmod date, and why it must be true

The optional `lastmod` tag tells a crawler when a page last changed. The protocol is specific: it is the date the linked page was last modified, not the date you generated the sitemap. Writing the generation date on every entry is the most common way to get this wrong.

Google says it uses `lastmod` as a signal for scheduling crawls of URLs it already knows, but only when the values consistently match reality. If a page changed years ago and the sitemap says yesterday, Google warns that it will eventually stop believing the date. It also defines the word loosely: "last modification" means last significant modification. A new primary text, changed structured data or updated links count. A copyright year in the footer does not.

In an index file, `lastmod` means something different again: the time the listed sitemap file changed, not the time any page inside it did. A crawler can use it to skip files that have not changed since its last visit.

## Tags you can stop worrying about

The protocol also defines `changefreq` and `priority`, both optional hints. Google states that it ignores both. Time spent tuning them is time not spent on dates that are correct.

## A short checklist

1. Count your indexable URLs. If it is under the per-file limit, one file is enough.
2. Past the limit, split the list and add an index. Name files by purpose, so Search Console reports mean something.
3. Use full, absolute addresses, UTF-8 encoding and escaped characters such as `&amp;`.
4. Set `lastmod` from the page's real change date, and leave it off pages where you cannot tell.
5. Reference the sitemap in `robots.txt` or submit it in Search Console. Google retired its unauthenticated ping endpoint in 2023.

If you publish through BlogAutoPost, the way new posts reach your sitemap is described on the [Indexing page](https://blogautopost.com/docs/indexing.md), and the three Search Console steps are on the [Search Console page](https://blogautopost.com/docs/search-console.md).

## Frequently asked questions

### Does gzip let me fit more URLs in one sitemap file?

No. Compression saves transfer size, but both limits are applied to the file after it is uncompressed: at most 50,000 URLs and 50 MB.

### Do I need a sitemap index for a small blog?

Only if you pass a limit or want to track groups of pages separately. A blog with a few hundred posts fits in one file, since a file holds up to 50,000 URLs.

### Should lastmod change every time I republish a post?

Only when the page changed in a way a reader or crawler would care about. Google counts new primary text, changed structured data and updated links as significant; it does not count a footer year. Dates that do not match reality teach crawlers to ignore them.

### Do changefreq and priority help?

Google ignores both values. They remain part of the protocol as optional hints, and other engines may read them, but you gain nothing from adjusting them for Google.

## Sources

- [Sitemaps XML format (sitemaps.org protocol)](https://www.sitemaps.org/protocol.html), read 2026-10-19
- [Build and submit a sitemap (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap), read 2026-10-19
- [Manage your sitemaps with a sitemap index file (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps), read 2026-10-19
- [Sitemaps ping endpoint is going away, and advice on lastmod (Google Search Central Blog, 26 June 2023)](https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping), read 2026-10-19

## Related

- [The BlogAutoPost blog](https://blogautopost.com/blog.md)
- [AI-generated content: what Google says](https://blogautopost.com/blog/google-and-ai-generated-content.md)
- [Read the Search Console performance report](https://blogautopost.com/blog/read-search-console-performance-report.md)
