The six sheets › Sheet II
Sheet II of VI
A sitemap is a file that lists the pages and files on your site that you think matter, with details such as when each was last updated, so search engines can crawl the site more efficiently. It helps Google discover URLs, but it doesn’t guarantee that everything in it will be crawled or indexed; Google calls submitting one “merely a hint”.
General information from Google’s own documentation, not advice for your particular site. Google’s Search Central documentation is the place to check before you change anything, and it is updated over time.
The State Library of South Australia holds an 1838 plan of the city of Adelaide “with acre allotments numbered, and a reference to the names of the original purchasers”, and anyone can still search its collection by acre number. A sitemap is that kind of register for a website: not the streets themselves, but a numbered list of every lot you want found.
Google’s answer depends on the shape of the site. If pages are properly linked, so that everything important can be reached through menus or links, Google can usually discover most of a site without help.
Google adds that in most cases a site will benefit from having a sitemap anyway, and that a CMS such as WordPress, Wix or Blogger has likely made one available already.
Google supports the formats in the sitemaps protocol and says it has no preference between them.
| Format | What it can carry | Google’s note |
|---|---|---|
| XML sitemap | URLs plus extra detail about images, video, news and localised versions of pages | The most versatile; can be cumbersome and complex to maintain on large sites or where URLs change often. |
| RSS, mRSS or Atom 1.0 feed | Pages, and video details through mRSS; not images or news | Often the easiest, because most CMSes generate feeds; a feed only covers recent URLs. |
| Text file | One URL per line, HTML and other indexable text pages only | The simplest; put nothing but URLs in it, in a file ending .txt. |
Here is a two-page XML sitemap for an invented site. The notes beside it come from Google’s build guide.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/plants/natives/kangaroo-paw</loc>
<lastmod>2026-09-14</lastmod>
</url>
<url>
<loc>https://www.example.com/guides/planting-in-clay</loc>
<lastmod>2026-08-02</lastmod>
</url>
</urlset>
/mypage.html on its own is wrong.<lastmod> is used only if it is consistently and verifiably accurate. It should reflect a significant update, such as to the main content, structured data or links, and not a new copyright year.<priority> or <changefreq> here on purpose: Google ignores both.The dates and addresses above are invented for the example. The order of URLs in the file doesn’t matter to Google.
| Rule | What Google’s documentation says |
|---|---|
| Size of one sitemap | 50MB uncompressed or 50,000 URLs, in every format. Above that, split it into several. |
| Where it lives | Anywhere on the site, but unless submitted through Search Console it only affects descendants of its parent directory; Google recommends the site root. |
| Sitemap index file | Lists several sitemaps so you can submit them at once; up to 50,000 <loc> tags. |
| Where indexed sitemaps live | On the same site as the index, in the same directory or deeper, unless you have set up cross-site submission. |
| Index files per site | Up to 500 in a Search Console account. |
There are a few ways to make a sitemap available, and none of them guarantees it will be used.
Sitemap: https://www.example.com/sitemap.xml. Google will find it next time it crawls the robots.txt file, and there’s no limit on how many sitemap lines you include. The URL must be fully qualified; Google doesn’t assume or check the http, https, www or non-www alternatives.Every page listed in a sitemap is suggested as a canonical. Google treats sitemap inclusion as a weak signal, weaker than a redirect or a rel="canonical" link, though the signals stack when they agree. It also warns against contradicting yourself: don’t name one URL as canonical in a sitemap and a different one for the same page with rel="canonical". More on that in the sheet on canonical URLs.
Google’s site-move guide suggests keeping two sitemaps: one with the old URLs and one with the new. Over time, the count of indexed URLs in the old sitemap should fall towards zero as the new one rises, and warnings about the old URLs redirecting are expected. The sheet on migrations and redirects covers the rest.