PNG to ICO Converter
Convert a PNG to a multi-size Windows .ico icon (16 to 256 px) with fit options and classic BMP entries for old Windows. Runs in your browser.
An ICO file is a small container that holds the same icon at several sizes, so Windows can pick a crisp 16 px version for a list view and a 256 px one for large desktop icons. This converter draws your PNG at each size you tick, high-quality downscaling in steps, and writes a real multi-image .ico — not a renamed PNG. Everything runs in your browser; your images never leave your device.
How to use this tool
- Choose a PNG — ideally square, 256 × 256 px or larger, with a transparent background.
- Tick the sizes to include (16, 32, 48 and 256 cover Windows Explorer, the taskbar and shortcuts).
- Pick how a non-square picture is fitted: padded, cropped or stretched.
- Download the .ico and check the list of sizes inside it.
Formula
ICO = ICONDIR (6 bytes: 0, type 1, count) + one 16-byte ICONDIRENTRY per image (width, height — 0 means 256 — colour count 0, planes 1, 32 bits per pixel, byte length, offset) + the image data.
Each image is stored as a PNG, which Windows Vista and later read directly. The classic option stores 48 px and smaller sizes as 32-bit BMP data instead (a 40-byte header with the height doubled, bottom-up BGRA pixels, then a 1-bit transparency mask), which Windows XP and some older programs need.
Example
With only 16 px ticked and classic entries on, the file is exactly 1,150 bytes: 6 bytes of directory, a 16-byte entry, a 40-byte header, 16 × 16 × 4 = 1,024 bytes of colour and a 64-byte mask (16 rows × 4 bytes). With the default 16/32/48/256 set the four images are PNG-compressed, and a simple logo typically produces an icon of a few tens of kilobytes.
Frequently asked questions
Which sizes should a Windows app icon have?
At least 16, 32, 48 and 256 px. Add 24 and 64 for sharper results at in-between display scales, such as 125% and 150%.
Is this a favicon generator?
It makes the .ico file, which browsers accept as favicon.ico (16, 32 and 48 px are enough). For the full set of PNG favicons and the HTML tags, use the Favicon Generator.
Why does my small icon look blurry?
If the source is smaller than a chosen size it has to be enlarged. Start from a 256 px or larger image; for tiny sizes, a simplified design reads better than a scaled-down detailed one.
Last updated: 2026-10-30