ZSoft PC Paintbrush Bitmap (.pcx)

ZSoft Standard

ZSoft PC Paintbrush Bitmap (PCX) is the legendary early PC graphics format that became the first widely adopted raster image standard for MS-DOS, IBM PC compatibles, and classic PC gaming.

Convert PCX to PNG

Free in-browser PCX to PNG converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify PCX files by inspecting the leading binary byte sequence:

Select or drop files here

100% private in-browser conversion - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify PCX files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

0A 05 01

ASCII REPRESENTATION: ...

Standardization: ZSoft PC Paintbrush Technical Reference Manual

Technical Specifications

Container Architecture128-byte fixed header followed by RLE-compressed scanlines and optional trailing 256-color palette
CompressionByte-oriented run-length encoding (RLE) with 0xC0 count indicator bits
Byte EndiannessLittle-Endian (Intel x86)
Color SpacesCGA 4-color, EGA 16-color, or VGA 256-color paletted RGB
Channels & Structure1, 2, 4, or 8-bit paletted, or 24-bit RGB planar (3 planes of 8-bit data)
Max Dimensions65,535 x 65,535 pixels (16-bit coordinates)
TransparencyNone (opaque legacy raster)
Streaming & ProgressiveSequential scanline-by-scanline playback

Technical Comparison Matrix: PCX vs Competitors

Technical AttributePCX (Current)BMPGIFPNG
Active Era1985 - 1995 (MS-DOS golden age)1990 - Present (Windows standard)1987 - Present (Web standard)1996 - Present (Modern web standard)
Compression AlgorithmByte-run RLE compressionUncompressed / RLELZW patent-free compressionDeflate LZ77 compression
Color ArchitectureEGA/VGA bitplanes & palettedDIB scanlinesIndexed 256 colorsTruecolor 24/48-bit + Alpha
Palette LocationAppended at EOF (768 bytes)Near file headerNear file headerEmbedded PLTE chunk

Common Corruption Modes & Hex Recovery Guide

Image colors render completely inverted or garbled like a psychedelic negative.

Root Cause: Missing or truncated 256-color VGA palette block at the end of the file.

Recovery: Re-apply default VGA palette or transcode to PNG using File2File PCX Converter.

Security Analysis & Parser Attack Vectors

PCX decoders process run-length encoded bytes into scanlines where malformed run counts can cause heap buffer overflows.

Known Attack Vectors

  • RLE byte run-length exceeding scanline width causing memory write beyond buffer boundaries.
  • Buffer overflow when reading planes beyond header declared plane count.
  • Denial of service through corrupted palette offset calculations.

Defensive Best Practices: Enforce strict per-scanline pixel byte limits during RLE decompression loops.

Historical Origins & Milestones

1993id Software ships DOOM, using PCX format for title screens, menus, and texture artwork.
1988PCX Revision 5 introduces support for 256-color VGA palettes stored at the end of the file.
1985ZSoft introduces PCX alongside PC Paintbrush, bundled with Microsoft Mouse hardware.

Key Advantages & Pros

  • Rich historical significance: foundational format of the early IBM PC gaming and shareware revolution.
  • Hardware-oriented planar memory layout allows direct copying into EGA/VGA video card memory.
  • Lightweight RLE compression reduces file sizes of low-color illustrations and diagrams.

Technical Limitations & Cons

  • Obsolescence: virtually all modern workflows have migrated to PNG and modern raster formats.
  • VGA 256-color palette is appended at the very end of the file, requiring full file reads to decode colors.
  • Inefficient compression on complex photographic imagery.

Interesting Technical Trivia

  • The first byte of every PCX file is always 0x0A (decimal 10), representing ZSoft's internal manufacturer ID.
  • To check if an 8-bit PCX file has a 256-color palette, you seek to 769 bytes from the end of the file and check for byte 0x0C (decimal 12).
  • Classic PC games including Wolfenstein 3D, DOOM, and Duke Nukem 3D stored their promotional screenshots and menu art in PCX format.

Frequently Asked Technical Questions

What program created .PCX files?

ZSoft PC Paintbrush, the first popular graphics program for the IBM PC in the 1980s, which was often bundled with Microsoft mice.

Can I convert a vintage PCX file to PNG or JPG?

Yes. File2File.app can convert historic PCX game textures and artwork into crisp modern PNG or JPG images directly in your browser.

Why is the color palette at the end of a PCX file?

When 256-color VGA was introduced in 1988, ZSoft appended the 768-byte RGB palette to the end of the file preceded by marker 0x0C to maintain backward compatibility with older 16-color decoders.