Every website needs a favicon. It takes 5 minutes to create and install one. Here is the complete process: designing an icon that works at tiny sizes, generating every required format, adding the HTML, and fixing the inevitable browser cache issue.
Your favicon needs to be recognizable at 16x16 pixels — the size of a browser tab icon. That rules out detailed images, photos, and most text. What works:
If your logo does not have a standalone icon, create a simple one. A colored square with a white letter is better than a shrunken full logo that becomes unreadable.
Prepare your source image:
The zip includes: favicon.ico, 16x16, 32x32, 48x48, 180x180 (apple-touch-icon), 192x192, and 512x512 PNGs.
Place all favicon files in your website's root directory — the same folder as your main index.html or homepage. The file structure should look like:
your-site/ index.html favicon.ico favicon-16x16.png favicon-32x32.png apple-touch-icon.png android-chrome-192x192.png android-chrome-512x512.png
Add these tags inside the <head> section of every page:
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
| Browser | How to Test | Cache Fix |
|---|---|---|
| Chrome | Open a new tab, check the tab icon | Ctrl+Shift+R (hard refresh) |
| Firefox | Open site, check tab + bookmark bar | Ctrl+Shift+Delete → clear cache |
| Safari | Open site, check tab + favorites | Develop menu → Empty Caches |
| Edge | Same as Chrome | Ctrl+Shift+R |
| iOS Safari | Add to Home Screen, check icon | No cache — shows apple-touch-icon |
| Android Chrome | Add to Home Screen, check icon | Clear Chrome app cache |
| Problem | Cause | Fix |
|---|---|---|
| Favicon not appearing | Wrong file path in HTML | Check href paths match your file locations — use absolute paths starting with / |
| Old favicon still showing | Browser cache | Hard refresh (Ctrl+Shift+R) or test in incognito window |
| Blurry favicon | Source image too small | Upload a 512x512+ source image to the generator |
| White square on iOS | Transparent background | iOS does not support transparent apple-touch-icons — add a solid background |
| Favicon shows on some pages only | Link tags missing on other pages | Add favicon link tags to the <head> of EVERY page, not just the homepage |
Generate every favicon size from one image — free, instant.
Open Favicon Generator