ICO to PNG
An icon file is a small stack of pictures: often a 16 px one for browser tabs up to a 256 px one for the Windows desktop. Open it here to see every image it holds, then save the sizes you want as transparent PNG files.
Why one .ico holds several pictures
Windows and browsers show the same icon at very different sizes: 16 pixels in a tab or a file list, 32 or 48 on the taskbar and in folders, up to 256 on a high-resolution desktop. Scaling one picture to all of those looks poor, so the ICO format simply stores several finished pictures side by side, and each program takes the one closest to the size it is about to draw.
That is also why opening an .ico in an ordinary image viewer can be confusing. The viewer shows one image, often the first or the largest, and the others stay invisible. This page reads the file's directory, decodes every entry and lays them all out, largest first, with the largest one already selected for download.
Reading the labels under each size
Each tile says three things, for example 32 × 32 · 32-bit · PNG: the size in pixels, how many bits describe each pixel, and how the image is stored inside the icon.
| Bit depth | Colours | Transparency | Typical source |
|---|---|---|---|
| 1-bit | 2 | On/off mask | Very old cursors and monochrome icons |
| 4-bit | 16 from a palette | On/off mask | Windows 3.x and 95 era icons |
| 8-bit | 256 from a palette | On/off mask | Icons made for old displays, still common in favicons |
| 24-bit | Millions | On/off mask | Rare; photos squeezed into an icon |
| 32-bit | Millions | 256 levels, soft edges | Windows XP and later, every modern favicon maker |
BMP means the picture is kept as an uncompressed bitmap followed by a one-bit mask that marks the see-through pixels. PNG means the entry is a complete compressed PNG file, the form Windows Vista introduced for the big sizes. The difference is large: a 256 × 256 image at 32 bits takes 270,376 bytes as a bitmap with its mask, while the same picture as PNG is usually a tenth of that or less.
A file sometimes holds two images of the same size at different depths, such as 32 × 32 at 8 and at 32 bits, so that very old systems still get something they can show. Both are listed, and their file names include the depth so they don't overwrite each other.
Why the 16 px icon is not just a shrunken 256 px one
Look at the small sizes enlarged and you will often notice they are drawn differently: thicker outlines, fewer details, a letter instead of a word, colours pushed apart. Good icon designers redraw the smallest sizes by hand, because a 256 px picture reduced to 16 px turns fine lines into grey mush.
So if you need a small PNG, take the matching small image from the icon rather than shrinking the big one yourself. If you need a large PNG, take the largest image; the small ones only have their few pixels and get blocky when stretched.
Icons are opened in this tab
The icon reader, the previews and the PNG and ZIP writing are Photoyam's own code running in your browser. The file you open is not sent anywhere, which matters for the icons of software or sites that are not public yet.
Measured: our own favicon
The icon at photoyam.com/favicon.ico is 3.6 KB. Opened here, it lists three images, all 32-bit and stored as PNG: 16 × 16 (540 bytes), 32 × 32 (1.2 KB) and 48 × 48 (1.8 KB). Six bytes of header and a 16-byte directory line per image make up the rest. There is no 256 px image in it, because a browser tab never asks for one; the largest PNG you can get from this file is therefore 48 × 48, and the page says so rather than inventing a bigger one.
Cursor files
A static cursor (.cur) is built exactly like an icon, with one addition: each image records its hotspot, the pixel that does the clicking. The label shows it, for example 32 × 32 · 32-bit · BMP · hotspot 0, 0 for an arrow whose tip is its top-left corner. The saved PNG is the picture only; a PNG has nowhere to store a click point, so note it down if you plan to turn the picture back into a cursor.
When an image is missing or left out
- The largest size is what the file has. Nothing is upscaled; an icon with 16, 32 and 48 px images gives at most a 48 px PNG.
- Damaged entries are skipped, not the whole file. If a file was cut off during a download, or one entry points at bytes that are not there, that entry is listed as left out with the reason, and every image that can be read is still shown.
- Not every icon-like file is an ICO. Animated cursors (.ani), Mac icons (.icns) and PNG or SVG favicons are other formats. A picture opened here by mistake gets a pointer to the right tool.
ICO to PNG questions
Why do other programs show only one picture from my .ico?
An image viewer or a browser asked to open an icon picks the one image it thinks fits and ignores the rest. Which one depends on the program, so two apps can show two different pictures from the same file. This page lists all of them.
Can I get a PNG larger than the biggest icon in the file?
Not here. The largest image in the file is the most detail that exists; blowing it up would only invent blurry pixels, so the page does not offer it. If you really need a bigger file, the Resize tool can enlarge the PNG, and you will see the softness for yourself.
Is the transparent background kept?
Yes. A 32-bit image keeps its soft edges exactly. Older 1, 4, 8 and 24-bit images have a separate on/off mask; masked pixels become fully transparent in the PNG and the rest stay solid.
Are the PNG files exact copies of the icon images?
Images that the icon already stores as PNG are saved byte for byte, untouched. Bitmap images are written as lossless PNG with the same pixels. Only browsers without a built-in compressor, such as Safari before 16.4, go through the canvas, which can shift a half-transparent colour by one step.
How do I save a website’s favicon to open it here?
Most sites keep it at the root: type the address followed by /favicon.ico, for example example.com/favicon.ico, and save what opens with Save as. If the page links a PNG or SVG icon instead, that file is already a normal image and needs no converting.
Does it read animated cursors or Mac icon files?
No. Static cursors (.cur) open like icons, with their click point listed. Animated cursors (.ani) and macOS icon files (.icns) are different formats and are not read here.
After extracting
- Make a new .ico or a full favicon setThe other direction: one logo into every icon size, plus the touch icons.
- Resize a PNGChange the pixel size of an extracted image, knowing enlarging adds no detail.
- Remove a backgroundFor an icon that came with a solid plate you don't want.
- JPG vs PNG vs WebP vs AVIF vs HEIC: Which to UseWhere ICO, PNG and SVG each fit.
Looking for something else? Browse every Photoyam tool.