How to fix "Sitemap couldn't fetch" in Google Search Console
Couldn't fetch means Google tried to download your sitemap file and did not get a readable copy. The usual causes are a wrong address, a redirect, a firewall that blocks Googlebot, or a server error, and all of them can be tested for free.
When you open the Sitemaps report in Search Console and see the status Couldn't fetch next to your sitemap, Google tried to download the file and did not get a usable copy. Your pages are not necessarily broken. Google just cannot read the list you gave it.
What you see
The report is usually under Indexing, then Sitemaps. Each submitted sitemap has a status such as Success, Has errors or Couldn't fetch. Clicking the row can show more detail. Related messages include Sitemap could not be read, General HTTP error and Sitemap is HTML.
One caution: right after you submit a new sitemap, the status can briefly read Couldn't fetch and then fix itself. If it is still there after a day or so, treat it as a real problem.
Why it matters
A sitemap is not required. Google can also find pages by following links. But for a new site, a large site, or a site with few links pointing to it, the sitemap is one of the main ways Google learns which pages exist.
The bigger worry is the cause. Often the same thing that stops Google fetching the sitemap (a firewall rule, a security plugin, a bad redirect, a server that times out) is also stopping it from crawling your real pages. If Google cannot reach your pages, customers cannot find them in search.
Common causes
- The sitemap address is wrong, or the file returns a 404 (not found).
- The address redirects somewhere else, for example from
httptohttpsor fromwwwto the bare domain, sometimes through several hops. - Your
robots.txtblocks the sitemap path. - A firewall, bot protection or security plugin returns a 403 or a challenge page to Googlebot.
- The server returns a 5xx error or is too slow, often under load.
- The URL shows a normal web page (HTML) instead of XML, for example a login page or a maintenance page.
- The file is too large: the limit is 50 MB uncompressed and 50,000 URLs per sitemap.
- The sitemap is submitted for the wrong property, such as the
httpversion when the site lives onhttps.
How to check, for free
- Open the sitemap address in a private browser window. You should see XML or a plain list of URLs, not a designed web page, a 404 or a login screen.
- Look at the address bar after it loads. If it changed, submit the final address instead.
- If you are comfortable with a terminal, run
curl -I https://example.com/sitemap.xml(use your own address). You want200and a content type containingxml. Then trycurl -I -A "Googlebot" https://example.com/sitemap.xml. A different answer, such as 403, points to a firewall or bot rule. This is only a hint, because some firewalls check Googlebot by IP address rather than by name. - Open
https://yourdomain.com/robots.txtand look for aDisallowline that covers the sitemap path. See robots.txt blocking your site if you find one. - In Search Console, paste the sitemap address into the URL Inspection bar and use Test live URL. If it gives a clear fetch error, that helps narrow the cause.
- Check the size. A very large file should be split into several sitemaps listed in a sitemap index.
- If you can reach your server logs or your host's support, ask whether Googlebot requests to the sitemap returned errors.
How to fix it
Match what you found to the likely fix:
| What you found | What to do |
|---|---|
| 404 | Find the real sitemap address and submit that one |
| Redirects | Submit the final address, and remove extra hops |
| Blocked in robots.txt | Remove the Disallow rule that covers the sitemap |
| 403 or challenge page | Allow Googlebot in the firewall, bot protection or security plugin (verify it by IP range or reverse DNS, not only by the user agent name, which can be faked) |
| 5xx or timeout | Fix the server error, or ask your host about capacity |
| HTML instead of XML | Turn off maintenance mode, login walls or a page that replaces the file |
| Too large | Split into several sitemaps with a sitemap index |
The exact steps depend on your platform:
- WordPress: WordPress itself serves
/wp-sitemap.xml. SEO plugins such as Yoast SEO and Rank Math serve/sitemap_index.xml. Make sure you submit the one your site actually uses, and check that a caching or security plugin is not blocking it. There is more in the WordPress guide. - Shopify and Wix: the sitemap is created for you at
/sitemap.xml. You cannot edit it, so submit that address and check your domain settings if it fails. - Next.js: the sitemap is usually generated by a
sitemapfile in your app, served at/sitemap.xml. Check that the route builds and works in production. - Cloudflare: look at the firewall events and bot settings for blocked requests to the sitemap. The Cloudflare guide covers it.
- Nginx or Apache: check rewrite rules and
.htaccessfor anything sending the sitemap path to your home page or an error page.
If you are not a developer, send your developer or host the exact sitemap address, the status Search Console shows, and the result of the checks above. That saves a lot of back and forth.
How to confirm the fix worked
- Load the sitemap address again in a private window and check that it shows XML with a 200 response.
- In Search Console, open Sitemaps. If an old or wrong entry is listed, remove it.
- Enter the correct sitemap path and press Submit.
- Check back after a few hours and again after a day or two. The status should change to
Success, and the discovered URLs count should be above zero.
If it still says Couldn't fetch after a couple of days and the file loads fine in a browser, go back to the firewall and server log checks. A block that only affects Googlebot is a common reason for this.
How to stop it coming back
- Keep one sitemap source. Two plugins or a plugin plus a hand-made file often conflict.
- Reference the sitemap in
robots.txtwith aSitemap:line so the address is easy to find. - After changing firewall, security or caching settings, test the sitemap address again.
- After a redesign, domain change or move to https, update the submitted sitemap.
- Keep an eye on the Sitemaps report. A quick look once a month catches problems early.
Week 41 of SiteMonday is a Search Console deep dive that looks at areas like this. You can read about it on the week 41 page. SiteMonday finds and explains the problem, and the fix is up to you or your developer.
Step by step for your platform
- Sitemap could not be fetched on WordPress
- Sitemap could not be fetched on Shopify
- Sitemap could not be fetched on Wix
- Sitemap could not be fetched on Next.js
- Sitemap could not be fetched on Cloudflare
- Sitemap could not be fetched on Nginx
- Sitemap could not be fetched on Apache
Questions
Why does Search Console say couldn't fetch when my sitemap opens in my browser?
Your browser and Googlebot are treated differently. A firewall, bot protection rule, redirect or server timeout can block or slow Googlebot while letting you through. Check your security settings and server logs.
How long does it take for the error to clear?
A new submission can show an error briefly, and a status usually updates within hours to a few days after the fix. If nothing changes after two days, recheck the file and your firewall.
Do I need a sitemap to be in Google?
No. Google can find pages through links. A sitemap helps most on new sites, large sites and sites with few links, so it is worth fixing but not an emergency by itself.
Should I delete and resubmit the sitemap?
Yes, if the address was wrong or has changed. Remove the old entry, add the correct path and submit again. If the file was fine and the cause was on the server, resubmitting after the fix is enough.
Can robots.txt cause this problem?
Yes. A `Disallow` rule covering the sitemap path stops Google fetching it. Open your `robots.txt` and check for rules that match the sitemap address.
What are the sitemap size limits?
One sitemap file can hold up to 50,000 URLs and be up to 50 MB uncompressed. Larger sites should split the list into several sitemaps and list them in a sitemap index.