The short answer
An .ico file starts with a small directory, 6 bytes plus 16 bytes per entry, listing the images inside: their width, height and where their data begins. Each entry is a complete picture in its own right, either an uncompressed bitmap (the original way; this multi-image layout dates from Windows 3.0 in 1990) or, since Windows Vista, a PNG.
Whatever shows the icon picks the entry that best fits the space it has. A browser tab on a normal screen takes the 16 px picture, a high-density screen takes 32 px, and Windows Explorer in large-icon view may use 256 px. If the right size is missing, the program scales another one, and small icons scaled down from a large picture usually look soft.
What each size costs
The test icon is a 512×512 badge drawn for these pages (a blue circle and ring around a yellow star, with a soft shadow on a transparent background), scaled to each size with sharp 0.35.5. "BMP" is the classic 32-bit bitmap with its 1-bit mask; "PNG" is the same pixels compressed as PNG.
| Size | Stored as PNG | Stored as BMP |
|---|---|---|
| 16×16 | 652B | 1.1KB |
| 32×32 | 1.8KB | 4.2KB |
| 48×48 | 3.3KB | 9.4KB |
| 64×64 | 4.7KB | 16.5KB |
| 128×128 | 11.4KB | 66.0KB |
| 256×256 | 26.7KB | 264.0KB |
And whole ICO files built from those entries:
| Sizes in the file | All PNG | All BMP | BMP up to 128, PNG for 256 |
|---|---|---|---|
| 16, 32, 48 | 5.8KB | 14.7KB | 14.7KB |
| 16, 32, 48, 256 | 32.5KB | 278.8KB | 41.4KB |
| 16, 32, 48, 64, 128, 256 | 48.7KB | 361.4KB | 124.0KB |
The 256 px entry dominates everything. Adding it to a 16/32/48 favicon makes the file 5.6 times bigger with PNG entries and almost three times bigger even in the mixed layout, and as an uncompressed bitmap that one entry alone is 264KB. That's why it has long been common practice for Windows icons to store the 256 px image as PNG even when the smaller ones are bitmaps, the third column above.
Which sizes a favicon.ico needs
For a website, 16, 32 and 48 px cover browser tabs, bookmarks and the Windows taskbar when a page is pinned. Phones and app launchers don't read favicon.ico at all: iOS uses a separate 180×180 apple-touch-icon.png, and Android reads 192 and 512 px PNGs listed in a web app manifest. Putting 256 px into favicon.ico only makes every first visit download more.
Small sizes are also where drawing matters. Here are 16, 32 and 48 px versions of the test badge, each enlarged four times so the pixels are visible:

At 16 px the ring around the circle is barely one pixel and the star's points merge. Designers often redraw the smallest size by hand, dropping thin details, instead of shrinking the big one. An ICO lets you do that: each entry can be a different drawing.
Where ICO is used and where it isn't
Every browser reads /favicon.ico from a site's root, even without a link tag, which is why the format is still everywhere on the web. Windows uses ICO for program, folder and shortcut icons. Elsewhere it's rare: macOS uses ICNS for apps, and image editors and upload forms often don't open .ico at all.
Note that renaming a PNG to favicon.ico makes a file most browsers will display, because they sniff the content, but it isn't a real ICO, and Windows and some tools reject it. A real ICO starts with the bytes 00 00 01 00.
Making one
This site has two ways. The converter turns any image into a single-size ICO (one square picture up to 256×256, centered if the source isn't square). The favicon generator builds a multi-size favicon.ico with 16, 32 and 48 px entries stored as PNG, plus the apple-touch icon, Android icons, manifest and HTML tags, all in your browser.
FAQ
What size should a favicon.ico be?
Include 16, 32 and 48 px. That set came to 5.8KB with PNG entries in the measurement above. Leave 256 px out of the favicon; provide larger PNG icons separately for phones.
Can an ICO file have a transparent background?
Yes. Both the PNG entries and the 32-bit bitmap entries carry an alpha channel. Old 4- and 8-bit entries only have on/off transparency through the mask.
Why does my favicon look blurry?
Usually because only one large size is in the file and the browser shrinks it, or because a high-density screen asked for 32 px and only 16 px was there. Include several sizes, and check the 16 px one at actual size.
How do I convert ICO back to PNG?
An ICO holds several pictures, so a converter has to pick one; most take the largest. To get a specific size, extract it with an icon editor, or regenerate the icons from the original artwork.
Related
- Favicon generator
- How to make a favicon
- PNG → ICO converter
- File extension vs the real format inside
- All image formats compared
This page was last updated on 2026-11-30