What an ICO file is and why you need one

An ICO file is an image format that stores icons — the small pictures you see next to program names, in browser tabs, or on desktop shortcuts. Windows, Mac, and Linux all use ICO files to display these icons in consistent sizes. If you want to use a custom image as an icon for a folder, application, or website, you need to convert it to ICO format first.

Most image formats like JPG, PNG, or GIF won't work as icons because they don't store the multiple sizes and color depths that operating systems need. An ICO file can hold several versions of the same image at different resolutions — 16x16 pixels, 32x32 pixels, 64x64 pixels, and larger — so the icon looks sharp whether it appears tiny in a file list or larger on a desktop.

You can create an ICO file from any existing image on your computer, or you can start with a new design. The process takes just a few minutes and requires either a free online converter or a graphics program you may already have installed.

Key Takeaways

  • ICO files store icons at multiple sizes in a single file, which is why they work better than JPG or PNG for icons.
  • You can convert any image to ICO format using a free online converter, no software installation needed.
  • If you want more control over the final result, graphics programs like GIMP (free) or Photoshop can also create ICO files.
  • The image you start with should be square and at least 256x256 pixels for the best quality at all sizes.
  • After you create the ICO file, you can assign it to folders, shortcuts, or websites using your operating system's built-in tools.

Prepare your image before converting

Start with an image that is already on your computer or one you have downloaded. The image should be square — the same width and height — because icons are always square. If your image is rectangular, you will need to crop it or add space around it to make it square first.

Check the image size. If it is smaller than 256x256 pixels, the ICO file will look blurry when displayed at larger sizes. If you have a small image, you can still convert it, but the quality will be lower. For the sharpest result, start with an image that is at least 256x256 pixels, or ideally 512x512 pixels or larger.

Save your image in a common format like PNG or JPG. Make sure you know where the file is stored on your computer — you will need to locate it when you upload it to a converter or open it in a graphics program. PNG is often the better choice because it preserves image quality without compression.

Convert using a free online tool

The fastest way to create an ICO file is to use a free online converter. Open your web browser and go to a converter site like CloudConvert, Convertio, or Online-Convert. These sites let you upload an image and download the ICO file without installing any software.

On the converter site, look for a button labeled "Upload," "Choose File," or "Select Image." Click it and navigate to the image file on your computer. Select the file and click "Open." The file will upload to the site.

Once the image is uploaded, look for a dropdown menu or option to choose the output format. Select "ICO" from the list. Some converters let you choose the size of the icon — if you see this option, select the largest size available, usually 256x256 or 512x512 pixels. Then click "Convert" or "Download." The ICO file will download to your computer in a few seconds.

Check your Downloads folder for the new ICO file. It will have a name similar to your original image but with the .ico extension at the end instead of .jpg or .png.

Create an ICO file using GIMP

If you want more control over how the icon looks, you can use GIMP, a free graphics program available for Windows, Mac, and Linux. GIMP lets you resize, crop, and edit your image before converting it to ICO format. Download GIMP from gimp.org if you do not already have it installed.

Open GIMP and go to File > Open. Navigate to your image file and click "Open." The image will load into GIMP. If the image is not square, go to Image > Canvas Size and adjust the width and height to be the same number. If the image is not large enough, go to Image > Scale Image and increase the size to at least 256x256 pixels.

Once your image is the right size and shape, go to File > Export As. A dialog box will open. At the bottom, change the filename to end with .ico instead of the current extension. For example, change "myicon.png" to "myicon.ico." Then click "Export." GIMP will show you options for the ICO format — the default settings work fine for most uses. Click "Export" again to save the file.

Assign the ICO file to a folder or shortcut

Once you have created your ICO file, you can use it as a custom icon for folders or shortcuts on your computer. On Windows, right-click the folder or shortcut you want to change and select "Properties." Click the "Customize" tab, then click "Change Icon." A dialog box will open asking you to locate an icon file. Click "Browse," navigate to your ICO file, select it, and click "Open." Then click "Apply" and "OK." The folder or shortcut will now display your custom icon.

On Mac, right-click the folder or shortcut and select "Get Info." Drag your ICO file onto the small icon in the top-left corner of the info window. The icon will update immediately.

Use an ICO file for a website favicon

A favicon is the small icon that appears in a browser tab next to the page title. If you have a website, you can use your ICO file as the favicon. Upload the ICO file to your website's root directory — the main folder where your website files are stored — and name it "favicon.ico."

Then add one line of code to the head section of your HTML file: <link rel="icon" href="favicon.ico" type="image/x-icon">. When someone visits your website, the browser will display your custom icon in the tab.

If you use a website builder like WordPress, Wix, or Squarespace, you usually do not need to edit HTML. Instead, look in the site settings for an option to upload a favicon or site icon. Upload your ICO file there, and the builder will handle the rest.

Troubleshoot common problems

If your ICO file does not appear after you assign it to a folder or shortcut, try restarting your computer. Windows sometimes caches the old icon and needs to refresh. If the icon still does not show, make sure the ICO file is not corrupted by converting it again using a different tool.

If the icon looks blurry or pixelated, the original image was probably too small. Go back to your original image, make it larger if possible, and convert it again. A blurry icon cannot be fixed after conversion — the problem is always in the source image.

If an online converter rejects your image, try converting it to PNG format first using a different tool, then convert the PNG to ICO. Some converters are picky about which image formats they accept.

Frequently Asked Questions

Can I convert a photo to an ICO file?

Yes, any image can be converted to ICO format. However, photos with lots of detail often look muddy when shrunk down to icon size. Icons work best with simple, bold designs or logos. If you want to use a photo, crop it to focus on one clear subject rather than a busy background.

What size should my ICO file be?

Start with an image that is 256x256 pixels or larger. The ICO file itself will contain multiple sizes, so the converter will automatically create smaller versions for use in file lists and tabs. You do not need to create these sizes yourself.

Can I use an ICO file on Mac or Linux?

Yes. ICO files work on Windows, Mac, and Linux. The process for assigning a custom icon varies by operating system, but the ICO file format itself is universal. Some Mac and Linux programs may also accept PNG or other formats, so check the program's documentation if ICO does not work.

Is it safe to use online converters?

Yes, reputable converters like CloudConvert and Convertio are safe. They do not store your images after conversion. If you are concerned about privacy, use GIMP instead — it runs entirely on your computer with no upload required.

Can I edit an ICO file after I create it?

You can edit the original image and convert it again, but you cannot edit an ICO file directly in most programs. If you need to make changes, go back to your original image file, edit it, and create a new ICO file from the updated version.