What an ICO file is and why you need one

An ICO file is an image format Windows uses for icons — the small pictures that appear next to your program name, on desktop shortcuts, or in your browser tab. If you want a custom icon for your application, website, or folder, you need to convert your image into ICO format first. Most image editors and online converters can do this in a few clicks.

The main reason to create an ICO file is that Windows only recognizes this specific format for application icons. A JPG or PNG will not work in the same way. ICO files also support multiple sizes in a single file — so one ICO can contain a 16×16 pixel version for toolbars, a 32×32 version for desktop icons, and a 256×256 version for modern displays, all at once.

Key Takeaways

  • ICO files are the standard format Windows uses for application and folder icons, and you cannot use JPG or PNG files in their place.
  • You can create an ICO file from any image using free online converters, image editing software like Photoshop or GIMP, or command-line tools.
  • The best starting image is a square PNG with a transparent background, at least 256×256 pixels, though smaller sizes will work.
  • Most ICO files contain multiple sizes of the same icon so Windows can display the right version depending on where it appears.

Using a free online converter

The fastest way to create an ICO file is through an online image converter. You upload your image, choose your settings, and download the result — no software to install. Open your web browser and search for "image to ICO converter" or go directly to a site like CloudConvert, Convertio, or Online-Convert.

Upload your image file (JPG, PNG, GIF, or BMP all work). Most converters let you set the output size — choose 256×256 pixels if you want a high-quality icon that works on modern screens. Some converters offer advanced options like adding multiple sizes to a single ICO file, but the default settings usually work fine. Click the convert button, then download your new ICO file to your computer.

The main limitation of online converters is that they work best with simple, clean images. If your image has a white background, the converter may not remove it automatically — you may need to edit your image first to add transparency (a transparent background shows as checkered squares in most image editors).

Creating an ICO file in GIMP

GIMP is a free image editor available for Windows, Mac, and Linux. If you already have GIMP installed or want a tool you control completely, this method gives you the most flexibility. Open GIMP and load your image by going to File > Open.

Before you export, make sure your image is square — ICO files work best when width and height are the same. Go to Image > Scale Image and set both dimensions to the same number (256×256 is standard, but 128×128 or 512×512 also work). If your image has a background you want to remove, use the Select by Color tool to select the background, then press Delete to make it transparent.

Once your image is ready, go to File > Export As. In the filename box, type a name and add the .ico extension at the end — for example, "myicon.ico". GIMP will recognize the extension and show you ICO export options. Click Export, then in the dialog that appears, you can choose to include multiple icon sizes in one file. The default settings work for most uses — just click Export again and your ICO file is ready.

Using Photoshop or other paid editors

If you use Adobe Photoshop, the process is similar to GIMP. Open your image, resize it to a square (Image > Image Size), and make sure the background is transparent if you want one. Go to File > Export As, choose ICO from the format dropdown, and save the file.

Other paid editors like Corel PaintShop Pro and Affinity Photo also support ICO export. The steps are nearly identical: open your image, resize to square, remove the background if needed, then export with the .ico extension. Check your software's help menu if you cannot find the export option — some editors hide it under "Save for Web" or require a plugin.

Preparing your image before conversion

The quality of your ICO file depends on the image you start with. The best source image is a PNG file with a transparent background, at least 256×256 pixels in size. If your image is smaller, the converter will enlarge it, which can make it look blurry or pixelated.

If your image has a solid background color you want to remove, do that before conversion. In most image editors, you can use the "Select by Color" tool to select the background, then delete it. This leaves a transparent background that looks professional. If you skip this step, your icon will have a colored square behind it, which looks less polished on a desktop or in a browser tab.

Make sure your image is square — if it is rectangular, the converter will either stretch it (making it look distorted) or add empty space around it (making it look small). Crop or resize your image to equal width and height before you convert.

Where to use your new ICO file

Once you have your ICO file, you can use it in several places. To set a custom icon for a Windows shortcut, right-click the shortcut, choose Properties, click the Shortcut tab, then click Change Icon. Browse to your ICO file and click Open. The shortcut will now display your custom icon.

For a website favicon (the icon that appears in the browser tab), upload your ICO file to your website's root folder and add this line to the HTML head section: <link rel="icon" href="favicon.ico">. Replace "favicon.ico" with your filename if it is different. Most modern websites use this method.

If you are building a Windows application, your development software (Visual Studio, Delphi, or others) will have a place to specify the application icon — usually in the project properties or manifest file. Consult your software's documentation for the exact steps.

Troubleshooting common problems

If your ICO file does not appear correctly, the most common cause is that Windows is showing a cached version of the old icon. Right-click your desktop, choose Refresh, or restart your computer. Windows caches icons in memory, so changes do not always show immediately.

If your icon looks blurry or pixelated, your source image was probably too small. ICO files cannot improve image quality — they can only store what you give them. Start with a larger source image (at least 256×256 pixels) and try again.

If an online converter rejects your file, check that it is actually a valid image. Some files labeled as JPG or PNG are corrupted or incomplete. Try opening the file in an image viewer first to confirm it displays correctly. If the file is fine but the converter still rejects it, try a different converter — not all support every image format.

Frequently Asked Questions

Can I create an ICO file from a JPG image?

Yes. JPG files work fine as source images for ICO conversion. However, JPG does not support transparency, so if your JPG has a white or colored background, that background will be included in your ICO file. For a cleaner look, convert your JPG to PNG first and remove the background before creating the ICO.

What size should my ICO file be?

256×256 pixels is the standard size for modern Windows icons. Smaller sizes like 128×128 or 64×64 also work, but they may look pixelated on high-resolution displays. Larger sizes like 512×512 are not necessary — Windows will shrink them down anyway.

Can one ICO file contain multiple icon sizes?

Yes. Many converters and image editors let you embed multiple sizes in a single ICO file — typically 16×16, 32×32, 64×64, and 256×256 pixels. Windows automatically picks the right size depending on where the icon appears. This is optional — a single-size ICO file works fine, but multiple sizes look sharper across different contexts.

Why does my favicon not show up in the browser?

Browsers cache favicons aggressively. After uploading your ICO file and adding the HTML link, clear your browser cache or open the page in a private window to see the change. It can take hours or days for the favicon to update across all browsers and devices.

Is there a command-line way to create ICO files?

Yes. If you use ImageMagick (a free command-line tool), you can convert images with a command like convert image.png -define icon:auto-resize=256,128,64,32,16 favicon.ico. This method is faster for batch conversions but requires some comfort with command-line tools.