Indexing deep-dives

How to Submit a Sitemap to Google (and Why It Matters)

May 11, 2026 · 6 min read

The short answer

To submit a sitemap to Google, generate an XML file that lists your URLs, host it at a path like /sitemap.xml, and add that path in the Sitemaps report in Google Search Console. A sitemap helps Google discover your pages, but it does not guarantee indexing, so pair it with direct URL submission for new or important pages.

To submit a sitemap to Google, generate an XML sitemap that lists your URLs, host it on your site (commonly at /sitemap.xml), then open the Sitemaps report in Google Search Console and enter that path. A sitemap is a file that hands Google a clean list of the pages you want crawled, which speeds up discovery on large or new sites. It does not force indexing, though, so for pages you care about you can also submit your URLs to Google for free with URL Indexer to send a direct indexing request alongside the sitemap. This guide covers generating a sitemap, submitting it in Search Console, fixing the errors that show up most, and combining both methods.

What does a sitemap actually do?

A sitemap tells Google which URLs exist on your site and which ones you consider worth crawling. It is a discovery aid, not an indexing command. Google reads the sitemap, adds the listed URLs to its crawl queue, and decides on its own whether to crawl and then index each one. A sitemap is most useful on large sites, sites with poor internal linking, new sites with little external link equity, and sites with pages that are hard to reach by following links.

Crawling, rendering, and indexing are separate steps. A sitemap influences the first step (discovery) by surfacing URLs Google might otherwise miss. It has no power over the later steps, so a listed URL can still go uncrawled or unindexed if the page is thin, blocked, or marked noindex.

How do I generate an XML sitemap?

Most sites already have a sitemap generated automatically, so check for one before building anything by hand. Open yourdomain.com/sitemap.xml and yourdomain.com/sitemap_index.xml in a browser. If either loads a list of URLs, you already have a sitemap and can skip straight to submitting it.

  • WordPress generates a sitemap by default at /wp-sitemap.xml, and SEO plugins like Yoast or Rank Math produce one too (often /sitemap_index.xml).
  • Shopify automatically creates a sitemap at /sitemap.xml that updates as you add products and pages.
  • Static-site frameworks such as Next.js, Astro, and Hugo can generate a sitemap at build time, usually with a config option or a small plugin.
  • If your platform has none, an online sitemap generator or a crawler tool can produce an XML file you upload to your site root.

A valid sitemap lists each URL inside a <url><loc> tag, uses absolute URLs, and includes only canonical, indexable pages. Keep out anything you do not want indexed: redirects, error pages, noindex pages, and duplicate URLs. A single sitemap can hold up to 50,000 URLs or 50 MB uncompressed; past that, split into multiple sitemaps and reference them from a sitemap index file.

How do I submit a sitemap in Google Search Console?

Submit a sitemap by opening the Sitemaps report in Google Search Console, entering the sitemap path, and clicking Submit. You need a verified Search Console property for the site first, since Search Console only works on properties you own. The full path takes only a minute once the property is verified.

  1. 1Sign in to Google Search Console and select the property for your site.
  2. 2In the left menu, under Indexing, click Sitemaps.
  3. 3In the Add a new sitemap field, type the path after your domain, for example sitemap.xml.
  4. 4Click Submit, then refresh the report to confirm the status reads Success.
  5. 5Check the Discovered URLs count and confirm it matches roughly how many pages you expect.

You do not need to resubmit a sitemap every time you publish a page. Google rechecks submitted sitemaps periodically. You can also reference your sitemap from robots.txt with a line like Sitemap: https://yourdomain.com/sitemap.xml, which lets other search engines find it too.

How do I fix common sitemap errors?

Most sitemap errors in Search Console come from the sitemap listing URLs Google cannot or should not index, or from a file Google cannot read. The Sitemaps report flags the issue, and the fix is usually to clean the file or fix the underlying page.

Common sitemap statuses in Google Search Console and how to resolve them.
Error or statusWhat it meansHow to fix it
Couldn't fetchGoogle could not retrieve the sitemap file at the path you gave.Confirm the URL loads in a browser, returns a 200 status, and is not blocked by robots.txt.
Sitemap is HTMLThe path returned a web page instead of an XML file.Point to the real XML file, not an HTML sitemap page meant for visitors.
URLs not accessibleListed URLs return 404, 403, or 500 errors.Remove dead URLs from the sitemap and fix or redirect broken pages.
Submitted URL marked noindexA sitemap URL carries a noindex tag, contradicting its inclusion.Either remove the noindex tag or drop the URL from the sitemap.
Submitted URL blocked by robots.txtrobots.txt disallows crawling of a URL you listed.Unblock the path in robots.txt or remove the URL from the sitemap.

The recurring theme is consistency. Your sitemap should list only canonical, crawlable, indexable URLs. Mixing in noindex pages, robots-blocked paths, or non-canonical duplicates sends Google conflicting signals and clutters the report with warnings that hide real problems.

Why isn't my sitemap getting pages indexed?

A sitemap on its own often will not get pages indexed because it only helps discovery, not the decision to index. If your pages are discovered but still excluded, the cause is usually downstream: thin or duplicate content, a noindex tag, a robots.txt block, a non-canonical URL, or simply pages Google has not prioritized yet. Check the Pages report in Search Console to see the exact reason each URL was left out, and work through it from there. For the wider list of causes, see why a page is not indexed.

There is also a timing gap. Google crawls submitted sitemaps on its own schedule, which can lag behind when you publish. That gap matters most for new pages and fresh backlinks you want found quickly, and a sitemap alone does little to close it.

How do I pair a sitemap with direct URL submission?

Pair a sitemap with direct URL submission by keeping the sitemap as your standing map of the whole site and using direct submission to push specific new or important URLs to the front. The sitemap covers breadth: it ensures every page is discoverable over time. Direct submission covers speed: it sends a fresh indexing request for the handful of URLs you want crawled now, rather than whenever Google next rechecks the sitemap.

URL Indexer handles the direct-submission side. You paste the URLs and an email address, and URL Indexer sends standard indexing-request signals to Google, then tracks which URLs get picked up on a live per-batch status page. The free tier covers up to 10 URLs per day with no signup, no credit card, and no Search Console access. Because it needs no Search Console access, it can also submit URLs on sites you do not own, including third-party backlinks that a sitemap and Search Console can never reach. To do this in volume, see how to bulk index URLs.

Be clear on the limits of both methods. Neither a sitemap nor a direct submission forces Google to index a page; both send signals, and Google decides. Crawlers often visit submitted URLs within a few days, though confirmed indexing can take from a few days to a couple of weeks. Indexing is also not the same as ranking, so getting a page into the index is the start, not the finish line.

Frequently asked questions

Where do I submit a sitemap to Google?

Submit a sitemap in Google Search Console under Indexing then Sitemaps. Enter the sitemap path after your domain, such as sitemap.xml, and click Submit. You need a verified Search Console property for the site first.

Does submitting a sitemap guarantee Google will index my pages?

No. A sitemap helps Google discover your URLs, but it does not guarantee indexing. Google still decides whether to crawl and index each page based on its quality and crawlability, so pair the sitemap with direct URL submission for pages that matter.

How often should I resubmit my sitemap?

You usually do not need to resubmit a sitemap manually after the first time. Google rechecks submitted sitemaps periodically and picks up new URLs automatically, as long as your sitemap updates when you publish new pages.

What should I include in my sitemap?

Include only canonical, indexable URLs that return a 200 status. Leave out redirects, error pages, noindex pages, robots-blocked paths, and duplicate URLs, since mixing those in creates errors and sends Google conflicting signals.

Can I get pages indexed without a sitemap?

Yes. A sitemap is a discovery aid, not a requirement. Google can find pages through internal and external links, and you can also submit URLs directly with URL Indexer, which requests indexing without any Search Console access or sitemap.