📖 What is an ICO File?
An ICO file is the image format Windows uses for icons. Unlike an ordinary picture, a single ICO is a small container that holds several versions of the same icon, each at a different pixel size and color depth.
That design solves a real problem. The same icon may appear as a tiny 16x16 image in a crowded taskbar and as a large 256x256 image on the desktop. Rather than stretch one picture and lose sharpness, the ICO bundles purpose-built sizes together and Windows simply shows whichever one fits the spot best.
You will find ICO files behind program icons, desktop shortcuts, file type icons and the small favicons that appear on browser tabs. The format was introduced by Microsoft in the earliest versions of Windows and is still in daily use today.
⚡ Quick Facts
| Full Name | Windows Icon (Icon image file) |
| Extension | .ico |
| Developer | Microsoft |
| MIME Type | image/vnd.microsoft.icon (also image/x-icon) |
| Holds | Multiple images in one file |
| Common Sizes | 16, 24, 32, 48, 64, 128, 256 pixels |
| Max Size Per Image | 256 x 256 pixels |
| Color Depths | 1, 4, 8, 24 and 32-bit |
| Image Encoding | BMP (DIB) or PNG (Windows Vista and later) |
| Related Format | CUR (Windows cursor) |
🧩 One File, Many Sizes
The defining feature of the ICO format is that one file carries many images. Each is a complete, ready-made icon at its own resolution. Here is the same icon stored at four common sizes inside a single ICO:
🔬 Inside an ICO File
An ICO is laid out as a short directory followed by the image data it points to. The structure is simple by design:
Icon Directory Header
A few bytes that mark the file as an icon and record how many images it contains.
Directory Entries
One entry per image, listing its width, height, color count, bit depth, data size and where the image sits in the file.
Image Data
The actual pictures, stored either as a BMP style bitmap or, since Windows Vista, as compressed PNG data for the larger sizes.
⚖️ ICO vs PNG
People often ask whether they should just use a PNG. The difference comes down to one being a single picture and the other being a container built for icons:
| Feature | ICO | PNG |
|---|---|---|
| Holds multiple sizes | Yes, many in one file | No, one image only |
| Built for | Windows icons and favicons | General web and app images |
| Transparency | 1-bit mask or 32-bit alpha | 8-bit alpha channel |
| Compression | Raw bitmap, or PNG for large sizes | Always compressed |
| Used as an app icon | Yes, the native choice | Not directly on Windows |
📐 Sizes & Color Depths
Each image inside an ICO has its own size and color depth, so you can mix a simple low-color version for tiny sizes with a rich full-color version for large ones.
🎯
Sizes
16, 24, 32, 48, 64, 128 and 256 pixels square. The directory entry stores width and height in one byte each, so 256 is the maximum, written as a zero.
🎨
Color Depths
1-bit (2 colors), 4-bit (16), 8-bit (256), 24-bit (true color) and 32-bit (true color plus alpha) are all valid within the same file.
🫧
Alpha Channel
The 32-bit depth adds an 8-bit alpha channel, giving 256 levels of transparency for smooth, anti-aliased icon edges.
🌐 The Favicon
The most familiar ICO on the web is the favicon, the little icon shown on a browser tab, in bookmarks and next to a saved shortcut. Browsers look for a file named favicon.ico at the root of a website.
Because a favicon appears at several sizes across tabs, history and desktop shortcuts, a single favicon.ico usually bundles 16x16, 32x32 and 48x48 versions. That is the multi-size strength of the ICO format put to everyday use.
favicon.ico at the site root remains the most widely supported fallback across browsers.
📂 How to Open an ICO File
An ICO opens in many tools, though most show only one size. To inspect every image packed inside, use a dedicated viewer:
✅ See Every Size (Recommended)
- Open Univik ICO Viewer in your browser.
- Drag and drop the .ico file, or browse to it.
- View each embedded image with its size and color depth.
- Export any single size to PNG when you need just one.
🧰 Other Ways to Open
- Web browser: drag the file into Chrome, Edge or Firefox.
- Image editors: GIMP and IrfanView open ICO files directly.
- Windows Explorer: shows the icon as a thumbnail.
- Windows Photos: opens one size, with limited support.
🛠️ How to Create an ICO File
There are two common ways to end up with an ICO file, depending on where the artwork starts:
🎨 From Your Own Image
To turn a PNG or other picture into an ICO, such as a favicon, use an icon editor or a favicon generator:
- Start from a square, high-resolution image so every size stays sharp.
- Add the sizes you want. For a favicon, include 16x16, 32x32 and 48x48.
- Export them together as a single .ico file.
🧰 From Icons Inside a File
To pull icons out of an ICO, DLL or EXE file and save them out, use the Univik ICO Converter:
- Load an ICO, DLL or EXE file that contains icons.
- Preview and select the icons you need.
- Export them to ICO, PNG or BMP.
🖱️ ICO vs CUR
The Windows cursor format, CUR, is almost the same file as an ICO. Both share the directory structure and image layout, with two differences:
🖼️
ICO
Marked as an icon. Holds static images for program and file icons.
🖱️
CUR
Marked as a cursor and adds hotspot coordinates that tell Windows the exact click point.
⚠️ ICO Limitations
🚫 What ICO Is Not For
- Photos: capped at 256x256, so it suits icons, not pictures.
- Animation: ICO is static. Use ANI or GIF for motion.
- Cross-platform icons: macOS uses ICNS, not ICO.
- Large artwork: bitmap sizes add up without PNG encoding.
✅ What ICO Is Great At
- Crisp icons: a tailored image for every size.
- Transparency: smooth edges with a 32-bit alpha channel.
- Favicons: the broadly supported site icon fallback.
- Windows integration: the native icon format.
❓ Frequently Asked Questions
🛠️ Related Tools
📝 Summary: Key Points About ICO Files
- ICO is the Windows icon image format
- Holds many sizes in one file
- Sizes from 16x16 up to 256x256
- Supports 1, 4, 8, 24 and 32-bit depths
- 32-bit alpha gives smooth transparency
- Large sizes can be stored as PNG inside
- Powers app icons and favicons
- Nearly identical to the CUR cursor format
- Open and inspect with an ICO viewer
- Create one with an ICO converter