What is a sitemap, and how does it help Google discover pages?

A sitemap is a file listing a site’s pages and other files so search engines can crawl it more efficiently. Google says it helps discovery but does not guarantee that listed items will be crawled or indexed.

Verified against the sources on 2026-11-07. Labels: Proven means the primary source we opened states it. Practice means widely used practice or secondary reporting that the primary source does not confirm. Experimental means a proposal or draft.

What is a sitemap and when might you need one?

  • Proven Google describes a sitemap as a file that provides information about the pages, videos and other files on a site and how they relate, which search engines read to crawl more efficiently.
  • Proven It lists three cases where a sitemap may be useful: a large site, a new site with few external links, and a site with substantial video, image or Google News content.
  • Proven For a small site, about 500 pages or fewer, Google says you might not need one. The page lists further conditions, such as comprehensive internal linking and few media or news pages, so check them rather than treating 500 pages as a rule.
  • Proven Platforms such as WordPress, Wix and Blogger likely already provide a sitemap to search engines.
  • Proven A sitemap helps search engines crawl a site more efficiently but does not guarantee that listed items will be crawled or indexed.

Which formats and limits apply?

  • Proven Google supports XML, RSS 2.0/mRSS/Atom 1.0 feeds, and plain text with one URL per line, and says it has no preference among them.
  • Proven Each sitemap is limited to 50MB uncompressed or 50,000 URLs. Larger sites should split sitemaps and may use a sitemap index file.
  • Proven The file must be UTF-8. URLs should be fully qualified and absolute, and should be the canonical URLs you want shown in results. For how canonicals are chosen, see how Google chooses a canonical URL.
  • Proven Unless submitted through Search Console, a sitemap affects only URLs under its parent directory, so the site root is recommended.

Which XML fields does Google use?

  • Proven Google ignores priority and changefreq values.
  • Proven Google uses lastmod only if it is consistently and verifiably accurate. Main content, structured data or link changes count as significant; a copyright-year change does not.

How do you submit a sitemap?

  • Proven Use the Search Console Sitemaps report, which shows when Googlebot accessed the sitemap and any processing errors.
  • Proven Use the Search Console API.
  • Proven Add a Sitemap: line to robots.txt. It can appear anywhere in the file, can be repeated, and the page states no limit on how many sitemaps you list. RFC 9309 treats such lines as optional records a crawler may interpret; see what RFC 9309 standardises.
  • Proven For RSS or Atom feeds, WebSub can broadcast changes to search engines.
  • Proven The page says submitting a sitemap is merely a hint and does not guarantee that Google will download it or use it for crawling.

For more on how search and AI systems find content, start at the learning hub.

What we could not verify

  • It covers Google Search only; it does not describe other engines’ sitemap handling.
  • It does not cover the image, video and news sitemap extensions in detail, or multi-site cross-submission.
  • Google’s build-a-sitemap page does not say how a sitemap that returns an error is handled; it points to Search Console errors help. Its notification method is WebSub; we did not verify any other ping method.

Last reviewed on 2026-11-07.

Frequently asked questions

Can I list more than one sitemap in robots.txt?

Yes. Google says the Sitemap line can appear anywhere in the robots.txt file, can be repeated, and that there is no stated limit on the number of sitemaps you list.

Does Google care when a page was last modified in my sitemap?

Only if the lastmod value is consistently and verifiably accurate. Google counts changes to main content, structured data or links as significant, not trivial edits such as a copyright year.

Where should I put my sitemap file?

At the site root. Google says a sitemap affects only URLs in its own directory and below, unless you submit it through Search Console.

Does a sitemap get my pages indexed?

Not by itself. Google says a sitemap helps search engines crawl more efficiently but does not guarantee crawling or indexing, and calls submitting one merely a hint.

Sources

  1. Learn about sitemaps (Google Search Central), read 2026-11-07
  2. Build and submit a sitemap (Google Search Central)
  3. RFC 9309: Robots Exclusion Protocol (other records, section 2.2.4)

Related guides