Convert PNG to ICO when you need one multi-size .ico instead of a renamed PNG. A PNG is one bitmap. An ICO is a container, so one favicon.ico can hold several sizes and the browser or Windows picks a layer. The form above this article does that in the browser and also downloads PNGs at 16, 32, 48, 180, 192 and 512. ImageMagick and Python below write the same kind of ICO from the command line. Which pixel size belongs on which surface is in the favicon dimensions guide.

How to convert PNG to ICO

  1. Start from a square PNG. 256×256 is enough for a favicon; 512×512 is the better source if you also export the manifest icons. Scaling down stays sharp. Scaling a 16 px or 32 px file up does not.
  2. Open Tools. Download ICO on Image to Favicon writes 16×16, 32×32 and 48×48 into one favicon.ico. The ZIP from that tool also includes the selected PNGs (16, 32, 180, 192 and 512 by default), site.webmanifest, and the HTML snippet.
  3. Or use the format converter on the same page: choose ICO, leave 16, 32 and 48 checked, and convert. Check 64, 128 or 256 only when the file is a Windows application icon.
  4. Put favicon.ico at the site root and point at it from the home page. The link tags are in the favicon size chart.

Which sizes belong in the ICO

For a website favicon, put these three layers in the file:

SizeInclude in favicon.ico?What uses it
16×16YesBrowser tab on a standard display
32×32YesBrowser tab on a high-DPI display
48×48YesWindows desktop shortcut
64×64, 128×128, 256×256Only for a Windows application iconLarge Windows icons. A site favicon does not need them, and they make /favicon.ico heavier

180×180, 192×192 and 512×512 stay as separate PNGs. They are the apple-touch-icon and the web manifest icons, not extra layers inside the ICO. The full chart is the favicon size guide.

Why ICO Still Matters in 2026

Method 1: Online Tool (Easiest)

The simplest way is Image to Favicon:

  1. Go to the Tools page.
  2. Upload your PNG image.
  3. Download ICO saves favicon.ico with 16, 32 and 48. The ZIP also packs the PNG sizes you leave selected, plus the manifest and HTML.
  4. To choose layers yourself, use the format converter on that page. 16, 32 and 48 start checked.

Bonus: The ZIP also includes the HTML code snippet and a site.webmanifest file — everything you need to add favicons to your site.

Method 2: Command Line with ImageMagick

For developers who prefer the terminal, ImageMagick is the gold standard:

# Install ImageMagick
# macOS: brew install imagemagick
# Ubuntu: sudo apt install imagemagick
# Windows: choco install imagemagick

# Convert PNG to ICO (single size)
magick convert input.png -resize 32x32 favicon.ico

# Favicon.ico: 16, 32 and 48
magick convert input.png -define icon:auto-resize=16,32,48 favicon.ico

# Optional, for a Windows application icon rather than a site favicon
magick convert input.png -define icon:auto-resize=16,32,48,64,128,256 favicon.ico

The three-size file is the one to publish as /favicon.ico. The browser or Windows picks a layer. The six-size command is for a Windows application icon, where 256×256 is a large icon and not a browser-tab asset.

Method 3: Using FFmpeg

If you already have FFmpeg installed, this writes a single 32×32 image into the ICO. It does not pack 16 and 48 alongside it, so the browser converter or ImageMagick is the better way to make a multi-size favicon:

ffmpeg -i input.png -vf scale=32:32 favicon.ico

Method 4: Python Script

Using the Pillow library. The list below is the favicon set. Add 64, 128 and 256 only for a Windows application icon:

from PIL import Image

img = Image.open('input.png')
img.save('favicon.ico', format='ICO', sizes=[(16, 16), (32, 32), (48, 48)])

PNG vs ICO: When to Use Each

FeaturePNGICO
Modern browser supportAllAll
Legacy browser supportIE 11+All IE versions
Multiple sizes in one fileNoYes
TransparencyYesYes
File sizeSmaller per sizeLarger (multi-size)
Windows shortcutsNoYes
Auto-detection by browsersOnly if declared in HTML/favicon.ico auto-detected

Best Practice: Use Both

The recommended approach is to provide both formats:

<!-- ICO as fallback -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">

<!-- PNG for modern browsers (crisper rendering) -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

Modern browsers will prefer the PNG. Older browsers and Windows shortcuts will use the ICO. You get the best of both worlds.

Tips for Best Results

PNG to ICO questions

What sizes should a PNG to ICO file include?

For a website favicon.ico, include 16×16, 32×32 and 48×48. The browser or Windows picks one of those layers. Add 64, 128 or 256 only when the file is a Windows application icon; those layers make a site favicon heavier than the tab needs. An ICO stores a separate bitmap for each size, which a single PNG cannot do. The rest of the set, including 180, 192 and 512, is in the favicon size guide.

Will a small PNG stay sharp at 256 px?

No. Start from a square PNG of at least 256×256 px, and 512×512 is safer. Each ICO size should be scaled down from that source. Enlarging a 16 px or 32 px PNG only produces a blurry large icon.

How do I convert PNG to ICO for free?

Open the Tools page, upload a square PNG, and use Download ICO. That file contains 16, 32 and 48 px. The format converter on the same page lets you check those sizes, and also 64, 128 and 256 if you need a Windows application icon. ImageMagick and Python on this page do the same packing from the command line.