Windows Icon Resource (.ico)
Microsoft StandardWindows Icon Resource (ICO) is Microsoft's multi-resolution icon container format, universally adopted across the web as the standard 'favicon.ico' format for website browser tabs.
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 | ICONDIR header with resource type 1 (Icon) followed by ICONDIRENTRY array and DIB/PNG streams |
| 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 | 100% universal across all legacy & modern browsers | 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 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.
- Universal backward compatibility with every web browser and desktop operating system ever built.
- 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?
Even if your HTML specifies a PNG favicon, web browsers and search engine web crawlers still request '/favicon.ico' by default to display tab and bookmark icons.
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.