Image MIME Reference
BMP
Windows Bitmap (Legacy Windows MIME Alias)
image/x-windows-bmp
VS
Portable Network Graphics (Legacy MIME)
image/x-png
PNG
A complete technical comparison of Windows Bitmap (Legacy Windows MIME Alias) 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 | BMP | PNG |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | Yes |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | Yes | Yes |
Windows Bitmap (Legacy Windows MIME Alias)
image/x-windows-bmp
Extension
.bmp.dib
Container
DIB (Device-Independent Bitmap)
Compression
Uncompressed / Run-Length Encoding (RLE)
Algorithm
NoneRLE4RLE8
Color Depth
1-bit (Monochrome), 4-bit (16 colors), 8-bit (256 colors), 16-bit (High Color), 24-bit (True Color), 32-bit (True Color with Alpha)
Developed by
Microsoft Corporation
Released
1985
Magic Bytes
42 4D
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
Browser Support Comparison
| Browser | BMP | PNG |
|---|---|---|
|
|
✓ 1
|
✓ 1
|
|
|
✓ 1
|
✓ 1
|
|
|
✓ 1
|
✓ 1
|
|
|
✓ 12
|
✓ 12
|
|
|
✓
|
✓
|
BMP
BMP Strengths
- Universally supported by all major operating systems and modern web browsers
- Maintains perfect, lossless fidelity because pixel data is stored without lossy compression artifacts
Limitations
- Massive file size overhead due to a lack of modern compression algorithms
- Legacy MIME strings like 'image/x-windows-bmp' can trigger validation warnings in strict security or API environments if unhandled
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
BMP
Use BMP when…
- Legacy Windows Desktop Registry Associations
- Older Enterprise Intranet Applications
- Windows Graphics Archival
PNG
Use PNG when…
- Legacy Internet Explorer File Uploads
- Older ASP/PHP Web Applications
- Lossless Web Graphics