Blog

How to create an ICO file from a PNG image

Turn a PNG into an ICO file in your browser, keep transparency where possible, and choose an image size that looks sharp as a Windows icon or favicon.

Rachel BennettTools and utilities 4 min read

You have a PNG logo or picture and need an ICO file for a Windows shortcut, app, or website. Changing the filename from .png to .ico does not convert the image. You need to export it in the ICO format.

You can do that with the Image Converter in your browser. The right source image matters too: a sharp, square PNG usually makes a better icon than a small or rectangular image.

Convert a PNG to ICO

  1. Open the Image Converter and choose your PNG image. You can convert up to 50 images at once, but use one image if you only need a single icon.
  2. Set the output format to ICO. The input file can remain a PNG. Changing the output format is what creates a new ICO file.
  3. Run the conversion and save the resulting file to your device. Keep the .ico file extension so Windows or your website can recognize the format.
  4. Open or apply the icon where you plan to use it. Check it at the size it will actually appear, since details that look clear in a large preview can disappear when the icon is small.

The converter works with image files in your browser. Your files stay on your device while you convert them; they are not uploaded.

Choose an image that works as an icon

For a Windows icon

Start with a square PNG, ideally at least 256 by 256 pixels. Common icon display sizes include 16 by 16, 32 by 32, and 48 by 48 pixels. A larger source gives the system more detail to work with when showing the icon at a larger size, but it cannot add detail that was missing from the original image.

Windows ICO files can contain images at more than one size. The PNG you convert has a single pixel size, and the converter's output determines which image sizes are included in the ICO. If you need a particular set of sizes for software packaging, check the finished file against the requirements of the app or installer that will use it.

For a website favicon

A favicon is the small image shown near a website title in a browser tab or bookmark. ICO is useful when you need to support systems or tools that expect a file named favicon.ico. Modern websites can also use PNG favicons, so check the instructions for your site or hosting platform before choosing a format.

Favicons often appear at 16 by 16 or 32 by 32 pixels. Use a simple mark with strong contrast, not a detailed image or a line of tiny text. A logo that looks good at full size may be hard to recognize in a browser tab.

For a transparent logo

ICO supports transparent areas, so a PNG with a transparent background can keep that appearance after conversion. Check the result against both a light and a dark background. If the PNG already has a solid white background, conversion will not remove it. You would need to make the background transparent in an image editor before converting.

For a Mac app

ICO is mainly used for Windows icons and some website workflows. If you are creating an icon for a macOS app, check the app's requirements first. Mac apps commonly use the ICNS format, so an ICO may not be accepted.

Fix common ICO conversion problems

  1. The icon looks blurry. Use a larger, sharper PNG, preferably a square image with clean edges. Converting a small image to a larger ICO does not restore lost detail. If the image contains fine text, simplify it or remove the text for the small icon version.
  2. The icon has a white box around it. Check whether the original PNG has transparent pixels or a white background. If the background is part of the image, remove it in an image editor, export a transparent PNG, and convert that file again.
  3. The image looks cropped or squeezed. Check that the source is square before converting. A rectangular logo can look wrong when used in a square icon space. Add transparent space around the logo to make a square canvas rather than stretching the artwork.
  4. The file still opens as a PNG. Check that you saved the converted output, not the original source. The file should have an .ico extension. Renaming a PNG file does not change its contents, so convert it again if necessary.
  5. A program rejects the ICO file. Check that the program accepts ICO and whether it requires particular image sizes or color settings. Some app builders and website platforms have their own icon requirements, even when the file is a valid ICO.

Keep the original PNG as well as the converted ICO. The PNG is easier to edit, and you can use it to make a sharper icon later if you change the artwork or need a different size.