A favicon is the small icon a browser shows in tabs, history and bookmarks — and since 2020, the icon Android and Windows pin to home screens. One image file is no longer enough: different surfaces request different sizes, and serving the wrong one leaves blank or blurry icons everywhere. This guide lists the sizes worth shipping, compares ICO with PNG, shows the link tags, and explains the caching traps.
The sizes worth shipping
| Size | Where it appears |
|---|---|
| 16 × 16 | Browser tab and bookmarks bar |
| 32 × 32 | Retina tabs and the Windows taskbar |
| 48 × 48 | Legacy desktop shortcuts |
| 180 × 180 | Apple touch icon for iPhone home screens |
| 192 × 192 | Android home screen and Chrome install prompts |
| 512 × 512 | Progressive web app manifest and splash screens |
ICO or PNG?
The ICO container is the traditional format: it bundles several raster sizes in one file, so a single request covers 16, 32 and 48 pixels, and a request to /favicon.ico is what browsers make when nothing else is declared. PNG wins where transparency and crisp edges matter, and many designers now serve a 32-pixel PNG alongside the ICO for compatibility. SVG favicons scale perfectly but need a raster fallback for older browsers. Always start from artwork at 512 pixels and downscale — upscaling a 16-pixel icon produces mush.
The HTML link tags
Declare your icons explicitly in the head so each device downloads only what it needs:
<link rel="icon" href='/favicon.ico' sizes="32x32"><link rel="icon" href='/favicon.png' type="image/png" sizes="32x32"><link rel="apple-touch-icon" href='/apple-touch-icon.png'>
The 192 and 512 pixel files are referenced from the web app manifest rather than a link tag, which is what triggers the install and splash behaviour on Android.
Caching gotchas
- Browsers request /favicon.ico directly, often without a cache-busting query string — serve it with a long max-age and version the file name when the design changes.
- A 404 on /favicon.ico is cached by some browsers, so a later upload may appear not to work.
- Content delivery networks can hold the old icon for hours; purge the cache after a rebrand.
- Verify in a private window — the icon is small enough that a stale copy rarely announces itself.
Generate the set in one step
Upload a single square image to the Favicon Generator and it produces the whole size set plus ready-made link tags. If your source artwork is not square, trim it first with the Image Cropper, and use the Image Resizer to prepare a 512-pixel master for the manifest. Favour designs with a solid background — fine white lines disappear at 16 pixels.
Frequently asked questions
Do I still need an .ico file? Most modern browsers accept PNG, SVG and link tags, but a surprising number of crawlers and older tools still request /favicon.ico. Serving one costs almost nothing and removes the risk.
Why does my new icon not show up? Almost always caching — clear the browser cache, purge your CDN, and check that the response headers are not pinning the file for a year.
How many pixels should the master be? 512 × 512 with a transparent or solid background covers every current requirement, and every smaller size is a clean downscale from it.