OnlineTextLab
Esc

PNG to ICO Converter

Build one .ico file holding every size you need, from 16 to 256 px, with a preview of each.

Drop your PNG image here

Or paste it with Ctrl V

or drop it here, or paste from the clipboard

Packs one or more sizes into a single .ico file. A square image of 256 px or more works best.

Runs on your device. Your files and text are not uploaded.

About PNG to ICO

An ICO is not simply a renamed image. It's a small container that holds the same icon at several sizes, so that Windows or a browser can pick the sharpest one for the job. Renaming a PNG to .ico doesn't create that, and some software will refuse it.

You'd want this for a Windows program or shortcut, for a desktop folder icon, or as a favicon.ico when you don't need the full web set. If you're building a website and want phone icons and HTML too, the Favicon Generator is a better fit.

Tick the sizes you want. The defaults of 16, 32, 48 and 256 px cover most uses, and you can see each one as it will really appear.

How it works

Your PNG is drawn at each ticked size, with high quality smoothing and repeated halving so that small sizes stay legible. Each result is compressed to PNG, and those are packed into an ICO: a 6 byte header, a 16 byte directory entry per size, then the images themselves. The tests read the output back and check every entry.

A non-square PNG is centered on a transparent square so it doesn't get stretched. Modern Windows and browsers read PNG data inside ICO files, which also keeps the 256 px entry small.

How to use PNG to ICO

  1. Press Select a PNG image, or drop it on the page.
  2. Tick or untick sizes under Sizes inside the file. The previews update at once.
  3. Check the small sizes. Fine detail often needs simplifying at 16 px.
  4. Press Download ICO.

A real run

A 512 × 512 logo PNG with a transparent background, using the default sizes of 16, 32, 48 and 256 px, gave logo.ico at 7.3 KB. Reading the file back, its directory lists four entries, and each one decodes as a PNG of the stated size.

When it helps

  • Giving your Windows app, shortcut or installer its own icon.
  • Customizing a folder icon on your desktop.
  • Creating a classic favicon.ico for a simple website.
  • Supplying an icon resource that a build tool or game engine requires in .ico format.

Tips for a better result

  • Start from a square PNG of 256 px or more, so that nothing has to be enlarged.
  • Simple shapes win at small sizes. If your logo contains words, consider a version with only its symbol.
  • For Windows apps, include 16, 32, 48 and 256 px. Add 24 and 64 for smoother scaling at intermediate display settings.
  • Crop first using the Image Cropper if your image has wide margins. SVG to PNG gives a clean large source if your logo is vector.

Good to know

  • Every size is stored as PNG inside the ICO. Current systems handle that, but software written before Windows Vista may not.
  • All sizes come from one source image. You can't supply hand-drawn pixel art for each size.
  • ICO tops out at 256 px per side, so that's the largest choice.
  • This page takes PNG only. For other formats, convert to PNG first.

Questions people ask

Can I just rename my .png to .ico?

Browsers often tolerate that, but Windows and many build tools don't, because the file lacks the ICO header. It would also contain one size only. This tool writes a proper container.

Which sizes should I include?

16, 32 and 48 cover browser tabs, taskbars and small Explorer views. Include 256 when the icon is for a Windows program, since large Explorer views use it. Each extra size adds a little to the file.

Why is my icon fuzzy at 16 px?

Shrinking a detailed logo to 16 by 16 leaves very little room for it, and thin strokes fade out. Use a simplified symbol with thicker lines, then generate the icon from that.

What happens if my PNG is not square?

It's placed in the center of a transparent square so the proportions stay true, and a notice tells you. Crop it to a square first if you want the icon to fill the space.

What to use next

Learn more

Last reviewed . Read our editorial policy.