# What a Sitemap Does and Doesn't Do: Rules, Limits, and a Checklist

> What a sitemap.xml does for search crawlers, what it cannot do, the size limits and lastmod rules, and a checklist to audit yours in fifteen minutes.

- Canonical page: https://learnhubplay.nl/blog/what-a-sitemap-does-and-doesnt-do
- Published: 2026-12-04
- By: LearnHubPlay, an independent software studio in Amsterdam
- Topic: Websites & AI Crawlers
- Tags: Documentation, Checklists, Troubleshooting, AI crawlers

Your site has a `sitemap.xml`, or your CMS says it makes one, and you have never looked at it. Then a page you published three weeks ago is still missing from search, or a plugin reports "sitemap OK" while the file lists drafts, old addresses, and a `lastmod` date that changes every night. A sitemap looks like a switch that makes search engines index your site. It is closer to a list you hand over, and the list is only as good as its contents.

By the end of this guide you will know what Google says a sitemap does, what it explicitly does not do, which fields it reads and ignores, and how to audit a sitemap in about fifteen minutes. The rules come from Google's documentation and the sitemaps.org protocol, not from folklore.

## What a sitemap is for

Google's introduction describes a sitemap as a file that gives information about the pages, videos, and other files on your site, and that helps search engines crawl the site more efficiently ([Learn about sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)). It tells the crawler which URLs you consider important and adds details such as when a page was last updated and which language versions exist.

Google also states what a sitemap cannot do. It "helps search engines discover URLs on your site, but it doesn't guarantee that all the items in your sitemap will be crawled and indexed." Those two sentences are the core of the whole subject. A sitemap is a discovery aid. Crawling and indexing remain Google's decisions.

## What a sitemap does not do

Several common beliefs are wrong, and each one leads to a specific mistake.

| Common belief | What the documentation says | The mistake it causes |
|---|---|---|
| "Listing a page guarantees it is indexed." | Listing helps discovery and does not guarantee crawling or indexing. | Treating the file as the finish line, and never checking the page in Search Console. |
| "Removing a URL from the sitemap hides it." | Omitting a URL does not stop crawling or indexing if other pages link to it. | Deleting a page from the sitemap and expecting it to vanish from results. |
| "To keep a page out of search, leave it out of the sitemap." | To keep a page out of Google Search, block indexing with `noindex`. | Leaving a draft out of the file while it stays publicly reachable and linked. |
| "Priority and change frequency tell Google when to crawl." | Google ignores `<priority>` and `<changefreq>` values. | Spending time tuning values that do nothing. |
| "Every page's `lastmod` should be today's date." | Google uses `lastmod` only when it is consistently and verifiably accurate. | Stamping every URL with the build date, which makes the field useless. |
| "A sitemap is needed for every site." | Google says a site of about 500 pages or fewer that is comprehensively linked may not need one. | Adding unnecessary maintenance, though a sitemap rarely hurts. |

The `noindex` point needs emphasis. A sitemap is never a privacy or removal tool. If a URL must not appear in results, the page needs a `noindex` instruction that Google can read, and it must not be blocked from being crawled. Google's crawl blocks and removal guidance is a separate topic from the sitemap, so check the page itself, not only the file.

## The fields and rules that matter

The sitemaps.org protocol defines the XML format, and Google adds its own reading of several fields. Only these matter in practice.

- **`<loc>`** is required. It must be an absolute URL with the protocol, and all URLs in one sitemap must come from a single host. A relative path such as `/guide` is not enough.
- **`<lastmod>`** is the date the page was last modified, not the date the sitemap was generated. Google says it uses the value when it is consistently and verifiably accurate, and that a significant update is a change to the main content, structured data, or links, not a change to a copyright date.
- **`<changefreq>` and `<priority>`** are optional and ignored by Google.
- **Size limits:** a single sitemap can hold 50,000 URLs and 50 MB uncompressed. Gzip compression is allowed, and the 50 MB limit still applies to the uncompressed file. Larger sites split the list across several files and point to them with a sitemap index file.
- **Encoding:** the file must be UTF-8, and tag values must be entity-escaped, so an ampersand in a URL becomes `&amp;`.
- **Location:** Google recommends posting the sitemap at the site root, because a sitemap affects only the URLs in its own directory and below unless you submit it through Search Console.

A minimal valid entry looks like this:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/guide/canonical-urls</loc>
    <lastmod>2026-12-04</lastmod>
  </url>
</urlset>
```

> **Note:** Google also accepts RSS 2.0 and Atom 1.0 feeds as sitemaps. A feed lists only recent items, so it is a weaker map of an archive than a full XML sitemap.

## Decide whether you need one

Google's guidance says a site of about 500 pages or fewer may not need a sitemap, provided it is comprehensively linked and has no large amount of video, image, or news content it wants shown in search. You probably want one if your site is large, new with few external links, or media-heavy. If your CMS already generates a sitemap, which Google notes is common on platforms such as WordPress, Wix, and Blogger, keeping it accurate costs little.

The decision is less important than the accuracy. A small, correct sitemap beats a large, wrong one.

## Audit your sitemap in fifteen minutes

This checklist works for any site. Run the commands from a terminal, then compare the output with your own list of pages.

```bash
# 1. Find the sitemap your robots.txt declares
curl -s https://example.com/robots.txt | grep -i '^sitemap:'

# 2. Check the file answers and count the URLs it lists
curl -s -o sitemap.xml -w "%{http_code} %{content_type}\n" https://example.com/sitemap.xml
grep -c '<loc>' sitemap.xml

# 3. Look for addresses that do not answer with a plain 200
grep -o '<loc>[^<]*</loc>' sitemap.xml | sed 's/<[^>]*>//g' | while read -r u; do
  curl -s -o /dev/null -w "%{http_code} $u\n" "$u"
done | grep -v '^200'
```

The last command prints nothing when every listed address returns 200. Any line it prints is a URL that redirects, is missing, or errors, and each one should be fixed or removed.

We ran these checks on learnhubplay.nl on 3 December 2026. The sitemap answered with HTTP 200 and an XML content type, listed 99 URLs, and was well under the 50,000-URL limit. The list covered the home page, the guide index, topic hubs, and tag pages that have enough guides to be indexable, plus each published guide. The first step printed the `Sitemap:` line from robots.txt, so crawlers can find the file without being told where it is. Those results show the commands work on a live file. They do not show that every address is canonical or that every `lastmod` is honest, which is what the checklist below covers.

Then compare the count with the list you intend to publish. A count well above that number usually means a plugin added archive, tag, or pagination pages you did not plan to show. A count well below it means some pages are reachable only through direct links or search, and the sitemap is not helping Google find them. In both cases, your intended list is the reference, and the file is what needs to change.

## The checklist

- [ ] Every `<loc>` is an absolute `https` address on one host, and it matches the canonical tag on that page.
- [ ] Every listed URL returns 200 and carries no `noindex` instruction.
- [ ] Drafts, scheduled posts, and internal search pages are not in the file.
- [ ] `lastmod` changes only when the page's content, structured data, or links change.
- [ ] Each sitemap stays under 50,000 URLs and 50 MB, and large sites use a sitemap index.
- [ ] The sitemap is listed in robots.txt and submitted in Search Console for a property you own.
- [ ] A page you removed from the site is also gone from the sitemap, or redirects.
- [ ] The file is UTF-8 with escaped ampersands.

> **Warning:** A sitemap built from a CMS plugin can include tag, author, and pagination archives that you did not mean to publish. Check the list of addresses against your navigation before trusting the plugin's default.

## Frequently asked questions

### Does submitting a sitemap make Google index my pages?

No. Google says a sitemap helps it discover URLs but does not guarantee that every listed item is crawled and indexed. Keeping an accurate sitemap is still worthwhile, because it helps discovery on larger or more complex sites and Google reads its `lastmod` values when they are accurate.

### Should I remove a page from my sitemap if I do not want it in search?

Removing it from the file is not enough, because Google can still crawl and index a URL that other pages link to. To keep a page out of results, add a `noindex` instruction to the page and make sure Google can crawl it to read that instruction.

### Do priority and change frequency fields help with ranking?

Google ignores the `<priority>` and `<changefreq>` values, so they do not help with crawling or ranking. Spend the effort on accurate `<lastmod>` dates and a list that contains only the canonical addresses you want shown.

### What `lastmod` date should I use?

Use the date the page's content, structured data, or links last changed in a significant way. The sitemaps.org protocol says the date should be the page's last modification, not the date the sitemap was generated. A change to a copyright year is not a significant update under Google's guidance.

## Sources and further reading

- [Learn about sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview) - Google Search Central, documentation. Purpose of a sitemap, the discovery-only limit, and the rule of thumb about site size.
- [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) - Google Search Central, documentation. Supported formats, size limits, absolute URLs, and how Google reads `lastmod`, `priority`, and `changefreq`.
- [Sitemaps XML format](https://www.sitemaps.org/protocol.html) - sitemaps.org, protocol specification. Required and optional tags, UTF-8 and entity escaping, and the `lastmod` definition.

## Where to start this week

Run the three commands above on your own domain, then work through the checklist top to bottom. Fix the list before you touch any dates: remove drafts and redirecting addresses, then correct the canonical mismatches, because they cause the most confusing reports. Only after that does an honest `lastmod` policy matter, and a policy is easier to keep when the list is already clean. If your site publishes guides, the guide on [canonical URLs for small sites](https://learnhubplay.nl/blog/canonical-urls-explained-small-sites) covers the tags a sitemap should agree with. The guide on [making documentation readable by AI agents](https://learnhubplay.nl/blog/agent-readable-documentation) explains why an honest `lastmod` matters to machine readers too, and the [what llms.txt is](https://learnhubplay.nl/blog/what-is-llms-txt) guide compares that file with the sitemap. More guides on this subject are on the [AI search topic hub](https://learnhubplay.nl/topics/ai-search).
