How to Submit a Sitemap to Google: Search Console, robots.txt, and Ping

Learn how to submit your XML sitemap to Google using Search Console, robots.txt, and the ping method. Includes troubleshooting and monitoring tips.

Last updated: 2026-02-17

Why Submit a Sitemap to Google?

Google discovers pages by crawling links across the web. A sitemap accelerates that process by handing Google a complete list of URLs you want indexed.

You do not strictly need to submit a sitemap -- Google will eventually find your sitemap if it is referenced in your robots.txt file. But explicit submission through Google Search Console gives you two advantages: faster discovery and diagnostic data about how Google processes your URLs.

This guide covers every submission method, from the Search Console interface to robots.txt directives and the legacy ping endpoint.

Method 1: Google Search Console (Recommended)

Google Search Console (GSC) is the primary tool for sitemap submission. It provides the fastest feedback and the most detailed reporting.

Setting Up Google Search Console

If you have not already verified your site in GSC, you will need to do that first.

1

Go to Google Search Console

Navigate to search.google.com/search-console and sign in with your Google account.

2

Add a property

Click "Add property" and choose either a Domain property (covers all subdomains and protocols) or a URL-prefix property (covers a specific URL path). Domain properties require DNS verification. URL-prefix properties can be verified via HTML file, meta tag, Google Analytics, or Google Tag Manager.

3

Verify ownership

Follow the verification method you chose. DNS verification involves adding a TXT record to your domain's DNS settings. HTML file verification involves uploading a file to your site's root directory. Verification typically takes a few minutes.

4

Wait for data

After verification, GSC begins collecting data about your site. It may take a few days for initial data to appear, but you can submit your sitemap immediately.

Submitting Your Sitemap via GSC

Once your property is verified, submitting a sitemap takes about 30 seconds.

1

Open the Sitemaps report

In the left sidebar of Google Search Console, click "Sitemaps" under the "Indexing" section.

2

Enter your sitemap URL

In the "Add a new sitemap" field, enter the path to your sitemap. If your sitemap is at the root, just type sitemap.xml. If it is a sitemap index file, enter that path instead.

3

Click Submit

Google will fetch your sitemap and begin processing it. The status will initially show as "Pending."

4

Check the status

After processing (usually within minutes to hours), the status will update to "Success" or show an error. The report will display the number of discovered URLs and any issues found.

You can submit multiple sitemaps to the same property. If you use a sitemap index file, you only need to submit the index -- Google will automatically discover and process all referenced sitemaps.

What the GSC Sitemaps Report Shows

After submission, the Sitemaps report provides:

  • Status -- Whether Google successfully fetched and parsed your sitemap.
  • URL count -- The number of URLs discovered in the sitemap.
  • Last read date -- When Google last fetched your sitemap.
  • Issues -- Any errors encountered during processing.

This report is your primary feedback loop. If something is wrong with your sitemap, this is where you will see it.

Method 2: robots.txt Directive

You can declare your sitemap location in your robots.txt file. This method does not provide the diagnostic data of GSC, but it ensures any crawler that reads your robots.txt will know where to find your sitemap.

Add this line to your robots.txt file:

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

Rules for the robots.txt sitemap directive:

  • The URL must be absolute (full URL including protocol and domain).
  • The Sitemap: directive is case-insensitive but conventionally capitalized.
  • You can list multiple sitemaps by adding multiple Sitemap: lines.
  • The directive can be placed anywhere in the file -- it does not need to be inside a User-agent block.
User-agent: *
Disallow: /admin/
Disallow: /private/

Sitemap: https://example.com/sitemap.xml
Sitemap: https://example.com/sitemap-news.xml

Use both methods -- submit via GSC and declare in robots.txt. GSC gives you reporting. robots.txt ensures all search engines (not just Google) can find your sitemap.

Method 3: Ping Method

Google previously supported a ping URL that notified them of sitemap updates:

https://www.google.com/ping?sitemap=https://example.com/sitemap.xml

Google deprecated the standalone ping endpoint in 2023. While the Sitemap Protocol still mentions it, Google now recommends using Search Console or robots.txt for sitemap submission. Bing still supports ping via their Webmaster Tools API.

The Search Console API offers a programmatic alternative for automated submission. If you need to notify Google of sitemap changes programmatically, use the Search Console API's sitemaps endpoint.

Automate Sitemap Monitoring

Site Watcher tracks your sitemap status, URL counts, and errors automatically -- so you know the moment something breaks.

Verifying Indexing After Submission

Submitting a sitemap does not guarantee indexing. You need to verify that Google is actually indexing the URLs from your sitemap.

Index Coverage Report

In Google Search Console, the "Pages" report (formerly "Index Coverage") shows the indexing status of all discovered URLs. After sitemap submission, check this report for:

Indexed pages

URLs that Google has crawled and added to its index. These can appear in search results.

Crawled but not indexed

Google found the page but decided not to index it. This could indicate thin content, duplicate content, or quality issues.

Discovered but not crawled

Google knows the URL exists (from your sitemap) but has not yet crawled it. This is normal for new sitemaps and typically resolves within days.

Excluded pages

URLs excluded from indexing for specific reasons -- noindex tags, canonicalization, redirects, or crawl errors.

URL Inspection Tool

For individual URLs, use the URL Inspection tool in GSC. Enter any URL from your sitemap to see:

  • Whether it is indexed
  • The canonical URL Google selected
  • When it was last crawled
  • Any issues preventing indexing
  • The rendered HTML as Googlebot sees it

This tool is invaluable for debugging individual pages that are not being indexed despite being in your sitemap.

Troubleshooting Submission Errors

When Google encounters problems with your sitemap, the Sitemaps report will show an error status. Here are the most common issues and how to fix them.

"Couldn't fetch" Error

Google could not download your sitemap file.

Causes:

  • The sitemap URL returns a 404, 403, or 500 status code.
  • The server is blocking Googlebot via firewall rules or IP restrictions.
  • The sitemap is behind authentication.

Fix: Verify the sitemap URL loads correctly in a browser. Check your server logs for Googlebot requests. Ensure no firewall or CDN rules block Google's crawlers.

"Sitemap is HTML" Error

Google expected XML but received an HTML page.

Causes:

  • The URL points to an HTML page instead of an XML sitemap.
  • A redirect sends the sitemap URL to an HTML page (like a custom 404 page).
  • The server returns the wrong Content-Type header.

Fix: Verify the sitemap URL returns proper XML with Content-Type: application/xml or text/xml.

URL Errors Within the Sitemap

Even when the sitemap itself is valid, individual URLs within it can have issues:

ErrorMeaningFix
URL not found (404)The page does not existRemove the URL from your sitemap
URL blocked by robots.txtrobots.txt prevents crawlingEither unblock the URL or remove it from the sitemap
URL marked noindexThe page has a noindex tagEither remove noindex or remove from sitemap
RedirectURL redirects to another pageReplace with the final destination URL
Soft 404Page returns 200 but looks like a 404Fix the page content or return a proper 404

Processing Delays

A newly submitted sitemap may take anywhere from a few hours to several days to be fully processed. This is normal behavior, not an error.

Factors that affect processing speed:

  • Site authority -- Established sites with frequent crawling get processed faster.
  • Sitemap size -- Larger sitemaps take longer to process.
  • Server speed -- If Google encounters slow response times while verifying URLs, processing takes longer.
  • Crawl budget -- Sites with limited crawl budget may see slower processing.

Monitoring Index Coverage Over Time

Sitemap submission is not a one-time task. You need to monitor how Google processes your sitemap over time.

Weekly checks to perform:

  1. Review the Sitemaps report in GSC for any new errors.
  2. Check the Pages report for changes in indexed vs. excluded URLs.
  3. Look for unexpected drops in the number of indexed pages.
  4. Verify that newly published content appears in your sitemap and gets indexed.

Signs of problems:

  • A sudden drop in the number of indexed URLs from your sitemap.
  • An increasing number of "Crawled -- currently not indexed" URLs.
  • Sitemap status changing from "Success" to an error state.
  • Large discrepancy between URLs submitted and URLs indexed.

If the number of indexed URLs from your sitemap drops significantly, investigate immediately. This could indicate a site-wide issue like accidental noindex tags, server errors, or a misconfigured sitemap update.

Submitting to Other Search Engines

Google is not the only search engine that accepts sitemap submissions.

Bing Webmaster Tools offers a similar interface for sitemap submission. Verify your site, then submit your sitemap through the Sitemaps section. Bing also supports the IndexNow protocol for real-time URL submission.

Yandex Webmaster accepts sitemaps for the Russian search engine. The submission process mirrors GSC.

Other engines (DuckDuckGo, Baidu) typically discover sitemaps through robots.txt or by sourcing data from Bing's index.

For maximum coverage, submit to Google Search Console and Bing Webmaster Tools, and declare your sitemap in robots.txt. This covers all major search engines.

Submitting your sitemap is the easy part -- monitoring its index coverage over time is what keeps your search presence healthy.

Monitor Sitemap Health Around the Clock

Site Watcher tracks your sitemap, SSL certificates, DNS records, and uptime from one dashboard. Free for up to 3 targets. Unlimited monitoring for $39/mo.