Icon File

ICO File Format (.ico) – Complete Guide

The ICO file format is one of the oldest and most recognizable image formats in the computing world. Whether you have noticed it in your browser's address bar or as a small image on your desktop shortcuts, ICO files are everywhere in the Windows ecosystem. This guide covers everything you need to know about the format, from its technical structure to practical use cases and conversion options.

What is an ICO File?

An ICO file is a container image format used primarily to store icons for use in Microsoft Windows operating systems and web browsers. The .ico file extension identifies these files, which are designed to hold one or more images at different sizes and color depths within a single file. This multi-image structure allows the operating system to automatically select the most appropriate size and resolution depending on context — for example, showing a larger version on the desktop and a smaller version in the taskbar.

The format was introduced by Microsoft alongside the original Windows 1.0 release in 1985. It was developed to provide a standardized way to display graphical icons within the graphical user interface (GUI) that Windows was pioneering at the time. Over the decades, the ICO format evolved to support higher color depths, larger resolutions, and even PNG compression, keeping it relevant despite its age.

On the web, ICO files became universally recognized as the standard format for favicons — the small icons that appear in browser tabs, bookmarks, and browser history entries. This usage was popularized by Internet Explorer 5 in 1999 and later adopted by all major browsers.

Technical Specifications

File Structure

An ICO file is essentially a container that holds a directory of image entries. The file begins with a 6-byte header that identifies the file type and specifies how many images are stored inside. Each image entry in the directory points to actual image data stored later in the file. This architecture allows multiple sizes and color variants to coexist in a single file.

Supported Resolutions

ICO files can technically store images of any size, but the most commonly used standard dimensions include:

  • 16×16 pixels – Used in taskbars, browser tabs (favicons), and file listings
  • 32×32 pixels – Standard desktop icon size
  • 48×48 pixels – Used in Windows Explorer and folder views
  • 64×64 and 128×128 pixels – Larger display contexts
  • 256×256 pixels – Introduced with Windows Vista for high-DPI displays

Color Depth

ICO files support a range of color depths, from monochrome (1-bit) to full 32-bit color with an alpha transparency channel. Modern ICO files almost universally use 32-bit RGBA, which allows smooth anti-aliasing and semi-transparent edges — essential for icons that need to look clean against any background color.

Compression and Encoding

Image data within an ICO file can be stored in two formats. Older entries use the BMP (Device Independent Bitmap) format, specifically without a file header. Newer entries, particularly those at 256×256 pixels or larger, can use PNG compression, which significantly reduces file size while maintaining image quality. This dual-format support was introduced in Windows Vista.

Common Use Cases

ICO files are used across a variety of contexts, particularly wherever Windows-based visuals are involved:

  • Desktop application icons – Every Windows executable (.exe) file embeds an ICO image that Windows displays on the desktop, in the Start menu, and in Explorer.
  • Favicons for websites – A file named favicon.ico placed at the root of a web server is automatically detected and displayed by browsers in the address bar and tabs.
  • Folder and shortcut icons – Custom folder icons and Windows shortcuts often use ICO files to display specific graphics.
  • System tray icons – Applications running in the Windows notification area (system tray) use ICO format images for their tray icons.
  • File type associations – Windows uses ICO files to visually represent registered file types in Explorer.

Advantages and Disadvantages

Like any format, ICO has both strengths and limitations. The table below summarizes the key trade-offs:

Advantages Disadvantages
Stores multiple sizes and color depths in a single file Primarily a Windows-centric format with limited native support on macOS/Linux
Widely supported by all major web browsers for favicons Not suitable for general-purpose photography or complex illustrations
Supports full alpha transparency (32-bit RGBA) Older tools may not support PNG-compressed entries
Can include PNG-compressed images for smaller file sizes Editing requires specialized software or plugins
Deeply integrated into the Windows OS and its visual system Maximum practical resolution is limited compared to modern icon formats like SVG

How to Open and View ICO Files

ICO files can be opened with a variety of applications, ranging from dedicated icon editors to general-purpose image viewers. Here are some of the most commonly used tools:

  • Windows Explorer – Windows can display ICO file thumbnails natively without any extra software
  • IrfanView – A lightweight and free image viewer with full ICO support
  • GIMP – The free, open-source image editor that can open, edit, and export ICO files
  • Adobe Photoshop – Supports ICO files via the ICO (Windows Icon) plugin
  • Axialis IconWorkshop
  • RealWorld Icon Editor – A dedicated, free icon creation and editing tool
  • XnView – A multi-format image viewer with ICO support built in
  • Paint.NET – A free Windows image editor that supports ICO through a plugin

How to Convert ICO Files Online

Converting ICO files to other formats — or converting images like PNG, JPG, or SVG into ICO — is a common need for web developers and designers. Online converters are often the fastest way to handle this without installing additional software.

Metric Converter (metric-converter.com) offers a straightforward, browser-based file conversion tool that supports ICO conversion. You can upload your ICO file and convert it to PNG, BMP, or other formats in just a few clicks — no account required and no software to install. It also supports converting PNG or JPG images into ICO format, which is particularly useful when creating favicons for websites.

When converting images to ICO format, it is best practice to prepare your source image at the highest resolution you need (typically 256×256) and let the conversion tool generate the smaller sizes automatically. This ensures your icon looks sharp at every display size.

Frequently Asked Questions

What is the difference between an ICO file and a PNG file?

A PNG file stores a single image at one fixed resolution, while an ICO file is a container that can hold multiple images at different sizes and color depths within a single file. PNG is better for web graphics, illustrations, and photography. ICO is specifically designed for application and system icons that need to scale cleanly across different display contexts.

Can I use an ICO file as a favicon on my website?

Yes — in fact, ICO is the traditional and most widely supported format for favicons. Placing a file named favicon.ico at the root of your website (e.g., https://yoursite.com/favicon.ico) ensures that virtually all browsers will detect and display it automatically. Modern browsers also accept PNG favicons, but ICO remains the safest and most compatible choice for broad browser support.

How large should an ICO file be?

A well-prepared ICO file typically includes images at 16×16, 32×32, 48×48, and 256×256 pixels. For web favicons, a simple ICO containing just the 16×16 and 32×32 sizes is often sufficient. For Windows application icons, including all standard sizes up to 256×256 ensures the icon looks correct in every context, from small file listings to large thumbnail views.

Why does my ICO file look blurry after conversion?

Blurry ICO icons are usually the result of upscaling a low-resolution source image. If you convert a 32×32 PNG into an ICO that also requires a 256×256 version, the tool will need to scale up the image, which causes blurriness. Always start with a high-resolution source image — ideally 256×256 or larger — before converting to ICO format to ensure all size variants remain sharp.