Free webp to jpg
Image MIME Reference
BMP

Windows Bitmap (Legacy Windows MIME Alias)

image/x-windows-bmp
VS

Portable Pixmap

image/x-portable-pixmap
PPM

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

BMP wins on browser support

Feature Support

Feature BMP PPM
Transparency (Alpha) Yes ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No Yes
EXIF Metadata ✕ No ✕ No
ICC Color Profile Yes ✕ No
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
Full BMP reference →
Portable Pixmap
image/x-portable-pixmap
Extension
.ppm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 24-bit (RGB), 48-bit (RGB High Color)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 33 (ASCII) or 50 36 (Binary)
Full PPM reference →

Browser Support Comparison

Browser BMP PPM
Chrome Chrome
✓ 1
Firefox Firefox
✓ 1
Safari Safari
✓ 1
Edge Edge
✓ 12
IE IE (Legacy)
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
PPM

PPM Strengths

  • Absolute structural simplicity allows parsers and renderers (such as custom raytracers) to write directly to the format with virtually no overhead or external libraries
  • Supports 16-bit per channel (48-bit total) precision, preserving deep color accuracy before converting to final delivery formats
  • ASCII encoding ('P3') allows manual editing and visual inspection of RGB values directly within a text editor
Limitations
  • Zero compression results in astronomical file sizes, making it entirely impractical for web delivery or consumer storage
  • Does not natively support an alpha channel for transparency (this is handled by the newer PAM extension format within the Netpbm suite)
  • Lacks support for modern metadata standards like EXIF, XMP, or embedded ICC color profiles

When to choose which format

BMP
Use BMP when…
  • Legacy Windows Desktop Registry Associations
  • Older Enterprise Intranet Applications
  • Windows Graphics Archival
PPM
Use PPM when…
  • Intermediary Format for Image Format Conversion
  • Academic Computer Graphics and Raytracing Output
  • Unix/Linux Command-Line Image Pipelines
Share this comparison