Skip to content
freeonlinefileconvert

How to make a website ICO icon from a PNG

You want to create a favicon.ico file from a PNG image to use on your website, but you don't know where to start. Creating a proper .ico file with several sizes inside is important, as it allows browsers and Windows to pick the sharpest one for each place, such as a 16-pixel browser tab or a 256-pixel tile.

What is an ico file

An ICO file is a small container that holds the same icon at several sizes, so browsers and Windows can pick the sharpest one for each place. This means that you can have a single file that contains multiple versions of your icon, each optimized for a specific size and use case.

The ICO file format is supported by Windows since Vista and every modern browser, making it a widely compatible choice for icons. Additionally, each size is scaled down from your image in steps for a clean result and stored as PNG inside the ICO, which helps to maintain the quality of the icon.

Choosing the right sizes

When creating an ICO file, it's essential to choose the right sizes to include. For a website favicon, 16, 32, and 48 pixels cover browser tabs, bookmarks, and search results. These sizes are the standard for favicons and are widely supported by browsers and search engines.

For a Windows program or folder icon, you should include sizes up to 256 pixels to ensure that the icon stays sharp on high-resolution screens and in large icon views. This will help to maintain the quality of the icon, even when it's displayed at larger sizes.

Creating an ico file

To create an ICO file from a PNG image, you can use the online converter tool. This tool allows you to select your PNG image, choose the desired sizes, and create an ICO file with multiple sizes inside.

  1. Select your PNG image, or drop it on the box. You can also use JPG, WebP, or SVG images if you prefer.
  2. Choose Favicon or Windows icon sizes, depending on your intended use case. The Favicon option creates 16, 32, and 48 pixels, while the Windows icon option adds 24, 64, 128, and 256 pixels.
  3. Click Create ICO and download the .ico file. This will generate an ICO file with the selected sizes and download it to your device.

Once you've created your ICO file, you can rename it to favicon.ico and put it in the root folder of your website. Browsers and Google will find it there automatically and use it as your website's favicon.

Additional considerations

When creating an ICO file, it's also important to consider the transparency of the icon. Fortunately, the ICO file format supports transparency, which means that transparent areas of the PNG will stay transparent at every size. This allows the icon to blend with light and dark browser tabs and desktop backgrounds seamlessly.

If you're starting from a JPG image, keep in mind that it will not have transparency, so the background will be preserved in the ICO file. To create a transparent icon, it's best to start from a PNG or SVG with a transparent background. You can use the online converter tool to create an ICO file from your image, and rest assured that your images are decoded and converted inside your browser on your own device, without being uploaded to a server.

This means that you can use the converter tool even without an internet connection, once the page has loaded. This helps to maintain your privacy and security, especially when working with sensitive images or documents.

FAQ

Does the ICO keep a transparent background?

Yes. Transparent areas of the PNG stay transparent at every size, so the icon blends with light and dark browser tabs and desktop backgrounds. JPG images have no transparency, so they keep their background.

Can I use a JPG or SVG instead of a PNG?

Yes. JPG, WebP and SVG images are accepted too. SVG logos are drawn at high resolution first, which gives very sharp small icons.

Are my images uploaded to a server?

No. Images are decoded and converted inside your browser on your own device, so scans of documents and private photos are never sent to us or stored anywhere. Once the page has loaded it keeps working even without an internet connection.

Try the free tool

You are one of the first

FreeOnlineFileConvert has just launched. Create a free account now and join our Family & Friends list: the full Pro plan, free for life.

Pro0 €6,99 €
Join for free