PNG to ICO converter
Turn a PNG into a Windows and favicon .ico file that holds the picture at several icon sizes, from 16 × 16 up to 256 × 256 pixels.
Your files never leave your device
ICO files hold the picture at 16, 24, 32, 48, 64, 128 and 256 pixels, up to the size of your image. Non-square images are centered on a transparent square.
Drop PNG images here
JPG, PNG, WebP, AVIF, GIF, BMP, ICO, TIFF or SVG, as many as you like. They stay on your device.
You can also paste files with Ctrl+V.
In short
To convert PNG to ICO, drop a PNG above; ICO is already selected and sizes up to 256 × 256 pixels are written into one .ico file. Square PNG images work best; others are centered on a transparent square. Then press Download.
PNG vs ICO at a glance
| Feature | PNG | ICO |
|---|---|---|
| Full name | Portable Network Graphics | Windows Icon |
| File extension | .png | .ico |
| Type | Raster image | Raster image |
| Compression | Lossless | Lossy or lossless |
| Transparency | Yes | Yes |
| Animation | Yes | No |
| Colors | 24-bit + 8-bit alpha | 32-bit |
| Largest width or height | 2,147,483,647 px | 256 px |
| Camera data (EXIF) | Yes | No |
| Introduced | 1996 (W3C) | 1985 (Microsoft) |
| Opens in web browsers | Yes | Yes |
| Opens on Windows | Yes | Yes |
| Opens on Mac | Yes | Partly |
| Opens on iPhone | Yes | No |
| Opens on Android | Yes | No |
How to convert PNG to ICO
- Drop your PNG on the box above or press Choose images; ICO is already selected as the output for PNG to ICO.
- The picture is fitted into a square and drawn at 16×16, 24×24, 32×32, 48×48, 64×64, 128×128, and 256×256 pixels; sizes larger than the PNG itself are skipped, so nothing is blown up.
- Press Download to save the .ico file. For a website, put it in the top folder as favicon.ico; for a Windows shortcut, open Properties, press Change Icon and pick the ICO.
Inside a ICO made from a PNG
An uncompressed 32-bit icon of 256 × 256 takes 270 kB, and a 32 × 32 entry takes 4,264 bytes including its 1-bit mask. That is why the large sizes of a ICO made from your PNG are stored PNG-compressed, while 16 to 48 pixels stay plain bitmaps that every version of Windows reads.
All seven sizes stored as plain bitmaps would add up to 373 kB; with PNG compression for 64 pixels and up, a ICO from a typical PNG logo ends up far smaller than that.
Icon sizes stored in the ICO
| Icon size | Pixels | Uncompressed bytes | Used for |
|---|---|---|---|
| 16 × 16 | 256 | 1,128 | Browser tabs, small list icons |
| 24 × 24 | 576 | 2,440 | Small icons at 150% display scaling |
| 32 × 32 | 1,024 | 4,264 | Taskbar, tabs on high-DPI screens |
| 48 × 48 | 2,304 | 9,640 | Medium icons in File Explorer |
| 64 × 64 | 4,096 | 16,936 | Medium icons at 125–150% scaling |
| 128 × 128 | 16,384 | 67,624 | Large icons |
| 256 × 256 | 65,536 | 270,376 | Extra large icons in File Explorer |
Why one ICO holds several sizes of your PNG
PNG is the best source for an ICO because it carries the transparency icons need; a 512 × 512 or 256 × 256 PNG of your logo gives every size in the ICO a clean downscale.
PNG compresses without losing a single pixel, so it is a clean starting point: whatever ICO does to the picture, it starts from the exact original pixels. ICO is the icon format of Windows and of the classic favicon.ico, and one file holds several sizes, so PNG artwork stays sharp in a browser tab, on the taskbar and on the desktop.
Windows picks the 16 and 32-pixel images for lists and the taskbar, 48 for medium icons and 256 for large ones, so a ICO made from your PNG stays sharp everywhere instead of being scaled on the fly from a single size. PNG transparency is kept in every icon size, so a logo on a transparent background floats freely in the browser tab and on the desktop.
Browsers still request /favicon.ico when a page names no icon, which is why a ICO built from your PNG is the safest favicon, even on sites that also offer PNG and SVG icons.
Frequently asked questions
Which sizes does the ICO made from my PNG contain?
The ICO holds 16×16, 24×24, 32×32, 48×48, 64×64, 128×128, and 256×256 pixel versions of your PNG, as long as the PNG is at least that large; smaller sizes are made by downscaling, never by enlarging. The 16 and 32-pixel images are the ones browsers show in tabs.
What is the best PNG size for an ICO icon?
A square PNG of at least 256 × 256 pixels gives every icon size a clean downscale. Simple shapes and strong contrast read best at 16 × 16; fine text in the PNG becomes unreadable at small icon sizes.
Does the ICO keep the transparent background of my PNG?
Yes. Every size inside the ICO is stored with 8-bit alpha, so transparent and soft-edged parts of the PNG stay see-through on any background.
How do I use the ICO as a favicon?
Put the file in the top folder of your website as favicon.ico; browsers look there by default. You can also reference it from the page head as an icon. If the old icon still shows, clear the browser cache.
Why not just rename the PNG to .ico?
Renaming leaves PNG data inside, which Windows refuses as an icon. A real ICO starts with an icon directory listing each size; this converter writes that structure with the PNG drawn at every size.
Is my PNG uploaded to make the ICO?
No. The PNG is decoded, resized and packed into the ICO in your browser, so logos and unreleased artwork never leave your device.
How do I convert ICO back to PNG?
Use the ICO to PNG converter; it saves the largest image inside the ICO as a PNG.
How your files stay private
Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.
Related conversions
The other way round: ICO to PNG
More PNG conversions
Other formats to ICO
Related tools
- Image converter Turn JPG, PNG, WebP, AVIF, GIF, BMP, ICO and SVG files into JPG, PNG, WebP or AVIF.
- Compress image Shrink JPG, PNG, WebP and AVIF files, or fit them under a size in KB, without uploading.
- HEIC to JPG Convert iPhone HEIC photos to JPG or PNG in bulk, with GPS removed, without uploading them.
- Resize image Change image dimensions in pixels, percent or presets, one file or hundreds, without uploading.
- Image to text Extract printed text from photos and screenshots with OCR in your browser, then copy it or save a .txt.
Last updated Nov 20, 2026