Free webp to jpg
Image MIME Reference
ICO

Windows Icon (Legacy MIME)

image/x-icon
VS

Portable Network Graphics (Legacy MIME)

image/x-png
PNG

A complete technical comparison of Windows Icon (Legacy MIME) and Portable Network Graphics (Legacy MIME) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature ICO PNG
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No Yes
HDR Support ✕ No Yes
EXIF Metadata ✕ No Yes
ICC Color Profile ✕ No Yes
Windows Icon (Legacy MIME)
image/x-icon
Extension
.ico
Container ICO Directory Structure
Compression Uncompressed (DIB/BMP) / Deflate (Embedded PNG)
Algorithm
NoneDeflate (via PNG)
Color Depth 1-bit, 4-bit, 8-bit, 24-bit (True Color), 32-bit (RGBA)
Developed by Microsoft Corporation
Released 1985
Magic Bytes
00 00 01 00
Full ICO reference →
Portable Network Graphics (Legacy MIME)
image/x-png
Extension
.png
Container PNG Chunk Structure (IHDR, IDAT, IEND)
Compression Deflate (Lossless)
Algorithm
Deflate (LZ77)
Color Depth 1-bit to 16-bit (Grayscale), 8-bit (Indexed Palette), 24-bit (True Color), 32-bit (True Color with Alpha), 48-bit (High Color), 64-bit (High Color with Alpha)
Developed by PNG Development Group
Released 1996
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Full PNG reference →

Browser Support Comparison

Browser ICO PNG
Chrome Chrome
✓ 1
✓ 1
Firefox Firefox
✓ 1
✓ 1
Safari Safari
✓ 1
✓ 1
Edge Edge
✓ 12
✓ 12
IE IE (Legacy)
ICO

ICO Strengths

  • Universally supported by every web browser in existence for website favicons
  • Packs multiple resolutions into a single file, eliminating the need to serve different files for the taskbar vs. the desktop
  • Modern support for embedded PNGs (since Windows Vista) allows for excellent 32-bit transparency (alpha channels) and drastically reduced file sizes
Limitations
  • Internal file structure is convoluted due to decades of legacy cruft, such as the requirement for BMP data to lack a standard file header but double the height property for an archaic XOR/AND mask
  • Larger file size compared to a single optimized PNG or SVG, as it literally stores the same image multiple times at different scales
  • The MIME type landscape is highly fragmented (x-icon vs. vnd.microsoft.icon), causing occasional caching or strict-MIME validation errors on restrictive servers
PNG

PNG Strengths

  • The underlying format provides flawless, lossless compression and perfect 8-bit alpha channel transparency
  • Universally supported by every modern operating system, image editor, and web browser
Limitations
  • The 'image/x-png' string is an obsolete vendor quirk that forces backend developers to write redundant normalization logic in file upload scripts
  • If left unnormalized, strict MIME validators or content security policies on modern systems may incorrectly reject valid PNG files

When to choose which format

ICO
Use ICO when…
  • Website Favicons (favicon.ico)
  • Windows Application Executable Icons (.exe)
  • Desktop Shortcut Icons
PNG
Use PNG when…
  • Legacy Internet Explorer File Uploads
  • Older ASP/PHP Web Applications
  • Lossless Web Graphics
Share this comparison