Windows Icon Resource (.ico)
Microsoft StandardWindows 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:
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 00ASCII REPRESENTATION: ....
Standardization: Microsoft Windows Icon Resource Specification
Technical Specifications
| Container Architecture | The 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 |
| Compression | Uncompressed DIB or PNG compressed streams (for 256x256 icons) |
| Byte Endianness | Little-Endian (Intel x86) |
| Color Spaces | Device RGB, sRGB |
| Channels & Structure | 1-bit monochrome, 4-bit / 8-bit paletted, 24-bit RGB, or 32-bit RGBA with alpha |
| Max Dimensions | 256 x 256 pixels (supports multi-resolution suites: 16x16, 32x32, 48x48, 64x64, 128x128, 256x256) |
| Transparency | XOR/AND binary transparency mask or full 8-bit smooth alpha channel |
| Streaming & Progressive | Non-streamable icon directory container |
Technical Comparison Matrix: ICO vs Competitors
| Technical Attribute | ICO (Current) | PNG | SVG | CUR |
|---|---|---|---|---|
| Multi-Resolution Storage | Multiple sizes embedded in one file | Single image size only | Infinite vector scaling | Multiple cursor sizes |
| Favicon Support | Widely supported by browsers; details vary by version | Supported in modern browsers | Supported in modern browsers | None (mouse cursor only) |
| Resource Type ID | 0x0001 (Icon) | Standard image file | W3C XML Vector | 0x0002 (Cursor with hotspot) |
| Maximum Dimension | 256 x 256 pixels | Virtually unlimited | Infinite (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
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.
Related ICO Conversion Pairs
Converting a Windows Icon container into a standard PNG image extracts the highest-resolution graphic layer for widely supported web and document compatibility.
Converting PNG raster graphics into Windows Icon files packages your transparent artwork into the ICO container used for desktop software shortcuts.
Use an ICO image in a one-page PDF for an icon handoff. One decoded icon is shown; this route has no control for choosing among the set’s sizes.