Convert ICO to PNG

An ICO is a container holding the same icon at several sizes, and a PNG holds exactly one picture — so converting ICO to PNG means one of those images is chosen and the rest are left behind. The largest is what comes out, with its transparency intact. Drop the file above and it is decoded and rewritten in your browser.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The PNG holds exactly what the ICO held.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

What ICO to PNG actually does

ICO 139 KBPNG 139 KB 0% smaller

A photographic scene — smooth gradients, soft edges, grain. This is the case PNG is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

ICO 7 KBPNG 7 KB 0% smaller

A transparent background and a gradient across the shape. PNG either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

ICO 3 KBPNG 3 KB 1% smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

An icon file is a folder, and a PNG is one page out of it

This is the thing most converters do not tell you. An ICO is not an image; it is a small directory with several images inside it, each at a different size, so that Windows can show a crisp 16-pixel version in a crowded taskbar and a crisp 256-pixel version on the desktop without scaling either. A well-made application icon commonly holds four to six entries. A PNG has room for one picture and no directory at all.

So the conversion is not a re-encoding, it is a selection followed by a re-encoding, and the interesting question is which entry gets selected. Everything else on this page follows from that.

The largest entry is the one that becomes the PNG

The decoding is done by your browser rather than by a library shipped with this page, and every browser icon decoder returns the biggest image in the directory. That was measured rather than assumed: an icon file built with 16, 32, 48 and 256 pixel entries, each drawn in a different colour so the result could not be mistaken, came back as a 256-pixel PNG in the colour of the 256 entry. Rewriting the directory smallest-first, largest-first and shuffled changed nothing.

The practical consequence is that you cannot choose. If the file holds a 256-pixel image, that is the one you get; the 16, 32 and 48 pixel drawings are discarded without a message, and they are frequently the ones somebody spent the most time on.

Two hundred and fifty-six pixels is the ceiling on any icon

An ICO entry records its width and height in a single byte each, which stops at 255, and the format reserves the value 0 to mean 256. That is the whole ceiling: no icon file anywhere holds an image wider than 256 pixels, so no PNG produced from one can be larger either.

This matters when somebody has asked you for a logo. An icon file is not a source asset, and a 256-pixel PNG placed on a slide at full width or printed at any size will look soft. If the PNG is destined for anything larger than a thumbnail, go and find the original artwork rather than converting the icon; the icon was made from it, not the other way round.

The transparent corners come through the conversion untouched

Both formats carry a proper eight-bit alpha channel, so a rounded icon, a cut-out mark or a soft drop shadow arrives in the PNG exactly as it was drawn. There is no background colour to choose and no white box to crop off afterwards. On a test icon the corner pixel of the output reads 0,0,0,0 — fully transparent, not black at zero opacity.

That is the reason PNG is the right target for this and JPG is not. If the icon is going anywhere it might sit on a coloured background — a dark documentation theme, a slide, an app store grid — the alpha channel is the entire point of doing the conversion at all.

Nothing is thrown away in the pixels themselves

Both ends are lossless. The icon is decoded to raw pixels and those exact values are written into the PNG, so there is no quality setting to get wrong and no generation loss if you convert the same file twice. What changes is the packaging, not the picture.

The PNG is then run through oxipng, which typically removes a large fraction of what the plain encoder writes without touching a single pixel. On the 8,471-byte test icon the resulting 256-pixel PNG was 1,737 bytes — smaller than the icon it came from, because the icon was carrying four copies of the same drawing and the PNG carries one.

Getting the 16 or 32 pixel drawing out instead

If the small entry is what you actually want, this page cannot give it to you and neither can any converter that goes through a browser decoder. The small sizes in a good icon are not scaled-down copies; they are redrawn, with strokes snapped to whole pixels and detail removed so the mark stays legible at that size. Shrinking the 256-pixel PNG produces something visibly worse.

The tool for the job is an icon editor. GIMP opens an ICO and presents every entry as a separate layer, which you can export one at a time, and it costs nothing. IcoFX does the same on Windows with a friendlier interface.

What an old favicon.ico will actually give you

Favicons pulled off the web are usually much smaller than the ceiling suggests. A file written before high-density screens mattered often holds only a 16-pixel image, sometimes a 16 and a 32; the 256-pixel entry became common only once Windows and browsers started using it for larger tiles. So a favicon.ico from an older site can produce a 16-pixel PNG, and that is the honest maximum of what was in the file.

The result will look correct and be almost unusable for anything but a favicon. It is not a fault of the conversion — the picture at any greater size was never stored. Treat it as evidence that the site never published a large version, and go looking elsewhere for the mark.

Putting the PNG back into a favicon or an app icon set

Modern favicon markup accepts PNG directly, and most sites now declare a 32-pixel PNG, a 180-pixel apple-touch-icon and an SVG alongside the traditional icon file at the root. If you converted an ICO to PNG in order to modernise a site, the PNG you get here is the right input for those declarations provided the source held a large enough entry.

For a native application icon the platform will ask for exact pixel dimensions — and a 256-pixel PNG cannot honestly fill a 512 or 1024 pixel slot. Where the platform wants those, the icon file is the wrong starting point and the vector or the full-resolution original is the right one.

Converting a folder of icon files in one pass

Drop the whole set. Each icon is decoded and written out separately and the results come back as a ZIP, which is the usual shape of this job: somebody inherits a directory of application icons and needs every one of them as a picture for a documentation page or an asset inventory.

Because the work happens in your browser there is no queue and no per-file upload, and the tenth file is handled exactly like the first. Files that hold only a small entry will produce small PNGs, so check the dimensions in the ZIP rather than assuming the set is uniform — mixed icon sets almost never are.

How to get a PNG out of an ICO file

  1. Drop your ICO file onto this page, or click to choose one.
  2. The largest image inside it is decoded in your browser.
  3. Download the PNG, transparency intact.

ICO against PNG: a set of icons against a single picture

ICO compared with PNG
ICOPNG
Full nameWindows IconPortable Network Graphics
File extension.ico.png
Media typeimage/x-iconimage/png
CompressionLossless — nothing is discardedLossless — nothing is discarded
First published19851996
Published byMicrosoftPNG Development Group
SpecificationISO/IEC 15948
LicensingPublished, not standardisedOpen standard
Standing todayNicheCurrent
Bit depth816
Colour it can describeRGB, indexed paletteRGB, greyscale, indexed palette
Largest image256 px per side2,147,483,647 px per side
Opens in a browserEvery browserEvery browser
Considered insteadSVGWebP, SVG, JXL

What is lost

PNG holds one page. A multi-page ICO converts a page at a time rather than in one file.

What survives

Nothing is discarded. ICO and PNG both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.

Transparency survives. Both ICO and PNG store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Opening the result

GIMP reads both ICO and PNG, so there is a way to check the result against the original without a second tool.

What each format is for

ICO is Microsoft's format, published in 1985. It records 8 bits per channel.

PNG comes from PNG Development Group and dates from 1996, specified as ISO/IEC 15948. Adobe Photoshop, GIMP and Paint.NET all read it.

ICO to PNG: which size comes out, and what survives

An ICO holds several sizes. Which one becomes the PNG?

The largest. The file is handed to your browser’s own icon decoder, and that decoder returns the biggest image in the directory regardless of the order the entries are written in. A file holding 16, 32, 48 and 256 pixel images gives a 256-pixel PNG and the other three are not written anywhere.

How do I get the 16-pixel version instead?

Not from here. Pulling one specific entry out of the container needs an icon editor — GIMP opens an ICO and shows every entry as a separate layer, which is the quickest free route. Scaling the 256-pixel PNG down to 16 is not the same picture: a hand-tuned 16-pixel icon is usually redrawn rather than shrunk.

Does the transparency survive?

Yes, exactly. Both formats carry a full alpha channel, so the transparent corners of a rounded icon come out transparent in the PNG rather than filled with white. Measured on a test icon: the corner pixel reads 0,0,0,0 in the result.

Can I make the PNG larger than the icon was?

No. The maximum-width setting only ever shrinks; there is nothing in an icon file to enlarge from. An ICO tops out at 256 pixels on its longest edge by specification, so 256 is the largest PNG any icon file can honestly produce.

Is anything lost in the conversion?

Not in the pixels. Both formats are lossless, so every surviving pixel is bit-for-bit what the icon held. What is lost is the container: the smaller entries, and the fact that they were ever a set.

Is the icon uploaded anywhere?

No. Your browser decodes the ICO and the PNG is written in the same tab, so the file never leaves the machine. The network tab stays empty while the conversion runs.

More about these formats

Where these figures come from

The claims this page makes about ICO and PNG are checkable, and these are the documents that settle them.