PNG to ICO Converter
A real ICO container with 16, 32 and 48 pixel entries, built in the page.
The .ico contains 16, 32 and 48 pixel PNG entries, which every browser since IE11 and every Windows version since Vista reads. The PNG set is 180, 192 and 512 pixels for Apple touch icons and Android home screens.
The .ico is assembled here: a 6-byte header, one 16-byte directory entry per size, then the PNG payloads. Windows Vista and later read PNG-compressed entries, so no BMP fallback is needed.
A single-size ICO is the usual mistake. Windows picks the size closest to the display context, so a 256 px icon shown in a 16 px taskbar slot is downscaled by the shell with whatever filter it feels like — and the result is a smudge. Shipping 16, 32 and 48 pixel entries lets the shell pick a pre-rendered version instead.
The ICO container is simpler than its reputation. It is a directory of images, and since Vista the entries can be PNG rather than the old BMP-with-AND-mask encoding, which is what this tool writes.
How to use it
- Drop a square PNG. Non-square images are stretched, so crop first.
- The page renders 16, 32 and 48 pixel versions and packs them into one .ico.
- Download favicon.ico and place it in the site root, where browsers look for it by default.
Sizes, and why 16 still matters
Browser tabs render at 16 px on standard displays and 32 px on high-DPI ones; Windows uses 16, 32, 48 and 256 depending on the view. Most modern sites therefore ship an SVG plus an ICO fallback, and skip the intermediate PNGs entirely.
A 16 px icon is not a scaled-down 512 px logo — it is a different drawing. Thin strokes disappear, and any text becomes illegible. Check the 16 px preview on this page before committing; if it reads as a blob, the source needs simplifying rather than shrinking.
Reviewed 2026-10-26. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.
Frequently asked questions
Why three sizes in one file?
Because the operating system and browser each pick the entry closest to the size they need. One large image forced into a 16 px slot is downscaled by the shell and looks soft.
Do I still need favicon.ico?
It is the fallback browsers request automatically when a page declares nothing. Declaring PNG links handles modern browsers, and the ICO covers the rest — including some feed readers and older bookmarks.
Does the ICO support transparency?
Yes, because the entries are PNGs with an alpha channel. Old 32-bit BMP entries also supported alpha, but with a separate mask; the PNG approach avoids that entirely.
What size source image should I start with?
512 × 512 or larger, square, with the artwork filling most of the frame. Anything smaller cannot produce a clean 48 px entry, and anything non-square will be distorted.
Related tools
More from Image tools.