Skip to content
cliplimeClipLime

Convert PNG to ICO

A real multi-size .ico from your PNG, with transparency kept, made on your own device.

Runs on your device, nothing is uploaded

Add the PNG you want as an ICO file

or drop it here, or paste from the clipboard

PNG files · a square picture of 256 pixels or more works best · nothing is uploaded

At a glance

What it does
Turns one PNG into one .ico file that holds several sizes: 16, 24, 32, 48, 64, 128 and 256 pixels, of which you choose any.
Default
A web favicon with 16, 32 and 48 pixel pictures. One button switches to the Windows set of 16, 24, 32, 48 and 256.
Transparency
Kept. Every picture inside the ICO is a 32-bit RGBA PNG, so soft see-through edges survive.
Not a ZIP unless you ask
The result is just favicon.ico. A switch adds the PNG sizes, the Apple and Android icons, the HTML lines and a manifest.
Checked
After building the file the tool reads its directory back and lists the sizes it really holds.
Limit
Pictures up to 100 megapixels. Icons stop at 256 by 256 pixels, which is the largest an ICO can hold.
Privacy
The PNG stays on your device.

How to do it

  1. 1

    Add your PNG

    Choose or drop the PNG. A square picture at least as large as your biggest size gives the sharpest result.

  2. 2

    Choose the sizes

    Press the Website or Windows app button, or switch single sizes on and off. Pick Fit to keep a non-square picture whole, or Fill to cut it to a square.

  3. 3

    Decide about the extras

    Leave Also make the other favicon files off for a plain .ico, or switch it on for the full set in one ZIP.

  4. 4

    Make and download

    Press the button. The result card lists the sizes found inside the finished file.

What is inside an ICO file

An ICO file is a small directory followed by several pictures of the same icon at different sizes. The program that shows the icon picks the picture that fits the place it is drawn. Microsoft's documentation says Windows looks for an exact size match first, and if there is none it takes the next size up and scales it down.

That is why one PNG becomes several pictures. Each picture is a square, from 1 to 256 pixels. The size is stored in one byte, so 256 is written as 0, which is the reason you will see "0" in a technical dump of an ICO directory. Since Windows Vista the pictures can be PNG compressed, and Microsoft recommends that 256 pixel pictures always are.

MDN notes that ICO is mostly a Windows format that browsers still read. Browsers take the picture that suits a tab, so 16 and 32 pixels matter most there.

Which sizes to put in

  • A website favicon: 16, 32 and 48. Tabs use 16 pixels, and 32 pixels when the screen is sharper. The 48 pixel picture is there because Google Search wants a favicon larger than 48 pixels and 48 is the usual step to include.
  • A Windows app or shortcut: 16, 24, 32, 48 and 256. Microsoft's guide to Win32 icons calls these the bare minimum, and says that with a 256 pixel picture Windows only ever has to scale down. Windows asks for more sizes on high-density screens, for example 24 pixels in the taskbar at 100 percent scale and 48 pixels at 200 percent.
  • Everything up to 256. Tick 64 and 128 as well if you want the best match on large icon views. Each picture is stored separately, so the file grows with every size you add.

The 256 pixel picture is the heaviest. In our test a 200 pixel PNG became a 41 KB ICO with five sizes, and most of that was the 256 pixel entry.

Transparency, and the PNG you start from

A PNG can have an alpha channel, and the ICO keeps it. The tool draws every size from your picture with a Lanczos filter on straight RGBA pixels, so a see-through logo stays see-through and its soft edges stay soft. Check how it looks on a dark taskbar as well as a light one.

If the PNG is not square, Fit shows all of it and leaves empty space on two sides, while Fill cuts a square from the middle. Space around the picture adds a margin, Background fills the square with a colour, and Rounded corners can make a circle.

A picture smaller than a size you asked for is enlarged, and the page says so. A 200 pixel PNG gives a soft 256 pixel entry, so either leave 256 out or start from a bigger picture, ideally an SVG.

Where this ICO will not work

Wikipedia notes that PNG pictures inside an ICO cannot be read before Windows Vista. MDN still suggests the older bitmap form inside ICO files for that reason. This tool writes only the PNG form, because every current browser and every supported version of Windows reads it.

An ICO file is also not a good web image on its own. MDN says ICO files should not be used in web content other than as a favicon. For logos on a page, use PNG, WebP or SVG.

Questions people ask

Can I put several PNG files into one ICO?

No. This page makes one ICO from one PNG, with the same artwork at several sizes. That is how Windows and browsers use ICO files: one icon, many sizes.

Which sizes does a Windows icon need?

Microsoft lists 16, 24, 32, 48 and 256 pixels as the minimum for a Win32 app icon. The Windows app button here selects exactly those five.

Does the ICO keep the transparency of my PNG?

Yes. Each picture inside is a 32-bit RGBA PNG. Pixels that were transparent in your PNG stay transparent unless you choose a background colour.

Why is my ICO bigger than my PNG?

It holds several pictures, and each is stored as its own PNG. The 256 pixel one is by far the biggest, so leave it out of a website favicon if file size matters.

Can I use the ICO as a favicon?

Yes. Save it as favicon.ico in the root of your site, and add a link tag like the one the page shows. Switch on the extras if you also want the Apple icon, the web app icons and a manifest.

Is my PNG sent to a server?

No. The PNG is drawn and packed in your browser. The page loads WebAssembly code from this site to optimise images, but not your file.

Guides that help

All Images guides →