XML sitemaps that Google actually uses
A sitemap is a list of URLs you would like crawled. Most of what goes wrong with one is about trust, not format.
Google uses an XML sitemap to discover URLs and, if the dates are consistently accurate, to decide when to recrawl them. It ignores priority and changefreq. Keep each file under 50,000 URLs and 50MB, list only canonical URLs that return 200, and only move lastmod when the content really changes.
Google's sitemap overview is modest about what a sitemap does. If a site's pages are properly linked, it says, Google can usually discover most of them anyway, and a "small" site of about 500 pages or fewer may not need one. A sitemap earns its keep on large sites, new sites with few external links, and sites with rich media. It still costs almost nothing, which is why it is on our technical SEO checklist.
What Google reads and what it ignores
| Element | Google's stated use |
|---|---|
| <loc> | The URL. Use the full, absolute, canonical address. |
| <lastmod> | Used if it is consistently and verifiably accurate, as a hint for recrawling |
| <priority> | Ignored |
| <changefreq> | Ignored |
The format itself is defined at sitemaps.org, which still documents priority and changefreq as optional tags. That is where the two sources differ: the protocol allows the tags, and Google's build guide says it ignores them. Other search engines may use them; we leave them in because they cost nothing, and we do not expect them to do anything in Google.
The limits
- At most 50,000 URLs and 50MB uncompressed per sitemap file. Larger sites split into several files listed in a sitemap index.
- UTF-8 encoding, and fully qualified URLs.
- Only URLs you want in search: canonical, returning 200, not set to noindex. A sitemap that lists redirects and duplicates sends mixed signals, and Google's canonical guidance counts sitemap inclusion as one of the (weaker) canonical signals. See canonical tag mistakes.
Our own case: a lastmod bug we found today
While checking colleviate.com's sitemap on 5 December 2026 for this article, we found that some articles carried a lastmod date earlier than their own publication date. Our Black Friday analysis, published on 23 November, was listed as last modified on 3 November. The cause was in our generator: when a later batch added a related-reading link to an older page, the script stamped the page with a fixed date rather than the date of the batch that changed it.
Why it matters: Google says it uses lastmod only when the dates are consistently accurate. A date before publication is plainly wrong, and a site that sends wrong dates teaches the crawler to ignore them. We changed the generator so an appended paragraph dates the page by the batch that added it, and never earlier than publication, and we gave the Black Friday page its real revision date of 5 December, when we added the result. The sitemap had 166 URLs on 5 December before this batch; every one returns 200 and none is a redirect.
How to submit and check
- Add a Sitemap: line to robots.txt (see what robots.txt can and cannot do).
- Submit the sitemap in Search Console's Sitemaps report and read the status it returns.
- Compare the count of submitted URLs with the Page indexing report. A gap is normal for a young site; a growing gap needs a reason. Our own numbers from the first three months are in our first ninety days in Search Console.
Sources
- Learn about sitemaps, Google Search Central, undated
- Build and submit a sitemap, Google Search Central, undated
- Sitemaps XML format, sitemaps.org, undated
- Colleviate technical check of colleviate.com (site build and live HTTP responses), Colleviate, 5 Dec 2026
Questions we get asked
Does Google use priority and changefreq in a sitemap?
No. Google says it ignores both. It uses lastmod only when the dates are consistently accurate.
Does a small website need a sitemap?
Google says a well-linked site of about 500 pages or fewer may not need one, but one is cheap and helps new sites.
How many URLs can a sitemap hold?
Up to 50,000 URLs or 50MB uncompressed per file. Larger sites use several files and a sitemap index.
What should lastmod show?
The date the content last changed in a way that matters, never the date of a rebuild and never earlier than publication.
Want your sitemap checked against reality?
We compare what your sitemap lists with what returns 200, what is canonical and what Google has indexed.
Ask for a scoped auditWhat we do · How we produce it · Who we do it for · Talk to us