RoRoTo
On-device

Turn a PNG into a Windows ICO

An ICO is not a PNG with a renamed extension. Here is what the format actually stores, which sizes Windows looks for, and how to build one without sending your image anywhere.

An ICO file is the image format Windows uses for application icons, desktop shortcuts, folder badges and browser tab favicons. On the surface it looks like one picture, but it is really a small container: a single .ico can hold several images at different sizes and colour depths, and Windows chooses whichever one fits the spot it is drawing. A PNG, by contrast, is exactly one image at exactly one size. That difference is small to state and large in consequence — it is the reason a Windows icon looks crisp everywhere from a tiny taskbar to a large thumbnail, while a single scaled PNG looks sharp in one place and fuzzy in another.

Because all the sizes travel inside one file, you give Windows a single .ico and it does the choosing for you: the 16-pixel picture in the taskbar, the 48-pixel one on the desktop, the 256-pixel one when someone opens a folder at large icon size. There is no folder of images to manage and no guesswork about which file gets used where.

What an ICO actually is

Inside an .ico file is a small directory. Each entry records a width, a height, a colour depth and the image data itself. Windows reads the directory and picks the best match for wherever it is about to draw — a 16-pixel entry for the taskbar, a 256-pixel one for a large view. A PNG has no such directory; it is one flat image, and whatever program displays it has to scale it on its own.

You will meet ICO files most often as application icons and shortcut icons, and as the little image in a browser tab — the favicon. Browsers accept a multi-size .ico for a favicon and choose the appropriate entry for the tab, the bookmark bar and the home-screen shortcut. One file covers all of those places.

Why one ICO needs several sizes

Windows draws the same icon in very different contexts, and shrinking one big image down is never as good as drawing a purpose-made small one. Each size has a job:

  • 16×16 — the taskbar, system tray and compact list views. At this size there are only a few hundred pixels to work with, so fine detail disappears.
  • 32×32 — window title bars, quick-launch buttons and most small toolbar icons. This is where simple logos still read clearly.
  • 48×48 — desktop shortcuts and large toolbar buttons. The most commonly seen size on a classic desktop.
  • 128×128 and 256×256 — high-DPI displays, large thumbnail views and the icon shown in file properties. These carry the detail that the small sizes drop.

When you include several sizes, Windows can use a dedicated small image at 16 pixels instead of squeezing the 256-pixel one down with smoothing. The result is a crisp icon at every scale, rather than one that is sharp only at the size you happened to export.

Start with a square source image

ICO entries are square, so begin with a square picture. If your artwork is not square, crop it first — Crop image lets you take a square region without changing the proportions of what is inside. Resist the temptation to feed a wide image into the converter and let it stretch: the icon will look squashed or elongated.

Size matters less than shape, but a larger source gives the scaler more to work with. A 512×512 or 1024×1024 square downscales cleanly to all five target sizes. If your square is already small, Resize images can enlarge it first, though upscaling will not add detail that was never there.

Backgrounds deserve a thought too. Icons usually sit on many different backdrops, so a transparent background reads better than a solid white or coloured block. If your source has a plain background you want gone, prepare a transparent version with Remove background before converting.

Build the ICO in your browser

The conversion itself is straightforward. Open Image to ICO and drop in a PNG or JPG. The tool draws your image on a canvas at each selected size and writes the results into one .ico file:

  1. Add a square PNG or JPG. Nothing is uploaded — the image stays in the tab.
  2. Preview the sizes you care about. Check 16, 32, 48, 128 and 256, or only the ones you actually need.
  3. Look at each preview at its real size, especially the small ones, and go back to simplify the artwork if they turn to mush.
  4. Download the finished .ico and set it as an application icon, a shortcut icon or a site favicon.

Including all five sizes is a good default: the file is still tiny and Windows gets a proper image at every scale. Fewer sizes are fine when you know exactly where the icon will be used, but keeping 16 and 256 at least means both the taskbar and high-DPI views stay sharp.

PNG compression and older Windows versions

Modern ICO files usually store the 256×256 image as a PNG-compressed entry. This keeps the file small without losing the detail of the large picture. The trade-off is compatibility: PNG-compressed ICO entries were introduced with Windows Vista, so very old systems such as Windows XP cannot read them and may show a blank or broken icon.

If you need to support those old systems, leave PNG compression off so the large image is stored uncompressed. The file grows a little, but the icon works on a much wider range of Windows versions. For any Windows computer from Vista onward, the compressed form is the better choice and is the normal default.

Common pitfalls and how to avoid them

  • Non-square images get distorted. An ICO wants square pixels. A wide or tall source will be stretched to fit, so crop to a square first rather than letting the converter do it.
  • Fine detail dies at small sizes. A logo with thin lines or tiny text will turn into a blur at 16 pixels. Simplify the design, thicken strokes and drop small lettering; keep the full version only for 128 and 256.
  • Solid backgrounds look wrong. An icon appears on light and dark surfaces. Prefer a transparent background, and check the small previews against different backdrops.
  • Only exporting one size. A single 256-pixel image scaled down by Windows looks worse than a set of purpose-sized entries, which is the whole reason the ICO format exists.

Making a Windows icon is mostly about preparing one clean square image and letting the ICO container carry it at every size. Check the small previews, pick the sizes you need, and the result stays crisp from the taskbar to the desktop.

Frequently asked

What is the difference between an ICO and a PNG?

A PNG is one image at one size. An ICO is a container that can hold several images at different sizes in a single file, and Windows picks the right one for the taskbar, desktop or thumbnail.

Which sizes should I include?

Include 16, 32, 48, 128 and 256 if you can. Windows uses 16 for the taskbar, 32 for window icons, 48 for desktop shortcuts, and 128 or 256 for high-DPI displays and large thumbnails.

Do I need a square image?

Yes. ICO images are square, so crop your source to a square first. A non-square image will be stretched and look distorted at every size.

Why does my icon look blurry at 16 pixels?

Fine lines and small text cannot survive at 16×16. Simplify the design — thicken strokes and remove tiny details — and keep the detailed version for the larger sizes.

Will my image be uploaded?

No. The upload, canvas scaling and ICO writing all happen inside your browser, so your image never leaves your device.

Does PNG compression affect older Windows versions?

Yes. The 256×256 PNG-compressed entry needs Windows Vista or newer. Older systems such as XP need the image stored uncompressed, so turn compression off if you must support them.

Tools mentioned

Published 2026-11-24 · All guides