Windows is picky about icons. You can pick any picture for your desktop wallpaper, but when you try to give a folder, a shortcut or your own application a custom icon, the file browser only lists .ico files. Renaming logo.png to logo.ico looks like it should work, and sometimes an app even accepts it, but the icon then appears blurry, blank or with a black background in some views.
The reliable fix is a genuine ICO file containing the right set of sizes. This guide explains why Windows needs several sizes in one file, which sizes to include, how to build the icon from a PNG, and how to apply it to folders, shortcuts and software projects.
Why a real ICO matters
An ICO file is a container that holds the same icon at multiple pixel sizes. Windows chooses the closest size for each place it draws the icon: small in the navigation pane and details view, medium on the taskbar, large in "Large icons" and "Extra large icons" views, and bigger again on high-DPI screens with display scaling turned up.
A renamed PNG is just one image with the wrong extension. Programs that check the file's actual contents may reject it, and even when it loads, Windows has to scale that single image on the fly for every view, often badly.
Which sizes to include
| Size | Where Windows typically uses it |
|---|---|
| 16 × 16 | Details view, navigation pane, title bars |
| 24 × 24 | Some toolbars and scaled small icons |
| 32 × 32 | Desktop and taskbar at standard scaling |
| 48 × 48 | Medium icons view |
| 64 × 64 | Scaled medium icons on high-DPI screens |
| 128 × 128 | Scaled large views |
| 256 × 256 | Large and extra large icons views |
Including 16, 32, 48 and 256 covers the essentials; adding 24, 64 and 128 gives Windows closer matches on scaled displays. The cost is only a few kilobytes.
PNG-compressed versus classic bitmap entries
Inside an ICO, each size can be stored as a compressed PNG or as an uncompressed bitmap. PNG entries are much smaller and are supported by Windows Vista and later and by every modern browser. Classic bitmap entries exist for very old software, such as Windows XP-era programs and some older build tools, that cannot read PNG entries.
Build an ICO with our tool
The PNG to ICO converter builds a genuine multi-size icon in your browser.
- Open PNG to ICO and drop a PNG (JPG and WebP also work). A square PNG with a transparent background gives the best icon; start from at least 256 × 256 pixels so the large sizes stay sharp.
- Under Sizes to include, tick the sizes you want. By default 16, 32, 48, 64, 128 and 256 are selected, and 24 is available too.
- Choose how to handle Non-square images: Fit (transparent padding) keeps the whole image, Crop to centre square fills the icon, and Stretch to square distorts it, which is rarely what you want.
- Choose the Entry format: PNG-compressed (smallest) for modern Windows and browsers, or Classic BMP up to 48px to store the small sizes as uncompressed 32-bit bitmaps for very old software.
- Check the Sizes inside the .ico previews, which show each size with its storage type and byte size.
- Click Download ICO. The button shows the final file size.
Design tips for small sizes
Look closely at the 16 and 32 pixel previews. Fine lines and small text vanish at those sizes. If your logo has a wordmark and a symbol, use just the symbol. A simpler, bolder version of the design usually beats an exact miniature.
Using your new icon
Change a folder's icon
- Right-click the folder and choose Properties.
- Open the Customize tab and click Change Icon.
- Click Browse, select your
.icofile and confirm.
Keep the .ico somewhere permanent. If you move or delete it, the folder falls back to the default icon.
Change a shortcut's icon
Right-click the shortcut, choose Properties, and on the Shortcut tab click Change Icon, then browse to your file. This works for shortcuts on the desktop and in the Start menu folder.
Software projects
Desktop application frameworks and installers usually expect an .ico for the Windows executable icon. Put the file in your project's resources and reference it in the build configuration. Include 256 × 256 so the app looks sharp in large views.
Website favicons
A favicon.ico for a website only needs 16, 32 and 48 pixel sizes. For a complete website set, including Apple touch and Android icons plus the HTML tags, use the Favicon Generator instead.
Other ways to make ICO files
ImageMagick builds multi-size icons from the command line:
magick logo.png -define icon:auto-resize=256,128,64,48,32,24,16 app.icoGIMP can export ICO files and lets you set the colour depth and compression for each layer, which is useful when you hand-draw small sizes as separate layers.
Dedicated icon editors are worth it if you design icons regularly and want pixel-level control over each size.
Troubleshooting
The icon has a black or white box around it
The source PNG was not transparent, or the transparency was lost in an earlier step. Remove the background first with Remove Background, then build the ICO again.
The icon still shows the old picture
Windows caches icons. Refresh the folder, sign out and back in, or restart Explorer. Changing the file name of the .ico also forces Windows to read it again.
The icon looks blurry
The source was too small, or a size is missing. Include the sizes listed above and start from a larger image, perhaps upscaled carefully with the Image Upscaler or rendered at a large size from a vector with SVG to PNG.
Checking an existing icon
To see what sizes an icon already contains, open it in ICO to PNG, which lists and extracts every image inside.
Frequently asked questions
Can I just rename a PNG to .ico?
It may appear to work in some programs, but it is not a real icon file. Windows and other software may reject it or display it poorly, so convert it properly.
What size should an ICO file be?
Include several sizes: at least 16, 32, 48 and 256 pixels, plus 24, 64 and 128 for scaled displays. Windows picks the best one for each view.
Does an ICO file support transparency?
Yes. Both PNG-compressed and 32-bit bitmap entries support full alpha transparency, so start from a PNG with a transparent background.
Should I choose PNG-compressed or classic BMP entries?
Choose PNG-compressed for current Windows versions and websites. Use classic BMP entries only if the icon must work in very old software.
How do I make a round icon?
Crop your image to a circle with a transparent background first, for example with Circle Crop Image, then convert the PNG to ICO.