Skip to content
Back to all articles
Image4 min readNovember 20, 2026

How to Create an ICO File From a PNG (Favicons and Windows Icons)

What is inside an .ico file, which sizes to include, how to prepare a PNG that stays clear at 16 pixels, and how to use the icon on a website or a Windows shortcut.

How to Create an ICO File From a PNG (Favicons and Windows Icons) article
In this guide
  1. What is inside an ICO file
  2. Step 1: Prepare a square PNG
  3. Step 2: Design for 16 pixels
  4. Step 3: Convert
  5. Using the icon
  6. Troubleshooting

An .ico file is the icon format of Windows, and the classic favicon format of the web. You cannot make one by renaming a PNG — Windows will refuse it — because an ICO is a small container that holds the same picture at several sizes. This guide explains what goes inside, how to prepare your image so the icon looks good even at 16 pixels, and how to use it. To do the conversion, use the free PNG to ICO converter.

What is inside an ICO file

An ICO file holds a list of images, each a square at a different size. When Windows or a browser needs the icon, it picks the size closest to what it is about to draw:

SizeWhere it is used
16 × 16Browser tabs, small icons in File Explorer
24 × 24Some Windows lists and toolbars
32 × 32Taskbar, desktop at normal scaling, browser tabs on high-DPI screens
48 × 48Desktop and Explorer “medium icons”
64 and 128Large icon views and high-DPI scaling
256 × 256“Extra large icons” in Windows; stored compressed as PNG inside the ICO

Including several sizes matters because shrinking is done ahead of time with a good filter. If the file only had a 256-pixel image, Windows would have to scale it down on the fly, and small icons would look fuzzy.

The PNG to ICO converter builds 256, 128, 64, 32 and 16 pixel versions in one file. Sizes larger than your source image are left out rather than blown up, so start with a PNG of at least 256 × 256.

Step 1: Prepare a square PNG

Make it square. Icons are square. A wide logo keeps its proportions in the icon and ends up as a thin strip. Crop to a square, or place the logo on a square transparent canvas, with the Crop Image tool or your design app.

Use 256 × 256 pixels or more. 512 or 1024 is fine too; it will be scaled down.

Keep a transparent background. PNG supports transparency, and the ICO keeps it, so the icon looks right on light and dark taskbars.

Leave a little margin. A few pixels of empty space around the shape stops it touching the edges of a tab or a tile.

Step 2: Design for 16 pixels

The hardest size is the smallest. At 16 × 16 a whole icon is 256 pixels — fewer than the letters in this sentence. A few rules:

  • Use the symbol, not the wordmark. Company names become an unreadable grey line. Use the logo mark, or a single bold letter.
  • Thick shapes, few details. Lines thinner than about 1/16 of the width disappear.
  • Strong contrast. A pale icon vanishes on a light browser tab.
  • Test it. After converting, look at the icon in a browser tab and on the taskbar, not just in a large preview.

Step 3: Convert

  1. Open PNG to ICO and add your PNG (several at once is fine).
  2. Click Convert. Each PNG becomes one .ico; several come back in a ZIP.
  3. Download the file.

Browsers cannot write ICO files by themselves, so this conversion runs on the server: the file is sent over an encrypted connection and the temporary copies are deleted as soon as the icon is returned.

Using the icon

As a website favicon. Name the file favicon.ico and upload it to the root folder of your site, so it is reachable at https://yoursite.com/favicon.ico. Browsers look there automatically, and you can also point to it from your page head:

For a complete modern set — an SVG icon, the 180-pixel Apple touch icon and the Android manifest icons — see our guide to favicon sizes and formats, or make them all at once with the Favicon Generator.

As a Windows folder icon. Right-click the folder → Properties → Customize → Change Icon → Browse, and pick your .ico.

As a shortcut icon. Right-click the shortcut → Properties → Change Icon → Browse.

For a desktop app. Frameworks such as Electron (electron-builder), .NET (the ApplicationIcon property) and PyInstaller (--icon app.ico) take an .ico for the Windows executable.

Troubleshooting

The new favicon does not show. Browsers cache favicons aggressively. Open the site in a private window, or add a version to the link: /favicon.ico?v=2.

Windows still shows the old icon. Windows keeps an icon cache. Signing out and back in usually refreshes it.

The icon looks blurry at small sizes. The source had fine detail that does not survive shrinking. Simplify the design for small sizes.

I only have a JPG. JPG has no transparency. Convert it to PNG with JPG to PNG, remove the background if needed, then make the ICO. If your logo is an SVG, go straight to SVG to ICO for the sharpest result.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

PNG to ICO

Convert a PNG into a multi-size .ico file for favicons, Windows shortcuts and app icons: 16, 32, 64, 128 and 256 px in one file, transparency kept.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.