Contents
  1. The short answer
  2. What an ICO file actually contains
  3. How to convert ICO to PNG
  4. Why upscaling a converted favicon doesn't work
  5. Raster preview versus vector source
  6. Permission to convert is not permission to use
  7. What this article does not cover

The short answer

Converting a favicon to PNG means extracting one of the raster images stored inside an ICO file and saving it in PNG format. Image editors, command-line tools and online converters can all do this. The result is only as good as the image already inside the ICO, though. If you need a larger, sharper or editable version of the icon, re-export it from the original vector logo rather than converting the ICO.

What an ICO file actually contains

An ICO file is a container rather than a single picture. It can hold several images of the same icon at different pixel dimensions and color depths, such as a small version for browser tabs and larger ones for desktop shortcuts. Each image is stored either as an uncompressed bitmap or as embedded PNG data. Either way, every image in the file is raster: a fixed grid of pixels with no editable paths.

This explains why a conversion can produce several files, or a single file you didn't expect. A converter has to choose which embedded image to export. Some tools pick the largest, some pick the first, and some export them all.

How to convert ICO to PNG

  • Image editors: open the ICO in an editor that reads the format, check which sizes appear as layers or pages, and export the one you need as PNG.
  • Command line: ImageMagick reads ICO files and writes each embedded image as a separate PNG unless you select one by index.
  • Online converters: these are convenient for a one-off job, but check which embedded size they export. Avoid uploading artwork you are not permitted to share.
# Export every embedded image (creates favicon-0.png, favicon-1.png, ...)
magick favicon.ico favicon.png

# Export only the image at index 1
magick 'favicon.ico[1]' favicon-32.png

# Inspect the embedded images and their dimensions first
magick identify favicon.ico

The index order depends on how the ICO was built. Run the identify step before choosing an index, and confirm the output dimensions afterward. PNG supports full alpha transparency, so a transparent background normally carries over. Check older bitmap-based icons visually anyway, because they can store transparency as a separate mask that some tools handle inconsistently.

Why upscaling a converted favicon doesn't work

Small favicon sizes are often refined by hand on the pixel grid. Strokes are snapped to whole pixels, details are simplified or removed, and edges are adjusted so the mark stays legible at tiny dimensions. Those choices suit the size they were made for. Enlarging a small PNG extracted from an ICO magnifies the stair-stepped edges and simplified shapes; it adds no detail. Shrinking a large embedded image instead blurs fine lines that a hand-tuned small version would have kept crisp.

In practice, export each PNG size you need from the matching image in the ICO, if one exists. For any size the ICO doesn't contain, go back to the source artwork.

Raster preview versus vector source

A PNG made from an ICO is a raster preview of the logo, not the logo artwork itself. It contains no editable paths, so you can't reshape it cleanly, recolor it precisely or scale it without loss. An SVG or other vector file is different, but only if it actually contains vector paths. A file with a vector extension can still hold nothing but an embedded raster image, so open it and inspect it before treating it as a vector master.

If you own the vector logo, the most reliable workflow is to export each PNG size directly from it. Refine the smallest sizes on the pixel grid, then assemble a new ICO from those PNGs if you still need one.

Permission to convert is not permission to use

A website's favicon is easy to download and convert, but having the file does not give you the right to modify it, reuse it or use the mark it represents. Logos are commonly protected as trademarks, and the artwork and any lettering in them may carry separate rights. Converting your own favicon is routine. Using someone else's requires their permission or a clear basis such as an applicable brand-use policy.

What this article does not cover

No specific evidence about particular tools, test results or file samples was available for this topic. The guidance above reflects general, verifiable properties of the ICO and PNG formats rather than measured comparisons. Check how any specific converter behaves with your own files.