PNG to ICO – complete guide
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.
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
- 16×16 and 32×32: classic tab icons.
- 48×48 and 64×64: Hi‑DPI desktop.
- 128×128 and 256×256: Windows and large contexts.
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
- Open IcoSmith and drag your PNG (or click to choose).
- Select the sizes listed above. Keep transparent background unless you need a solid color.
- Preview the 16–32 px results; adjust the “sharp/smooth” profile if needed.
- 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
- Looks blurry at 16px: re‑export with the “sharp small icons” profile or simplify the logo.
- Wrong color background: ensure the PNG has transparency; avoid flattening on export.
- Browser still shows the old icon: hard refresh or bump the file name with a query string to bust cache.