Skip to main content

What is an ICO file?

ICO is the Windows icon format, and the reason a website's favicon.ico can look sharp in a browser tab and on the desktop at the same time: one file holds several pictures of different sizes.

Key facts

Extensions
.ico
MIME type
image/x-icon
First released
1990
Compression
Lossless compression
Transparency
Yes
Animation
No
Shows directly in browsers
Yes
This site's converter
Read · Save

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.

SizeStored as PNGStored as BMP
16×16652B1.1KB
32×321.8KB4.2KB
48×483.3KB9.4KB
64×644.7KB16.5KB
128×12811.4KB66.0KB
256×25626.7KB264.0KB

And whole ICO files built from those entries:

Sizes in the fileAll PNGAll BMPBMP up to 128, PNG for 256
16, 32, 485.8KB14.7KB14.7KB
16, 32, 48, 25632.5KB278.8KB41.4KB
16, 32, 48, 64, 128, 25648.7KB361.4KB124.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:

The test badge at 16, 32 and 48 pixels, each shown at 4× zoom on a dark background. At 16 px the ring and star are only a few pixels wide and the star's points blur together; at 48 px the shape is clear

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

This page was last updated on 2026-11-30

Other format explainers