FileKiwi

Image formats6 min read

What Is an ICO File? Icon Sizes, Favicons and How to Make One

ICO is the Windows icon format behind favicon.ico. What is inside an ICO file, which favicon sizes matter, ICO vs PNG and SVG, and how to make a favicon that works everywhere.

An ICO file is an icon image format from Microsoft Windows that can hold several sizes of the same picture in one file. Windows uses it for program, folder and shortcut icons, and websites use it as favicon.ico, the small logo you see in a browser tab and next to bookmarks. Storing many sizes in one file is what sets it apart from a PNG.

This guide explains what is inside an ICO file, which sizes matter, how to make a favicon step by step and when a PNG or SVG icon is the better choice.

What is an ICO file?

ICO has been the Windows icon format since the first versions of Windows. Its main trick is that one file stores several images, usually the same design at different sizes. The system or the browser picks the version that fits the spot: a tiny one for a browser tab, a larger one for a desktop shortcut.

That gives better results than shrinking one big picture on the fly. A designer can even draw the 16 pixel version simpler and bolder, so it stays readable at tab size, while the 256 pixel version keeps every detail.

Websites adopted the format in the late 1990s, when browsers started showing a small site icon from a file named favicon.ico in the root folder of a site. Browsers still look for that file today.

What is inside an ICO file

  1. A header of 6 bytes that says the file is an icon and how many images it holds.
  2. A directory with one 16 byte entry per image: width, height, color depth, data size and the position where that image starts in the file.
  3. The images themselves, each stored as bitmap data, as in a BMP file, or, since Windows Vista, as a complete PNG image.

Each image in an ICO can be up to 256 by 256 pixels. 32 bit images carry an alpha channel, so icons can have soft, transparent edges. The CUR format for mouse pointers uses almost the same structure, plus a hotspot that marks the exact point that clicks.

PNG to ICO

Make a favicon or app icon with six sizes inside. Free, no signup.

Open tool

Common icon sizes and what they are for

Size in pixelsTypical use
16 x 16Browser tabs, bookmarks, small icons in Windows lists
32 x 32Browser tabs on high resolution screens, Windows taskbar and small views
48 x 48Medium icons in File Explorer and on the desktop
64 x 64Medium icons on screens with display scaling turned up
128 x 128Large icon views
256 x 256Extra large icons in File Explorer, sharp at any Windows scaling

A classic favicon.ico only needs 16, 32 and 48 pixels. Windows program and folder icons benefit from the full range up to 256 pixels.

How to make a favicon

A favicon is the small icon of a website. Here is a current way to make one that works in every browser.

  1. Start with a square design at least 256 by 256 pixels, ideally 512, saved as PNG with a transparent background. If your logo is wide, use only the symbol or first letter, or crop it to a square with Crop Image and its 1:1 preset.
  2. Simplify it. At 16 pixels, thin lines and small text vanish. One bold shape in a strong color reads better than a full logo with a slogan.
  3. Convert it to ICO. Add the PNG to PNG to ICO and download one .ico file with 16, 32, 48, 64, 128 and 256 pixel versions inside. Starting from a photo or JPG logo? JPG to ICO does the same; an image that is not square is scaled to fit and padded with transparent space.
  4. Upload it to the root folder of your site, named favicon.ico, so it opens at yourdomain.com/favicon.ico.
  5. Add the link tags below to the head of your pages, then open the site in a private window. Browsers keep old favicons in their cache for a while, so a normal window may still show the previous icon.

The favicon link tags

The basic tag for an ICO favicon is:

<link rel="icon" href="/favicon.ico">

Modern browsers also accept PNG and SVG favicons. If you have your logo as a vector file, an SVG icon stays sharp at every size and can be added as a second tag:

<link rel="icon" href="/icon.svg" type="image/svg+xml">

Browsers that understand SVG icons use it, and the others fall back to the ICO. For iPhone and iPad home screens, add a 180 by 180 pixel PNG with a third link tag whose rel value is apple touch icon, written with hyphens between the words.

Favicons in Google Search

Google shows favicons next to search results. Google's favicon guidelines ask for a square icon and recommend one larger than 48 by 48 pixels. The supported formats listed there include ICO, PNG, GIF and JPEG, but not SVG, which is one more reason to keep an ICO or PNG next to an SVG icon.

Favicon sizes at a glance

FileSizeUsed by
favicon.ico16, 32 and 48 px inside (FileKiwi adds 64, 128 and 256)Browser tabs, bookmarks, older browsers, Google Search
SVG iconScalable, one file for every sizeRecent versions of Chrome, Edge, Firefox and Safari
Apple touch icon (PNG)180 x 180iPhone and iPad home screen
Web app manifest icons (PNG)192 x 192 and 512 x 512Android home screen and installable web apps

A small business site or blog is fine with the first and third rows. Add the others when you have a vector logo or an installable web app.

ICO vs PNG: which one to use

FeatureICOPNG
Images per fileSeveral sizes in one fileOne image
TransparencyYesYes
Largest size256 x 256 per imagePractically unlimited
Opens inWindows, browsers, some image appsAlmost every app and website
Best forWindows icons, the classic favicon.icoWeb graphics, touch icons, app store and document icons

Use ICO when Windows needs an icon, such as a custom folder or shortcut icon, and for the classic favicon.ico. Use PNG for almost everything else. If you are deciding between image formats in general, our comparison of PNG vs JPG explains why PNG suits logos with transparent backgrounds.

How to open and use an ICO file

  • Windows: double click to open it in the Photos app, or open it in Paint. Most viewers show only one of the sizes inside.
  • Mac: Preview opens ICO files.
  • Browsers: drag an ICO file into Chrome, Edge, Firefox or Safari to view it.
  • iPhone and Android: support depends on the app, and many photo galleries do not show ICO files at all.

To edit an icon or use it somewhere that wants a normal image, convert it with ICO to PNG. FileKiwi saves the largest size inside the ICO as a PNG and keeps the transparency.

Give a Windows folder or shortcut a custom icon

  1. For a shortcut, right click it and choose Properties. On the Shortcut tab, click Change Icon and browse to your .ico file.
  2. For a folder, right click it, choose Properties, open the Customize tab and click Change Icon.
  3. Click OK and Apply. The larger sizes inside the ICO keep the icon sharp in large icon views and on high resolution screens.

Common favicon and icon problems

  • The old favicon still shows. Browsers cache favicons stubbornly. Check in a private window or another browser before you change anything else.
  • The icon looks blurry or muddy. The design is too detailed for 16 pixels. Use a simpler version for the favicon and keep the full logo for larger places.
  • The icon is tiny inside a big empty square. The source image was wide or had a lot of empty margin. Crop it close to a square before converting.
  • White box around the logo. The source had a white background instead of a transparent one. Remove the background first, then convert again.
  • Wrong icon in search results. Make sure the favicon file is not blocked for crawlers and is linked from your home page. Google updates it on its own schedule.

Which icon files your website needs

For most sites, two files cover nearly everything: favicon.ico in the root folder and a 180 pixel PNG for Apple devices. Add an SVG icon if you have a vector logo, and manifest icons only for an installable web app.

Keep one square master PNG of 512 pixels or more. When the logo changes, you can regenerate every size from it in a few minutes instead of hunting for old files.

FAQ

What is an ICO file used for?

An ICO file is used for icons: program, folder and shortcut icons in Windows, and the favicon.ico that browsers show in tabs and bookmarks. Its advantage is that one file holds several sizes, so each place shows a version drawn for that size instead of a blurry scaled copy.

How do I make a favicon?

Design a simple square logo of at least 256 by 256 pixels with a transparent background and save it as PNG. Convert it to ICO, upload the file to your site's root folder as favicon.ico and add a link tag with rel set to icon in the head of your pages. Check the result in a private window.

What size should a favicon be?

A favicon.ico should contain at least 16, 32 and 48 pixel versions. Google recommends a square favicon larger than 48 by 48 pixels for search results. Add a 180 by 180 PNG for iPhone home screens, and 192 and 512 pixel PNG icons if your site is an installable web app.

Is ICO or PNG better for a favicon?

Use both. An ICO file works in every browser, including old ones, and holds several sizes in one file. PNG favicons are supported by modern browsers and are needed for Apple touch icons. A common setup is favicon.ico plus a 180 pixel PNG, with an optional SVG icon for sharp tabs.

How do I open an ICO file?

On Windows, double click it to open it in Photos or open it in Paint. On a Mac, Preview opens ICO files, and any desktop browser shows one when you drag it into a tab. To edit the icon or use it elsewhere, convert it to PNG first.

Try PNG to ICO now

Make a favicon or app icon with six sizes inside. Works in your browser, free and without a watermark.

Open PNG to ICO
AL
Anna Lewiński, FileKiwi editor

Anna edits the FileKiwi guides. She tests every tip on real files from phones, cameras and office apps before it goes live.