Home / Articles

Article

How to Submit a Sitemap to Google (and If You Need One)

By Nick Quick, with the Be In GEO lab Published: Nov 7, 2026 Last checked: Nov 1, 2026

Be In GEO article card: "How to Submit a Sitemap to Google (and If You Need One)", with a search results page with the top result highlighted.

Short answer

You submit a sitemap to Google through the Sitemaps report in Search Console, or by adding one line to your robots.txt file that points to the sitemap (Google Search Central). If you’re on a CMS such as WordPress, Wix, or Blogger, it has likely already made a sitemap available to search engines and you may not have to do anything (Google Search Central). Either way, Google calls submitting a sitemap “merely a hint” (Google Search Central).

That’s the short version. The rest is what Google’s own docs say about who needs one, which format to pick, and the small rules that quietly break sitemaps.

What a sitemap actually is

A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them (Google Search Central). Search engines like Google read it to crawl your site more efficiently (Google Search Central). It tells them which pages and files you think are important, plus details such as when a page was last updated and any alternate language versions (Google Search Central).

Our read: it’s a list you hand the crawler. A suggestion with good handwriting, nothing more.

Note

Note: A sitemap helps search engines discover URLs, but it doesn’t guarantee that everything in it will be crawled and indexed (Google Search Central).

Do you need one?

If your pages are properly linked, Google can usually discover most of your site (Google Search Central). Even so, Google says that in most cases your site will benefit from having a sitemap (Google Search Central).

You might need a sitemap if:

  • Your site is large, since on large sites it’s harder to make sure every page is linked by at least one other page (Google Search Central).
  • Your site is new and has few external links to it (Google Search Central).
  • Your site has a lot of rich media content (video, images) or is shown in Google News (Google Search Central).

You might not need one if:

  • Your site is “small”, which Google defines as about 500 pages or fewer, counting only pages you think need to be in search results (Google Search Central).
  • Googlebot can find all your important pages by following links starting from the home page (Google Search Central).
  • You don’t have many media files or news pages you want shown in search results (Google Search Central).

Our read: if you’re on a CMS, check whether a sitemap already exists before building anything. It takes two minutes and saves you from making a duplicate.

Pick a format

Google supports the formats defined by the sitemaps protocol and says it doesn’t have a preference (Google Search Central).

FormatWhat it can carryUpsideDownside
XMLExtra data about images, video, news, and localized versions of pages (Google Search Central)Most CMSs generate it, or there are plenty of plugins (Google Search Central)Can be complex to maintain on larger sites or sites where URLs change often (Google Search Central)
RSS, mRSS, Atom 1.0Pages plus videos, but not images or news (Google Search Central)Most CMSes automatically generate RSS and Atom feeds (Google Search Central)A feed only provides information on recent URLs (Google Search Central)
TextOnly URLs to HTML and other indexable pages (Google Search Central)Simple to do and maintain, especially on large sites (Google Search Central)Limited to HTML and other indexable text content (Google Search Central)

A text sitemap is just a file with one URL per line (Google Search Central). Don’t put anything other than URLs in it (Google Search Central).

The minimal XML sitemap

Here’s Google’s very basic example, a sitemap that includes the location of a single URL (Google Search Central):

Text
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/foo.html</loc>
    <lastmod>2022-06-04</lastmod>
  </url>
</urlset>

What Google does with the common tags:

TagWhat Google says
<loc>The location of the URL, as in the example above (Google Search Central)
<lastmod>Used if it’s consistently and verifiably accurate (Google Search Central)
<priority>Ignored (Google Search Central)
<changefreq>Ignored (Google Search Central)

The <lastmod> value should reflect the last significant update to the page (Google Search Central). Changes to the main content, the structured data, or links on the page generally count, but a copyright date change does not (Google Search Central).

Watch out

Watch out (our read): if your setup stamps every page with today’s date on every rebuild, that date stops being verifiably accurate, and Google has told you it only uses accurate ones.

The rules that trip people up

SizeA single sitemap is limited to 50MB (uncompressed) or 50,000 URLs (Google Search Central). Bigger than that and you must split it into multiple sitemaps (Google Search Central). You can optionally create a sitemap index file and submit that single file instead (Google Search Central).
EncodingThe file must be UTF-8 encoded (Google Search Central).
LocationUnless you submit through Search Console, a sitemap affects only descendants of its parent directory (Google Search Central). Google recommends posting sitemaps at the site root, where they can affect all files on the site (Google Search Central).
Absolute URLsUse fully-qualified, absolute URLs, because Google will attempt to crawl them exactly as listed (Google Search Central). So https://www.example.com/mypage.html, not /mypage.html (Google Search Central).
Canonical URLs onlyInclude the URLs you want to see in Google’s search results (Google Search Central). If the same content lives at several URLs, pick the one you prefer and list only that (Google Search Central).
Mobile and desktopIf you have separate URLs for each, Google recommends pointing to only one version (Google Search Central). If you want to list both, annotate them to show which is desktop and which is mobile (Google Search Central).
OrderIt doesn’t matter to Google (Google Search Central). (One less thing.)

How to submit a sitemap to Google

  1. Find or make your sitemap. On a CMS, search how yours handles it, for example “wix sitemap” or “Blogger RSS” (Google Search Central). With less than a few dozen URLs you can write one by hand in a text editor (Google Search Central). Beyond that, Google says the best way is to have your website software generate it (Google Search Central).
  2. Submit it in Search Console. Open the Sitemaps report and submit your sitemap URL (Google Search Central). Our read: this assumes you already have a verified Search Console property, which is its own topic.
  3. Check back. The Sitemaps report shows when Googlebot accessed the sitemap and any processing errors (Google Search Central).
  4. Add it to robots.txt too (optional). Insert this line anywhere in the file, with your own path, and Google will find it the next time it crawls your robots.txt (Google Search Central):
Text
Sitemap: https://example.com/my_sitemap.xml

You can list multiple sitemap lines, and there’s no limit on how many (Google Search Central). There’s also a Search Console API for submitting programmatically (Google Search Central), and if you use Atom or RSS you can use WebSub to broadcast changes to search engines, including Google (Google Search Central).

Watch out

The catch: submitting doesn’t guarantee Google will download the sitemap or use it for crawling (Google Search Central). If something looks off, Search Console is where you investigate the errors (Google Search Central).

Where this fits with AI answers

Our read: these docs are about Google Search crawling. They say nothing about AI answer engines, so we won’t pretend a sitemap gets you cited anywhere. It’s plumbing for discovery, and that’s the part of visibility Be In GEO starts from (more on how Be In GEO works).

Key takeaway

What to do next

  1. Check whether your CMS already publishes a sitemap (Google Search Central).
  2. Use Google’s criteria above to decide if you need more than that (Google Search Central).
  3. Make sure every listed URL is absolute and canonical (Google Search Central).
  4. Submit it in the Search Console Sitemaps report and add the robots.txt line (Google Search Central).
  5. Come back later and check the report for processing errors (Google Search Central).

Get the worksheet

Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.

Sources