Skip to main content
Faviqo

Guides · Updated 2026-12-04

Favicon not showing or not updating: nine fixes

You added a favicon, reloaded the page, and the tab shows a blank globe, the old icon, or your hosting provider's default. Favicon problems are famously frustrating because browsers cache icons far more aggressively than they cache pages, so a fix that works can still look like it failed.

Work through the causes below in order. They are sorted from the most common to the most unusual, and each one says how to confirm it before you change anything.

1. The browser is showing a cached icon

Browsers store favicons in a separate cache from the normal page cache, and that cache is kept for a long time. A hard reload with Ctrl+Shift+R does not always clear it. If you have changed the file and the tab still shows the old one, the cache is the first suspect.

To confirm, open the site in a private or incognito window, or in a different browser you have never used for the site. If the new icon appears there, your original browser is serving a stale copy. Clearing the browsing data for the site, or closing and reopening the browser, usually fixes it. Visiting the icon's URL directly and refreshing it can also force an update.

2. The file name or path is wrong

A typo, a different extension, or a folder that moved is behind a large share of missing favicons. Copy the href from your link tag and paste it after your domain in the address bar. You should see the image itself. If you see a 404 page, the path is wrong.

Prefer absolute paths that start with a slash, such as /favicon.ico. A relative path like images/icon.png resolves against the current URL, so it works on the home page and breaks on /blog/post.

3. The server returns HTML instead of an image

Single-page apps and some hosts are configured to serve index.html for any path that does not match a file. If your icon is missing from the build, the request returns your home page with a 200 status. The browser tries to read it as an image, fails, and shows nothing.

Open the Network tab, reload, and click the favicon request. Check the response type. It should be image/x-icon, image/png or image/svg+xml, not text/html. If it is HTML, the file did not get deployed, so check your public or static folder and your build output.

4. The link tag is missing or in the wrong place

The link rel icon tag must be inside the head element. Inside the body it is ignored by some browsers. Also check that you have not declared the same rel twice with conflicting hrefs, and that a framework's metadata system is not overwriting your tag with a default.

View the page source, not the inspector, and search for rel="icon". The inspector shows the DOM after scripts ran, while the source shows what crawlers and the first render actually received. If the tag is added only by JavaScript, some tools will not see it.

5. You renamed nothing, so the URL is unchanged

Browsers key their cache by URL. If you replace icon.png with a new image of the same name, the browser sees the same URL and has no reason to refetch. Add a version to the file name or a query string, such as icon.png?v=2, when you change the artwork. This is the single most reliable way to push an update to returning visitors.

<link rel="icon" href="/favicon.ico?v=2" sizes="32x32">

6. The format or size is not accepted

A corrupt file, a PNG renamed to .ico, or a huge file can fail silently. Browsers expect a real ICO for a .ico file, not a PNG with a different extension. Some accept the mismatch, others do not. Create the ICO with a converter instead of renaming.

Keep the file small, ideally under a few tens of kilobytes. A multi-megabyte favicon may be ignored. Use a square image; very wide or tall files get distorted or rejected.

7. Google Search shows no icon or the wrong one

Search results use their own favicon pipeline, with its own rules. The icon must be a square whose size is a multiple of 48 pixels, at least 48 by 48. The favicon URL should be stable, and the page and the icon file must both be crawlable, so make sure robots.txt does not block them.

Even when everything is correct, search results update slowly. A change can take days or weeks to appear, and requesting indexing of the home page can speed it up. Do not expect an instant result.

8. A CDN, proxy or service worker is serving an old file

If your site sits behind a CDN, the old icon may be cached at the edge even though your server has the new one. Purge the file from the CDN after changing it. A service worker with an aggressive caching strategy can do the same inside the browser, so unregister it in the developer tools to test.

9. Local development is different from production

On localhost, favicons often fail because of a different base path, a dev server that does not serve the public folder where you expect, or a browser that keeps the icon from another project that used the same port. Try a different port, or an incognito window, before assuming the code is wrong.

A quick diagnostic routine

When you do not know where to start, run through this short sequence.

  • Open the icon URL directly. Does it show the image?
  • Open the site in a private window. Does the new icon appear?
  • Check the response type of the request in the Network tab.
  • View the page source and confirm the link tag is in the head.
  • If you changed the artwork, add a version to the URL.
  • Run the page through the favicon checker for contradictions.

Was this guide helpful?

Questions

Why does my favicon not update after I replaced it?

Browsers cache favicons by URL for a long time. Change the file name or add a version query string, then reopen the browser or test in a private window.

How long does Google take to show a new favicon?

Often several days, sometimes weeks. Make sure the icon is a multiple of 48 pixels, crawlable and at a stable URL, then wait.

Why does the favicon work locally but not in production?

Usually the file was not deployed, the path is relative, or the server returns index.html for the missing file. Open the icon URL on the live site to check.

Try it

More guides