Learning how to submit a sitemap to Google is the step that turns a file sitting on your server into something search engines actively notice. Building the sitemap is half the job; telling Google where it lives is the other half. This guide walks through the current, correct way to do it, what each status message really means, and how to do the same for Bing.

Before You Submit, Check Three Things

A sitemap submission only works if the file itself is solid. Before you touch Search Console, confirm these basics:

  • It is live at a public URL. The file must load in a browser at an address like https://www.example.com/sitemap.xml with no login required.
  • It is valid XML. A single broken tag can stop the whole file from being read.
  • It lists canonical URLs only. Include the exact, final URLs you want indexed, not redirects, parameter variants, or duplicate paths.

If you have not built the file yet, start with our guide on how to create a sitemap. When the URLs are ready, our Sitemap Generator formats the addresses you provide into clean XML right in your browser, with no upload and no signup.

Submit in Google Search Console

Google Search Console is the official place to submit. You will need a verified property for the site first. Once that is in place:

  1. Open Search Console and select the correct property.
  2. In the left menu, click Sitemaps (under the Indexing group).
  3. In the "Add a new sitemap" box, enter the path after your domain, for example sitemap.xml.
  4. Click Submit.

That is the whole flow. Google stores the location and will fetch the file on its own schedule from then on. You do not need to resubmit every time the file changes, though you can if you want a fresh read.

One honest caveat: submitting a sitemap helps Google discover your URLs. It does not guarantee any of them get indexed. Indexing depends on content quality, crawl budget, and Google's own judgment.

Add a Sitemap Line to robots.txt

You can also point crawlers to your sitemap from robots.txt. A single line does it:

Sitemap: https://www.example.com/sitemap.xml

Place that line anywhere in the file, on its own. Any crawler that reads robots.txt, including Google, Bing, and others, can discover the sitemap automatically.

This is a nice belt-and-suspenders move, especially for search engines where you have not set up a webmaster account. But treat it as a complement, not a replacement. The robots.txt line aids discovery; Search Console gives you the status reports and error details that the line alone cannot.

The Old Ping URL Is Gone

If you find an older tutorial telling you to "ping" Google by visiting a URL like google.com/ping?sitemap=..., ignore it. Google retired that unauthenticated sitemap ping endpoint in 2023, and it no longer does anything useful.

The correct, current methods are the two above:

  • Submit through Search Console for full reporting.
  • List the sitemap in robots.txt for automatic discovery.

Do not build any automation around the old ping endpoint. It is a dead step, and relying on it just gives you a false sense that something happened.

Read the Sitemap Status Correctly

After you submit, Search Console shows a status for the sitemap. Reading it correctly saves a lot of confusion:

  • Success means Google read the file without errors. It does not mean every URL is indexed. It only confirms the sitemap itself was parsed.
  • Couldn't fetch means Google could not retrieve the file at all. This is usually a path, server, or access problem.
  • Has errors means the file was reached but contains issues, such as invalid tags or URLs that do not belong to the property.

You will also see a "discovered URLs" count, which is how many addresses Google pulled from the file. Compare that to how many pages you expected. A much lower number is a sign that the file is incomplete or partly malformed. Remember that discovered is not the same as indexed; it is just the count Google read from the sitemap.

Submit to Bing as Well

Bing Webmaster Tools works almost the same way, and there is no reason to skip it. After verifying your site there, open the Sitemaps section and submit the same sitemap.xml URL.

A couple of conveniences worth knowing:

  • Bing lets you import sites and data directly from Google Search Console, which can save setup time.
  • Bing supports IndexNow, a protocol for pinging participating engines when content changes. It is a separate mechanism from sitemaps, but it can speed up discovery of new or updated pages. Support and behavior can change, so check the current docs before leaning on it.

The same honesty applies: Bing submission aids discovery and does not promise indexing.

Troubleshooting "Couldn't Fetch"

"Couldn't fetch" is the most common headache, and it almost always traces back to one of a few causes:

  • Wrong path. You submitted sitemap.xml but the file lives at a different location, or you typed the full URL where only the path was expected.
  • Blocked by robots.txt. A Disallow rule is preventing the crawler from reaching the file.
  • Non-200 response. The URL returns a 404, 403, or 500 instead of a clean 200 OK. Open the URL in a private browser window to confirm it loads.
  • Redirect. The sitemap URL redirects elsewhere. Submit the final destination URL directly instead.

Fix the underlying cause, then click into the sitemap in Search Console and resubmit so Google retries the fetch.

FAQ

Does submitting a sitemap get my pages indexed? No. A sitemap helps search engines discover your URLs faster, but indexing is a separate decision based on content quality and crawl priorities. Many discovered URLs may stay unindexed.

Do I need to resubmit my sitemap after every change? No. Once submitted, Google refetches the file on its own schedule. You only need to resubmit if you want to prompt an immediate re-read, or if the file's location changes.

Can I skip Search Console and just use robots.txt? You can list the sitemap in robots.txt for automatic discovery, but you will miss the status and error reports that Search Console provides. Using both is the stronger approach.

Is the old Google ping URL still valid? No. Google retired the unauthenticated sitemap ping endpoint in 2023. Submit through Search Console or rely on the robots.txt Sitemap line instead.

Build Your Sitemap, Then Submit It

A clean, valid sitemap makes every step above easier. If you still need one, build it with our Sitemap Generator. It turns the URLs you paste in into properly formatted XML, entirely in your browser, with no upload and no signup, so you can submit to Google and Bing with confidence.