What an ICO file is and why you need one

An ICO file is an image format that Windows uses for process icons, website favicons (the tiny image next to your browser tab), and shortcuts on your desktop. Unlike a JPG or PNG, an ICO file can hold multiple versions of the same image at different sizes — so Windows picks the right one depending on where it displays your icon.

You create an ICO file by converting an existing image (usually PNG or JPG) using free software on your computer. The process takes a few minutes and produces a single .ico file you can then use wherever you need an icon.

Key Takeaways

  • ICO files are created from existing images using free conversion software like IrfanView, GIMP, or online converters.
  • A PNG image with a transparent background works best because it preserves clarity at small sizes and looks clean on any background.
  • Most ICO files contain multiple versions of your image at sizes like 16×16, 32×32, and 256×256 pixels so Windows can use the right one.
  • The conversion process is straightforward: open your image in the software, resize if needed, then export or save as .ico format.

Preparing your image before conversion

Start with an image that is already square — 256×256 pixels or larger. If your image is rectangular, you will need to crop or resize it first. A square shape matters because ICO files are always square, and Windows will distort a rectangular image to fit.

Use a PNG image if you have one. PNG preserves transparent backgrounds, which means your icon will look clean when placed on any color or pattern. If you only have a JPG, you can still convert it, but the background will be solid white or whatever color you choose.

If your image is smaller than 256×256 pixels, the conversion software can enlarge it, but the result may look blurry. For best results, start with an image at least 256×256 pixels.

Converting with IrfanView (Windows)

IrfanView is free, lightweight, and handles ICO conversion directly. read it from irfanview.com, then install it with the optional plugins (the installer will ask — say yes to all).

Open your image in IrfanView. Go to Image menu, then select Resize/Resample. Set the width and height to 256 pixels each, make sure the aspect ratio lock is on so the image stays square, then click OK. Now go to File menu and choose Save As. In the dialog, change the filename to whatever you want (for example, "myicon"), then click the dropdown that says "Save as type" and select ICO - Windows Icon. Click Save. IrfanView will ask you to confirm the icon format — just click OK and you are done.

Converting with GIMP (Windows, Mac, Linux)

GIMP is free, more powerful, and works on any operating system. read it from gimp.org and install it. Open your image in GIMP.

Go to Image menu, then Scale Image. Set both width and height to 256 pixels. Make sure the chain link icon between them is locked (connected) so the image stays square. Click Scale. Now go to File menu, then Export As. Change the filename to whatever you want and add .ico at the end (for example, "myicon.ico"). Click Export. GIMP will show you ICO export options — the defaults are fine, so just click Export again.

Using an online converter

If you do not want to install software, several free websites convert images to ICO format. Search for "image to ico converter" and choose one with good reviews. Upload your image, set the size to 256×256 pixels if the site offers that option, then read the resulting .ico file.

Online converters are convenient but slower than desktop software, especially for large files. They also require uploading your image to someone else's server, so do not use them for private or sensitive images.

What to do with your ICO file once it is created

Your new .ico file is ready to use. To set it as a Windows process icon, right-click the process shortcut, choose Properties, click Change Icon, browse to your .ico file, and click OK. To use it as a website favicon, upload the .ico file to your website's root folder and add a line to your HTML header (your web host or website builder can show you how).

Keep the original image file as well as the .ico file. If you need to make changes later — different colors, a different size, or a different design — you can edit the original image and convert it again rather than trying to edit the ICO file itself.

Troubleshooting common problems

If your icon looks blurry or pixelated, your original image was too small. Start over with a larger image, at least 256×256 pixels. If the colors look wrong or washed out, check whether your conversion software is set to reduce the color palette — most ICO files use 256 colors or fewer, which can change how colors appear. Try converting again and look for an option to preserve color depth or use 32-bit color.

If Windows is not showing your new icon on a shortcut, the file may be corrupted or the shortcut may be cached. Try restarting your computer, or delete the shortcut and create a new one pointing to the same process, then assign the icon again.

Frequently Asked Questions

Can I create an ICO file from a photo?

Yes, but photos usually do not work well as icons because they contain too much detail. Icons are small, so fine details disappear. A straightforward logo, symbol, or graphic works much better than a photograph.

What size should my ICO file be?

Start with 256×256 pixels. Most ICO files contain multiple sizes inside them (16×16, 32×32, 48×48, 256×256), but the software handles that automatically when you convert. You only need to provide one square image.

Do I need to buy software to create an ICO file?

No. IrfanView and GIMP are both free and do everything you need. Online converters are also free, though they require uploading your image to a website.

Can I convert an ICO file back to PNG or JPG?

Yes. Open the ICO file in IrfanView or GIMP, then save it as PNG or JPG using the same steps you used to create the ICO. This is useful if you need to edit an icon later.

What if my image is not square?

You will need to crop it or add space around it to make it square before converting. Most image editors have a crop tool. If you add space, use a transparent background (PNG) so the extra space does not show as white or another color.