Free webp to jpg
Image MIME Reference
PBM

Portable Bitmap

image/x-portable-bitmap
VS

PiCture eXchange

image/x-pcx
PCX

A complete technical comparison of Portable Bitmap and PiCture eXchange — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature PBM PCX
Transparency (Alpha) ✕ No ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
Portable Bitmap
image/x-portable-bitmap
Extension
.pbm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 1-bit (Monochrome)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 31 (ASCII) or 50 34 (Binary)
Full PBM reference →
PiCture eXchange
image/x-pcx
Extension
.pcx
Container ZSoft Proprietary Header (128 bytes)
Compression Run-Length Encoding (RLE)
Algorithm
ZSoft RLE
Color Depth 1-bit (Monochrome), 4-bit (16 colors), 8-bit (256 colors), 24-bit (True Color)
Developed by ZSoft Corporation
Released 1985
Magic Bytes
0A (followed by version, e.g., 0A 05 01 08)
Full PCX reference →

Browser Support Comparison

Browser PBM PCX
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
PBM

PBM Strengths

  • Absolute structural simplicity allows parsers to be written from scratch with just a few lines of code
  • ASCII encoding allows manual editing and debugging directly within a standard text editor
  • Serves as a flawless, lossless intermediary for 1-bit raster data like scanned documents or barcodes
Limitations
  • Strictly limited to 1-bit monochrome images; cannot natively display shades of gray or color
  • Lack of compression results in extremely large file sizes, particularly when using the ASCII 'P1' encoding
  • No support for alpha transparency or modern metadata standards like EXIF
PCX

PCX Strengths

  • Incredibly simple RLE algorithm makes it very fast to decode, which was historically vital for early 3D video game engines
  • Retains crisp, lossless pixel data suitable for pixel art and interface assets
  • Well-documented and highly supported by older desktop publishing and image editing software
Limitations
  • Extremely inefficient compression by modern standards, producing large file sizes compared to PNG
  • Lacks modern imaging features such as alpha channel transparency, EXIF metadata, and color profiles
  • Zero support in web browsers; must be converted to PNG for web use

When to choose which format

PBM
Use PBM when…
  • Optical Character Recognition (OCR) Pre-processing
  • Unix/Linux Command-Line Image Pipelines
  • Academic Image Processing Teaching
PCX
Use PCX when…
  • MS-DOS and Early Windows Graphics
  • 1990s Video Game Assets (Textures, UI)
  • Retro Computing Archival
Share this comparison