PNG to ICO – complete guide

Author: Augusto Cesar Perin • Updated:

Favicons still rely on the ICO format for universal compatibility. This guide walks you through converting a PNG into a crisp multi‑size ICO, explains the ideal sizes, and shows how to ship a production‑ready setup in minutes.

Try it now: Open IcoSmith, drop your PNG, pick sizes 16, 32, 48, 64, 128, 256, and export. You can download either the ICO file or the full favicon package with all tags.

Why ICO is still needed

ICO can embed multiple bitmap sizes in one file. Windows and many legacy contexts prefer ICO, and some tooling still looks specifically for favicon.ico at the site root. Shipping an ICO ensures your brand mark appears correctly everywhere.

Recommended sizes

Start from a square source of at least 512×512. If your logo has very thin strokes, enable the “sharp small icons” profile in IcoSmith for better 16px clarity.

Step‑by‑step

  1. Open IcoSmith and drag your PNG (or click to choose).
  2. Select the sizes listed above. Keep transparent background unless you need a solid color.
  3. Preview the 16–32 px results; adjust the “sharp/smooth” profile if needed.
  4. Export the ICO, or click favicon package to get HTML tags, PNG fallbacks, mask icon and manifest.

Add it to your site

Place favicon.ico at the root and add the tags from the package in your <head>. We also recommend a 180×180 Apple Touch PNG and a mask icon SVG. See favicon sizes and best practices.

Troubleshooting

Ready? Generate your favicon now. You can also explore PNG → ICO, JPG → ICO and SVG → ICO tools.

What is inside an ICO file?

An ICO is a container of multiple bitmaps. Each entry is a PNG or BMP at a given resolution (for example 16×16, 32×32, 48×48, 64×64, 128×128, 256×256). When the OS or browser needs to render an icon, it picks the closest match instead of downscaling a single big image. That’s why multi‑size ICOs look sharper than one‑size favicons.

ICO vs PNG vs SVG

Prepare the source image

Small‑size quality: sharp vs soft profiles

At 16–32 px, details get fragile. IcoSmith provides two micro‑pipelines:

Preview both profiles at 16/32 px and pick the one that reads better. If strokes still disappear, simplify the logo or increase internal spacing.

Windows and Electron assets

If your app targets Windows, generate the optional Windows asset set: taskbar targetsize 16–96 (including 20/24) and Store logos. IcoSmith can export canonical filenames and organize subfolders to match Visual Studio conventions.

PWA/manifest setup

Beyond favicon.ico, modern sites should include a site.webmanifest declaring name, icons (192/512 maskable) and theme color. This enables install banners and proper icons on Android. IcoSmith’s package includes a ready manifest and Apple Touch 180×180 PNG.

Performance and caching

Accessibility and SEO

Deployment checklist