To convert PNG to ICO, resize the image into square versions, usually 16, 32, 48 and 256 pixels, and store them together in one .ico file. Windows then picks whichever size fits the place where the icon appears. The free ICO Generator does both steps: upload a PNG, JPG, WebP or GIF, choose a size preset and download the icon. For a Windows shortcut or app icon, include the 256-pixel entry; for a website's favicon.ico, the small default preset is enough. Start from a square PNG at least 256 pixels wide with a transparent background, because every size is made from that one image.
How to convert PNG to ICO with Zutilium
- Prepare a square PNG of at least 256 × 256 pixels, ideally with a transparent background. For a wide logo, make a square version first (see non-square images below).
- Open the ICO Generator and drop the image on the upload area, click Choose file, or paste it from the clipboard. It takes one JPG, JPEG, PNG, WebP or GIF, up to 30 MiB by default.
- Under Settings, open Sizes to Include and pick a preset: 16x16, 32x32, 48x48 (the default), 16x16, 32x32, 32x32, 48x48, 256x256 or All (16, 32, 48, 256).
- Select Convert to ICO.
- Select Download. The file gets a generated name that starts with
converted_, so rename it to something short such asapp.icoorfavicon.ico.
Then check three things:
- Edges: look at the icon against a dark background, such as File Explorer in dark mode. A white square or pale fringe means the source was not transparent.
- Small sizes: thin lines and small text often vanish at 16 pixels.
- Large sizes: view the file in File Explorer's extra large icons view. A soft icon there means the source was too small or the 256 entry is missing.
The ICO Generator runs on Zutilium's server, so your image is uploaded. After a successful conversion, the upload is scheduled for deletion after about one minute and the ICO after about ten minutes. Cleanup runs periodically, so download the file promptly.
What is inside an ICO file
An ICO file is a small container: a 6-byte header, a 16-byte directory entry for each image, then the images themselves. Each entry records one image's width, height, color depth, length and position, a layout Microsoft documents in its original Win32 icon reference. Windows reads the directory and loads only the image it needs.
Here are the first 22 bytes of an ICO made with the All (16, 32, 48, 256) preset. Numbers are stored little-endian, so 01 00 means 1.
| Bytes | Hex | Meaning |
|---|---|---|
| 0–1 | 00 00 |
Reserved, always 0 |
| 2–3 | 01 00 |
Type 1: icon (2 is a cursor) |
| 4–5 | 04 00 |
Four images |
| 6–7 | 10 10 |
First image: 16 × 16 pixels |
| 8–9 | 00 00 |
No palette, reserved byte |
| 10–13 | 01 00 20 00 |
1 color plane, 32 bits per pixel |
| 14–17 | BA 01 00 00 |
Image length: 442 bytes |
| 18–21 | 46 00 00 00 |
Image starts at byte 70 |
The header and directory take 6 + 4 × 16 = 70 bytes, which is why the first image starts at byte 70 (hex 46). Width and height get one byte each, so the 256-pixel entry is written as 0. That single byte is also why a standard Windows icon stops at 256 × 256, the maximum in Microsoft's icon design guidelines.
Every image inside a file from the ICO Generator is a complete 32-bit PNG with an alpha channel. PNG-compressed icon images arrived with Windows Vista, as Raymond Chen explains in the evolution of the ICO format. Older icons store bitmaps with a separate transparency mask, and some older programs still read only that kind.
The largest entry dominates the file size. A 256 × 256 image has 65,536 pixels, about 18 times the 3,584 pixels of the 16, 32 and 48 entries combined. For example, a flat two-color 512 × 512 PNG logo produced a 3,566-byte ICO with the default preset and a 15,867-byte ICO with All, of which the 256 entry was 12,285 bytes. Detailed artwork and photos compress less, so expect larger files.
ICO icon sizes: which ones to include
Windows looks for an exact size match first. If there is none, it takes the next larger image and scales it down, according to Microsoft's guide to constructing app icons. The same page lists 16, 24, 32, 48 and 256 pixels as the bare minimum for an app and notes that a 256 image means Windows only ever scales down, never up.
| Preset | Choose it for |
|---|---|
| 16x16, 32x32, 48x48 | favicon.ico and other small-icon uses |
| 16x16, 32x32 | The smallest favicon.ico |
| 32x32, 48x48, 256x256 | Large icons; Windows shrinks the 32 image where 16 is needed |
| All (16, 32, 48, 256) | Windows shortcuts, folders and app icons |
Display scaling changes the sizes Windows asks for. Using the Windows 11 sizes from Microsoft's guide, this table shows which entry of an All icon serves each request:
| Scale | Title bar, tray | Taskbar, Start list | Start pins |
|---|---|---|---|
| 100% | 16 (exact) | 24 (from 32) | 32 (exact) |
| 125% | 20 (from 32) | 30 (from 32) | 40 (from 48) |
| 150% | 24 (from 32) | 36 (from 48) | 48 (exact) |
| 200% | 32 (exact) | 48 (exact) | 64 (from 256) |
Without a 256 entry, the 64-pixel request at 200% would stretch the 48 image up, which is where blurry icons come from. The ICO Generator has no 24-pixel preset, so 24-pixel spots use the 32 image scaled down. That is fine for shortcuts and folders; if you ship software and want Microsoft's full minimum set, use the ImageMagick command further down.
Transparency, backgrounds and non-square images
The ICO Generator keeps whatever transparency your image already has. It does not remove backgrounds: a JPG, or a PNG exported with a white background, stays opaque and shows a white square on dark taskbars and title bars. Microsoft's guide notes that icons look best with a transparent background, so export your logo as a PNG with transparency before converting.
Non-square images are fitted, not cropped. The whole image is scaled to fit each square, and the leftover space becomes transparent padding. For a 600 × 300 logo, the width sets the scale, so the logo fills only half the height of every entry:
| Entry | Logo area | Transparent padding |
|---|---|---|
| 16 × 16 | 16 × 8 | 4 px above and below |
| 32 × 32 | 32 × 16 | 8 px above and below |
| 48 × 48 | 48 × 24 | 12 px above and below |
| 256 × 256 | 256 × 128 | 64 px above and below |
At 16 pixels, an 8-pixel-tall wordmark is unreadable. Use the symbol from your logo without the name, or crop a square with the 1:1 crop preset in Image Editor, leaving Output Format on Keep Original so a PNG keeps its transparency. The guide to cropping, rotating and flipping images covers the crop controls.
Using your ICO on Windows, in apps and on websites
Shortcut: right-click the shortcut, choose Properties, open the Shortcut tab and select Change Icon. Click Browse, pick your .ico file, then confirm with OK. Keep the .ico in a folder you will not move or delete, because the shortcut points to the file instead of copying it.
Folder: open the folder's Properties, then Customize and Change Icon.
Your own program: a .NET project embeds the icon with the ApplicationIcon property, documented in Microsoft's MSBuild property reference:
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
</PropertyGroup>
A C or C++ program does the same with an ICON statement in its resource script, such as appicon ICON "app.ico". Use the All preset, or ImageMagick if you also want a 24-pixel entry.
Website: favicon.ico is the same format. Which sizes a site needs, the HTML tags and the PNG and manifest icons that go with them are covered in favicon sizes and how to add a favicon. To get all of those files at once, Favicon Package Generator builds the ICO, PNG icons and a starter web manifest in one ZIP.
Other ways to make an ICO file
- ImageMagick (free, command line): its
icon:auto-resizedefine writes several sizes from one 256 × 256 image, including the 24-pixel entry the ICO Generator lacks.
magick logo-256.png -define icon:auto-resize=256,48,32,24,16 app.ico
- GIMP (free): each layer becomes one icon size, so scale copies of your image into separate layers and export with an .ico file name. The ICO export dialog lets you choose each size's color depth, up to 32 bpp with 8-bit alpha, and whether to store it as PNG, and GIMP's manual warns that not every program reads PNG-compressed icons.
- Dedicated icon editors: worth it when you want to redraw the 16 and 32 pixel versions by hand. Microsoft's design guidelines say simply scaling a 256 image down does not work for small sizes, which need their defining details exaggerated.
Troubleshooting
The icon looks blurry
The source was probably smaller than 256 pixels: the ICO Generator enlarges it to fill the 256 entry, and enlarging cannot add detail. The other cause is a missing 256 entry, which makes Windows stretch the 48 image on high-resolution screens. Start from a square source of 256 pixels or more and choose All (16, 32, 48, 256).
A white or black square surrounds the icon
The source has an opaque background, and the tool keeps it. Export the artwork again as a PNG with transparency, then convert that file.
Small sizes look muddy
Fine lines, gradients and lettering collapse at 16 pixels, and the tool makes every entry from the same image. Simplify the artwork with thicker shapes and no text, or redraw the smallest sizes in an icon editor.
Windows still shows the old icon
Windows caches icons. Apply the icon again through Change Icon, then sign out and back in, or restart, if the old picture lingers. A blank icon usually means the .ico file was moved or deleted.
An older program rejects the file
Some older software reads only bitmap entries, not the PNG entries the ICO Generator writes. Open the icon in GIMP and export it again with Compressed (PNG) unchecked.
Frequently asked questions
What sizes should an ICO file contain?
For Windows icons, use 16, 32, 48 and 256 pixels, which is the All preset. Microsoft's minimum for apps also lists 24 pixels; without it, Windows scales the 32 image down. For a favicon.ico, the small sizes are enough.
Can I just rename a PNG file to .ico?
No. An ICO file has to begin with the icon header and directory described above, while a renamed PNG still begins with the PNG signature, so Windows will not read it as an icon. Convert it instead.
How do I convert a JPG, SVG or other image to ICO?
The ICO Generator accepts JPG, JPEG, PNG, WebP and GIF directly. A JPG keeps its solid background because JPG cannot store transparency, and a GIF contributes only its first frame. For an SVG, convert it to PNG first with Image Converter: keep PNG as the Output Format and choose Transparent under Background Color. It renders the SVG at the width and height written in the file, so a 24-pixel SVG icon becomes a 24-pixel PNG. In that case, export a PNG of 256 pixels or more from your design app instead.
What is the largest image an ICO file can hold?
Each image in a standard Windows icon can be up to 256 × 256 pixels, and the directory records that size as 0. A bigger source is scaled down to each entry you choose.
Does converting PNG to ICO reduce quality?
Each size is a resized copy stored as PNG, which compresses without loss, so the 256 entry matches your source at that size. Smaller entries lose detail because they have fewer pixels, and any entry larger than the source is enlarged and looks soft.
Do I need an ICO file on a Mac?
No. macOS does not use ICO files for Finder icons: copy a picture, choose File > Get Info, select the small icon and paste, as described in Apple's custom icon steps. Make an ICO on a Mac only when the icon is for Windows or a website.