The Most Common Favicon Mistakes (and How to Fix Each)
Most broken favicons come from a handful of the same mistakes. Here they are, with the fix for each.
The list
None of these are exotic. They're the mistakes that show up over and over, and each one has a clean fix. Find yours in the table, apply the fix, then verify with a fresh private window.
Mistake and fix
| Mistake | Fix |
|---|---|
| Renaming a PNG to favicon.ico | An .ico is a specific container format, not a PNG with a different extension. Re-encode it as a real .ico (a generator does this), or reference the PNG with its correct type. Browsers that demand .ico will reject the fake one. |
| Putting public/ in the path | public/ (or static/) is the folder on disk, not part of the URL. A file at public/favicon.ico serves from /favicon.ico. Write href="/favicon.ico", never href="/public/favicon.ico". |
| A transparent apple-touch-icon | iOS ignores alpha and composites the icon onto black, so transparency shows up as a black tile. Give the apple-touch-icon a solid background. See the apple touch icon guide. |
| Missing 192x192 and 512x512 | Without both sizes referenced from the manifest, Android and Chrome won't offer to install the app. Add them and list them in manifest.json. |
| Only shipping a 16px icon | Google Search wants an icon that's a multiple of 48px (48, 96, and so on) and at least 48x48. A lone 16px favicon won't appear next to your result. Ship larger sizes too. |
| Editing files without busting the cache | Browsers cache favicons hard and key them on the URL, so replacing the file in place often changes nothing. Version the URL or purge the CDN. See how favicon caching works. |
The meta-fix: verify, don't eyeball
Every mistake above passes the eyeball test in at least one browser, which is why they survive to production. The reliable catch is an automated scan that requests each file and checks each tag, plus a quick look in a private window so you're not fooled by your own cache. If you added the icons and they still don't show, work through the favicon not showing guide.
Common questions
Why is my favicon a black square on iPhone?
The apple-touch-icon is transparent. iOS doesn't honor alpha on home-screen icons and composites them onto black, so the transparent areas render black. Give that icon a solid background color and the square goes away.
Can I just rename a PNG to favicon.ico?
No. .ico is a distinct container format, not an extension you can swap in. Some browsers will reject the mislabeled file. Convert it to a real .ico with a generator, or reference the PNG with its proper type attribute.
Why won't my PWA offer to install?
The most common cause is missing 192x192 and 512x512 icons in the web manifest. Chrome and Android require both to show an install prompt. Add the two sizes and reference them from manifest.json.
Why doesn't my favicon show in Google Search?
Google wants a favicon that's at least 48x48 and a multiple of 48. If you only ship a 16px icon, it's too small to use, so no icon appears next to your result. Provide larger sizes.