How to submit a sitemap to Google Search Console
Submitting a sitemap takes a minute: find its URL, paste it into Search Console, and read the status. This guide covers each step, what the statuses mean, and how to fix a sitemap Google can't read.
Before you submit
Find your sitemap's URL. Most platforms create one for you:
| Platform | Usual sitemap URL |
|---|---|
| WordPress (built in) | /wp-sitemap.xml |
| WordPress with Yoast or Rank Math | /sitemap_index.xml |
| Shopify | /sitemap.xml |
| Wix, Squarespace, Webflow | /sitemap.xml |
If you're not sure, look it up instead of guessing:
The guide to finding a sitemap covers the less obvious places. If your site has no sitemap at all, the XML Sitemap Generator crawls it and builds one ready to upload to your site's root.
Check it's worth submitting. A sitemap should list only the URLs you want in search: pages that return 200, aren't redirects, aren't noindex and are their own canonical. Pull the URLs out with the Sitemap URL Extractor and run them through the Indexability Checker. Google's limits are 50,000 URLs and 50 MB (uncompressed) per sitemap file; bigger sites split their URLs into several sitemaps listed in a sitemap index.
Verify the site in Search Console. You can only submit sitemaps for a property you own. A Domain property covers every subdomain and protocol; a URL-prefix property only covers URLs under that exact prefix, so the sitemap must sit within it.
Submit it in Search Console
- Open Google Search Console and pick the property.
- In the left menu, go to Indexing → Sitemaps.
- Under Add a new sitemap, enter the sitemap's path, such as
sitemap.xml, or the full URL for a Domain property. - Click Submit.
If you use a sitemap index, submit just the index. Google reads the sitemaps listed in it, and each appears in the report.
What the status means
| Status | Meaning | What to do |
|---|---|---|
| Success | Google fetched and read the sitemap. | Nothing. Check "Discovered pages" looks right. |
| Has errors | Google read it, but some entries or parts couldn't be used. | Open the sitemap in the report to see each error and fix it at the source. |
| Couldn't fetch | Google couldn't download the file. | See below. |
"Success" means the file was read, not that every URL in it will be indexed. A sitemap is a hint about which URLs exist and matter; Google still decides what to crawl and index.
Fixing "Couldn't fetch"
Work through these in order:
- Open the exact URL you submitted in a private browser window. A typo, a missing
www, orhttpinstead ofhttpsis the most common cause. - Check the status code. It must return
200directly. Paste it into the Bulk HTTP Status Code Checker; a redirect,403or404shows up there. - Check robots.txt doesn't block it. Test the sitemap URL in the Robots.txt Tester.
- Check it's really XML. Some setups return an HTML page, a login screen or a JavaScript-rendered page at the sitemap URL. The Sitemap URL Extractor reports when a file isn't a valid sitemap.
- Check firewalls and bot protection. Security plugins, Cloudflare rules and hosting firewalls sometimes block Googlebot. Allow verified Googlebot traffic.
- Resubmit. If everything above passes and the status doesn't change, wait a few days. A newly submitted sitemap can show "Couldn't fetch" until Google's first fetch has happened.
Other ways to tell search engines
robots.txt. Add a Sitemap line with the full URL. Google and Bing both read it, and it works for crawlers where you have no account:
Sitemap: https://www.example.com/sitemap.xml
The Search Console API can submit sitemaps from code, which suits sites that publish many sitemaps.
Bing. Submit the sitemap in Bing Webmaster Tools under Sitemaps, or import your sites and sitemaps from Google Search Console when you sign up. Bing also supports IndexNow, a protocol for notifying search engines about changed URLs as they happen.
Ping URLs no longer work. Google retired its sitemap ping endpoint in 2023, and requests to it now return a 404. Old plugins and scripts that still ping do nothing; use Search Console, the API or robots.txt instead.
After submitting
- Watch the Page indexing report, filtered to the sitemap, to see which submitted URLs are indexed and the reasons the rest aren't. Guides to each reason: Crawled – currently not indexed, Discovered – currently not indexed and Page with redirect.
- Keep
lastmodhonest. Google uses it when it's consistently accurate, meaning the date of the last meaningful change to the page. Google ignorespriorityandchangefreq. - No need to resubmit each time the sitemap changes. Google refetches known sitemaps on its own; resubmitting is only useful after fixing an error.
Questions
How long does Google take to read a submitted sitemap?
Often within a day or two, though it can take longer. Indexing the URLs it lists takes longer still, from days to weeks, depending on the site and the pages.
How do I submit a sitemap in WordPress?
WordPress already has one at /wp-sitemap.xml, or /sitemap_index.xml if Yoast or Rank Math is active. Copy that URL into Search Console's Sitemaps report. The plugins don't submit it to Google for you.
How do I submit a sitemap to Bing?
Sign in to Bing Webmaster Tools, add or import your site, open Sitemaps and submit the URL. A Sitemap line in robots.txt also lets Bing find it.
Do I need a sitemap at all?
Small sites with good internal links are usually found without one. Sitemaps help most for large sites, new sites with few links pointing to them, and pages that are hard to reach by following links. Submitting one costs nothing.