What is PCX? PiCture eXchange Format Explained

PCX (PiCture eXchange) is an early raster image format developed by ZSoft for PC Paintbrush in 1985, using run-length encoding (RLE) compression.

Free online file converter tool. Works in Chrome Firefox Safari Edge Opera and other modern browsers on Windows macOS Linux Android and iOS. No software installation or sign-up required. All conversions run directly in your browser, so your files never leave your device. Free to use with no account needed.

Image

What is PCX? PiCture eXchange Format Explained

An early DOS-era raster format from ZSoft's PC Paintbrush, using run-length encoding compression.

Last updated:

Year Created1985
CompressionRaster image
Primary UseLegacy DOS-era graphics

What is PCX?

PCX, short for PiCture eXchange, is a raster image file format developed by the now-defunct ZSoft Corporation of Marietta, Georgia. ZSoft introduced it in 1985 as the native format for its PC Paintbrush program, and it became one of the first widely accepted DOS imaging standards.

A PCX file consists of a 128-byte header describing dimensions, color planes, and palette information, followed by image data compressed with a simple byte-wise run-length encoding (RLE) scheme. In the RLE method, the two most significant bits of a byte signal whether it is a run-length count or a literal pixel value, allowing repeated pixels to be stored compactly.

How PCX Works

A PCX file opens with a fixed 128-byte header recording a manufacturer byte, version, the image's window dimensions, resolution, bits per pixel, the number of color planes, and palette data.[1] Image data follows as scanlines compressed with a byte-oriented run-length encoding: if a byte's two most significant bits are set, its lower six bits give a repeat count for the following byte; otherwise the byte is a literal pixel value.[2]

Color and Palettes

Early PCX versions handled monochrome and 16-color EGA images using a palette stored in the header.[2] Version 5 added support for 256-color images via an additional 256-entry, 768-byte VGA palette appended at the end of the file, marked by a leading 0x0C byte, as well as 24-bit truecolor stored across three planes.[1]

History and Legacy

ZSoft introduced PCX in 1985 as the native format of its PC Paintbrush program, making it one of the earliest widely supported raster formats on DOS systems.[1] Its simple RLE scheme is fast but compresses poorly on detailed images, and the format was gradually displaced by GIF, PNG, and JPEG; it is now largely of legacy and archival interest.[3]

MKV Technical Specifications

DeveloperZSoft Corporation[1]
File Extension.pcx[1]
MIME Typeimage/x-pcx (also image/vnd.zbrush.pcx)[1]
Released1985[1]
CompressionRun-length encoding (RLE), lossless[1]

PCX vs Other Image Formats

FeaturePCXBMPPNG
TypeRasterRasterRaster
CompressionRLE[1]None or RLELossless
Color depthUp to 24-bit[2]Up to 32-bitUp to 16-bit
TransparencyNo[2]LimitedYes
EraLegacy DOS/PC[1]WindowsModern web
Best forLegacy paint filesWindows imagesWeb graphics

PCX was a widely used early PC paint format with simple RLE compression, but it has largely been superseded by BMP and PNG.

Advantages & Disadvantages

Advantages

Lossless RLE compression | FileFormer

PCX applies simple run-length encoding that reduces file size on images with runs of identical pixels without discarding data.

Simple, well-documented structure | FileFormer

Its fixed header and straightforward RLE scheme make PCX easy to parse and implement.

Historically ubiquitous | FileFormer

As an early DOS standard, PCX was supported by a wide range of legacy graphics and paint software.

Palette support | FileFormer

The format handles indexed-color images with embedded palettes as well as multi-plane color data.

Disadvantages

Largely obsolete | FileFormer

PCX has been superseded by formats such as BMP, JPEG, and PNG and is rarely used in modern workflows.

Weak compression | FileFormer

Its byte-wise RLE is ineffective on complex or photographic images, where it can offer little size benefit.

Limited modern support | FileFormer

Many contemporary applications no longer read or write PCX without specialized tools.

Common Use Cases

PCX is encountered mainly when working with legacy DOS-era graphics.

Legacy file recovery | FileFormer

PCX support is needed to open images created by older PC Paintbrush and DOS applications.

Retro and archival graphics | FileFormer

The format appears in archives of vintage software, clip art, and game assets.

Simple indexed images | FileFormer

PCX can still serve as a straightforward container for palette-based images with run-length compression.

Convert PCX Files Free

Use our free online image converter to convert PCX and other formats - no signup, no watermarks.

Try Image Converter Free

Frequently Asked Questions

What does PCX stand for?

PCX stands for PiCture eXchange, the native image format of ZSoft's PC Paintbrush program.

Who developed PCX and when?

It was developed by ZSoft Corporation and introduced in 1985 for PC Paintbrush.

Does PCX use compression?

Yes. PCX requires its image data to be compressed using a simple byte-wise run-length encoding (RLE) scheme, which is lossless.

Is PCX still used today?

Rarely. It has largely been replaced by BMP, JPEG, and PNG, and survives mostly for opening legacy files and archival material.

Can PCX store color images?

Yes. PCX supports indexed-color images with embedded palettes and multi-plane color data, in addition to monochrome and grayscale.

References

  1. PiCture eXchange (PCX) - Library of Congress
  2. PCX - Wikipedia
  3. PCX - Just Solve the File Format Problem