The short answer
| File | Size | Used by |
|---|---|---|
favicon.ico | 16, 32, 48 px in one file | Every browser, older tools, RSS readers, and anything that requests /favicon.ico directly |
favicon.svg | Any (vector) | Chrome, Edge, Firefox, Safari: sharp at every size and zoom level |
apple-touch-icon.png | 180×180 | iPhone and iPad home screen, Safari bookmarks |
android-chrome-192x192.png | 192×192 | Android home screen (via the web manifest) |
android-chrome-512x512.png | 512×512 | Android splash screen and installed web apps |
site.webmanifest | n/a | Tells Android and installable web apps which icons to use |
Then add these tags inside <head>:
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">The sizes="32x32" on the ICO line matters: without it, some browsers prefer the ICO over the SVG.
Why 16×16 is still the size that matters most
Browser tabs draw favicons at 16×16 CSS pixels (32 physical pixels on most laptop and phone screens). That's the size people actually see all day. A design that looks great at 512px can turn into a blur at 16px, so check it small before you ship it. Bold shapes, one or two letters, and strong contrast survive; thin lines and long words don't.
ICO vs PNG vs SVG
- ICO is the oldest format and the safest fallback. One
.icofile can hold several sizes. Browsers still request/favicon.icoautomatically when a page doesn't declare an icon, so keep one at your site root. - SVG is a vector, so it stays crisp at any size and is usually the smallest file. It can also react to dark mode (see dark mode favicons). Convert any text to outlines so it doesn't depend on fonts the visitor may not have.
- PNG is used for the Apple touch icon and the Android icons, where a fixed bitmap size is expected.
What about Google search results?
Google shows your favicon next to your site name in search results. It needs a square icon that's a multiple of 48×48 px, declared with a <link rel="icon"> tag on your home page, and crawlable (not blocked by robots.txt). The setup above meets those rules. Google can take days or weeks to pick up a new icon.
Sizes you can skip
Old checklists list dozens of files: 57, 60, 72, 76, 114, 120, 144, and 152 px Apple icons, Windows tile images with browserconfig.xml, and mask-icon for Safari pinned tabs. Modern devices scale down the single 180×180 Apple icon, Windows tiles are gone from Edge, and Safari now uses your regular favicon for pinned tabs. Leaving them out keeps your <head> clean with no visible difference.
Transparent background or not?
The ICO, SVG, and Android icons can be transparent. The Apple touch icon shouldn't be: iOS fills transparent areas with black. Give it a solid background color. FavMint does this automatically when you export the full package.