Windows Icon Resource (.ico)

Microsoft Standard

Windows Icon Resource (ICO) is Microsoft's multi-resolution icon container format, commonly used for website favicons and Windows icons.

Convert ICO to PNG

Free in-browser ICO to PNG converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify ICO files by inspecting the leading binary byte sequence:

Select or drop files here

Private - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify ICO files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

00 00 01 00

ASCII REPRESENTATION: ....

Standardization: Microsoft Windows Icon Resource Specification

Technical Specifications

Container ArchitectureThe 6-byte ICONDIR header contains a 2-byte reserved field (0), a 2-byte type field (1 for icons), and a 2-byte image count; these are fields rather than a separate fixed signature. It is followed by 16-byte ICONDIRENTRY records and DIB or PNG image data
CompressionUncompressed DIB or PNG compressed streams (for 256x256 icons)
Byte EndiannessLittle-Endian (Intel x86)
Color SpacesDevice RGB, sRGB
Channels & Structure1-bit monochrome, 4-bit / 8-bit paletted, 24-bit RGB, or 32-bit RGBA with alpha
Max Dimensions256 x 256 pixels (supports multi-resolution suites: 16x16, 32x32, 48x48, 64x64, 128x128, 256x256)
TransparencyXOR/AND binary transparency mask or full 8-bit smooth alpha channel
Streaming & ProgressiveNon-streamable icon directory container

Technical Comparison Matrix: ICO vs Competitors

Technical AttributeICO (Current)PNGSVGCUR
Multi-Resolution StorageMultiple sizes embedded in one fileSingle image size onlyInfinite vector scalingMultiple cursor sizes
Favicon SupportWidely supported by browsers; details vary by versionSupported in modern browsersSupported in modern browsersNone (mouse cursor only)
Resource Type ID0x0001 (Icon)Standard image fileW3C XML Vector0x0002 (Cursor with hotspot)
Maximum Dimension256 x 256 pixelsVirtually unlimitedInfinite (vector)256 x 256 pixels

Common Corruption Modes & Hex Recovery Guide

Browser tab displays a blank default document page instead of the custom website icon.

Root Cause: Favicon missing standard 16x16 or 32x32 resolution entries or containing corrupted DIB headers.

Recovery: Re-generate multi-resolution ICO file using File2File.app Favicon Generator.

Security Analysis & Parser Attack Vectors

ICO files contain directory tables specifying data offsets that must be validated to prevent buffer overflow vulnerabilities.

Known Attack Vectors

  • Integer overflow in image directory count causing small memory allocation and heap buffer overflow.
  • Corrupted image byte offset pointers directing reads outside mapped file memory.
  • Embedded PNG decompression bombs within 256x256 icon entries.

Defensive Best Practices: Ensure all directory entry offsets fall strictly within the physical bounds of the ICO file.

Historical Origins & Milestones

2006Windows Vista introduces support for PNG-compressed 256x256 icons embedded inside the ICO format.
1999Internet Explorer 5 popularized 'favicon.ico' for website icons; other image formats are also used for favicons.
1985Windows 1.0 launches with native .ICO format for desktop shortcut graphics.

Key Advantages & Pros

  • Encapsulates multiple image resolutions (e.g. 16x16, 32x32, 48x48, 256x256) inside a single file for crisp display across all DPI scales.
  • Supported by many browsers and desktop applications, with behavior depending on platform and version.
  • Supports modern 256x256 high-resolution PNG compression within the classic container.

Technical Limitations & Cons

  • Modern web browsers prefer standard SVG and PNG favicons over legacy multi-resource ICO containers.
  • Legacy 1-bit XOR transparency masks in older software produce jagged, pixelated edges.
  • Fixed resolution limits (maximum 256x256 pixels per icon frame).

Interesting Technical Trivia

  • In early Windows versions, icons were limited to 32x32 pixels in 16 colors.
  • When Internet Explorer 5 introduced favicons, websites knew how many people bookmarked their page by counting requests for '/favicon.ico' in server logs.
  • A 256x256 icon entry inside an ICO file literally contains a complete, valid PNG file starting with the 8-byte PNG signature.

Frequently Asked Technical Questions

Why does my website need a favicon.ico?

Some browsers or crawlers may request '/favicon.ico' when no matching icon is found, but behavior varies. Explicit favicon links help clients locate the intended icon.

What resolutions should be included in an ICO file?

A professional ICO file should include 16x16, 32x32, 48x48, and 256x256 pixel versions to look sharp across all monitor scales and taskbars.

How can I convert a PNG to an ICO file?

Upload your PNG image to File2File.app to generate an optimized, multi-resolution ICO file instantly in your web browser.