Understanding ICO Files: Icon Storage, Image Dimensions, and System Integration
Article Nov 29, 2026

Understanding ICO Files: Icon Storage, Image Dimensions, and System Integration

M Seemab

M Seemab

Content Creator & Editor

An ICO file is a container that bundles several versions of one icon at different sizes and color depths. Windows and browsers pick the entry that best matches the space available, which keeps small icons crisp. It is the traditional format for Windows application icons and for the favicon.ico file at the root of websites.
Icons are easy to ignore, but they appear in tabs, taskbars, bookmarks, search results, and file lists, and a blurry one makes a site look unfinished. ICO exists because one picture cannot look good at every size: a detailed logo that works at 256 pixels becomes mush at 16. This guide explains how the container stores images, which dimensions matter, how favicons really work today, and how to prepare icons properly.

Key Points

  • One ICO file can contain many images, each with its own size and color depth.
  • Each entry is limited to 256 by 256 pixels, and the size is stored in a single byte.
  • Entries are stored either as bitmap data with a mask or as complete PNG streams.
  • Browsers also accept PNG and, in many cases, SVG icons declared in the page, but favicon.ico remains a common fallback.
  • Design the smallest sizes deliberately; shrinking a large logo rarely works.
  • ICO is a container for icons, not a general picture format.
KEY TAKEAWAY
“An icon is not a small picture. It is a different drawing made for a small space.”

How an ICO File Stores Its Images

An ICO file begins with a six-byte header: a reserved field, a type value of 1 for icons, and a count of images. After the header comes a 16-byte directory entry for each image. An entry records width, height, number of colors, bits per pixel, the size of the image data, and where it starts in the file. Width and height are single bytes, so a stored value of 0 stands for 256 pixels, which is why 256 is the maximum.
The image data itself follows in one of two forms. Classic entries are a device-independent bitmap without the usual file header, stored with a doubled height because the data holds a color bitmap followed by a 1-bit AND mask that defines which pixels are transparent. Newer entries, supported from Windows Vista onwards, may be a complete PNG stream, which is common for the 256-pixel size because PNG compresses well and carries full alpha. The cursor format CUR uses an almost identical structure with an added hotspot.
Part
Size
Contents
Header6 bytesReserved value, type (1 = icon), image count
Directory entry16 bytes eachWidth, height, color count, bit depth, data size, offset
Bitmap entryVariesBitmap data plus a 1-bit transparency mask
PNG entryVariesA full PNG stream with alpha

Which Sizes to Include

Size in pixels
Typical appearance
Notes
16 x 16Browser tab, small listsNeeds a simplified design
24 x 24 and 32 x 32Taskbars, higher-density tabs, shortcutsCommon for favicons and toolbars
48 x 48Windows desktop and explorerA long-standing standard size
64 x 64 and 128 x 128Intermediate views in some applicationsOptional
256 x 256Windows large icon and previewUsually stored as PNG
Exact requirements differ between operating systems and change over time, so consult the current documentation for the platform you target. A practical minimum for a website is a favicon.ico with 16, 32, and 48-pixel images, supplemented by the icon types that modern browsers and devices request.

Favicons Today: ICO, PNG, SVG and Touch Icons

Browsers used to look for a file named favicon.ico at the site root, and they still do when no icon is declared. Today, pages can declare icons with link elements in the head, and current browsers accept PNG and, in many cases, SVG. Apple devices use a separate touch icon for home-screen shortcuts. A common approach is therefore to supply a favicon.ico for legacy requests and crawlers, a PNG or SVG icon for modern browsers, and a dedicated touch icon. Because browser behavior keeps changing, verify the current guidance when you set up a site. An SVG source drawing makes every raster size easy to export cleanly.
Icon type
Use
Advantage
Limit
favicon.icoLegacy and default requestsSeveral sizes in one fileFixed raster sizes
PNG iconModern browsers and manifestsSimple and losslessOne size per file
SVG iconBrowsers that support itScales to any size, supports dark mode stylingNot accepted everywhere
Apple touch iconHome-screen shortcuts on Apple devicesLarge, crisp imageSeparate file to maintain

Transparency, Color and Animation

ICO supports transparency through the AND mask in classic entries and through 32-bit alpha, either in bitmap data or in PNG entries. Color depths run from 1 bit to 32 bits. The format does not support animation. Animated cursors on Windows use a different format, ANI.

Advantages and Limits

Strengths
Limits
Several sizes in one fileMaximum 256 by 256 pixels per entry
Native to Windows icons and legacy faviconsNot designed for photographs or general images
Supports alpha transparencyOlder readers may fail on PNG-compressed entries
Widely understood by browsersmacOS uses a different icon format (ICNS) for applications

Creating and Converting ICO Files

Start from the cleanest source you have, ideally a square vector drawing or a large square PNG with transparent padding. The SnapZain Image Format Converter lists ICO as both an input and an output, with a 20 MB limit per file. Its page advises checking the dimensions and appearance of an icon after conversion and does not describe a way to choose several embedded sizes, so use a dedicated icon editor when exact entries matter.
  • PNG to ICO: the usual favicon route. Use a square image and plan the 16-pixel version carefully. See the PNG guide for the source format.
  • JPG to ICO: valid, but a JPG has no transparency and photographs rarely stay legible at icon sizes.
  • ICO to PNG: extracts an image for editing; a multi-size ICO may yield only one size.

Checking a Favicon Before You Publish It

  • View the 16-pixel version at actual size on a normal and a high-density screen.
  • Test on light and dark browser themes to make sure transparent edges look right.
  • Open the file URL directly to confirm the server returns the icon with a correct content type.
  • Check the link tags in the page head for typos and wrong paths.
  • Look in a private window to avoid cached icons hiding a problem.
  • Confirm the touch icon and any manifest icons if you support home-screen shortcuts.
Five minutes of checking prevents the common situation where an icon looks perfect in the editor and muddy in a tab.

ICO Files and Web App Manifests

Progressive web apps and home-screen shortcuts do not rely on favicon.ico. They use a web app manifest that lists PNG icons at specific sizes, commonly including 192 and 512 pixels, and some platforms support a maskable icon with safe padding. Keep ICO for the traditional favicon and Windows needs, and treat manifest icons as a separate set of PNG files made from the same source drawing. Check the current requirements of each platform you target, because the recommended sizes change over time.
Icon set
Format
Purpose
FaviconICO (and PNG or SVG)Browser tabs and bookmarks
Touch iconPNGApple home-screen shortcuts
Manifest iconsPNGInstallable web apps
Windows application iconICOExecutable and shortcut icons
Icons also face a theme problem. A dark favicon on a dark browser tab can disappear, so test both themes and consider a light outline or a design with its own background. SVG favicons can respond to the color scheme using a media query inside the file, which ICO cannot do, so some sites pair a static ICO fallback with an adaptive SVG for browsers that support it.

Common ICO Mistakes

  • Using a non-square source: the icon is stretched or cropped; pad to a square.
  • Shrinking a detailed logo to 16 pixels: simplify the design for tiny sizes.
  • Renaming a PNG to .ico: some browsers tolerate it, but it is not a valid container.
  • Forgetting caches: browsers cache favicons aggressively, so updates may take time to appear.
  • Supplying a single size: include several sizes for sharp results on varied screens.

Conclusion

ICO remains the dependable container for Windows icons and fallback favicons because it bundles several sizes in one file. Build it from a clean square source, hand-tune the small sizes, and pair it with PNG, SVG, and touch icons for modern devices. Doing so costs little and keeps your brand sharp wherever a small icon appears.

Frequently Asked Questions

What is an ICO file used for?

It holds icons for Windows programs and files, and it is the traditional file format for website favicons.

Can an ICO contain more than one image?

Yes. The header states the image count, and each image has a directory entry describing it.

What is the largest size an ICO entry can have?

256 by 256 pixels, because width and height are stored in one byte and a value of zero means 256.

What sizes should my favicon.ico include?

A common choice is 16, 32, and 48 pixels. Requirements vary by platform, so check current documentation.

Do I still need favicon.ico if I declare a PNG icon?

It is often worth keeping, because some browsers, tools, and crawlers request /favicon.ico by default.

What is the AND mask in an ICO?

It is a 1-bit image stored with classic bitmap entries that marks which pixels are transparent.

Why are 256-pixel entries usually PNG?

PNG compresses large images well and carries full alpha, which keeps the file smaller than raw bitmap data.

Can I use SVG as a favicon?

Many modern browsers accept it, but older browsers and some systems still need ICO or PNG, so supply both.

How is ICO different from ICNS?

ICNS is the icon format of macOS applications, while ICO belongs to Windows and web favicons.

Why does my new favicon not appear?

Browsers cache favicons for a long time. Clear the cache, check the link tags, and test in a private window.

Can ICO files be animated?

No. Animated Windows cursors use the separate ANI format.

How are cursor files related to ICO files?

A CUR file has almost the same structure as ICO but adds a hotspot that marks the click point.

How do I make a sharp 16-pixel icon?

Draw a simplified version with few details and strong shapes instead of shrinking a complex logo.

Does converting JPG to ICO give a good icon?

It gives a valid file without transparency. A simplified square graphic with transparent padding works far better.

How should I check a converted icon before publishing it?

Open it at its real sizes, test on light and dark backgrounds, and confirm the dimensions. SnapZain's page advises checking size and appearance after conversion.

What is an Apple touch icon?

A separate, larger image used when a site is added to the home screen of an Apple device.

Why does my icon look blurry in the taskbar?

The file may lack the size Windows wants and be scaled from another entry. Include the common sizes and test them.

Can a PNG be renamed to ICO?

Renaming does not create a valid container. Some software tolerates it, but a proper ICO needs its own header and directory.

Is ICO a lossy format?

The format itself is a container. Entries are stored as uncompressed bitmaps or lossless PNG, so no lossy step is built in.

How big is a typical favicon.ico?

A small multi-size file is usually a few kilobytes to tens of kilobytes, depending on sizes and whether entries use PNG.

Where do I place favicon.ico?

At the root of the site, for example, https://example.com/favicon.ico, unless a link element points to another location.

Share this article

Join the Conversation