ZSoft PC Paintbrush Bitmap (.pcx)
ZSoft StandardZSoft 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:
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 01ASCII REPRESENTATION: ...
Standardization: ZSoft PC Paintbrush Technical Reference Manual
Technical Specifications
| Container Architecture | 128-byte fixed header followed by RLE-compressed scanlines and optional trailing 256-color palette |
| Compression | Byte-oriented run-length encoding (RLE) with 0xC0 count indicator bits |
| Byte Endianness | Little-Endian (Intel x86) |
| Color Spaces | CGA 4-color, EGA 16-color, or VGA 256-color paletted RGB |
| Channels & Structure | 1, 2, 4, or 8-bit paletted, or 24-bit RGB planar (3 planes of 8-bit data) |
| Max Dimensions | 65,535 x 65,535 pixels (16-bit coordinates) |
| Transparency | None (opaque legacy raster) |
| Streaming & Progressive | Sequential scanline-by-scanline playback |
Technical Comparison Matrix: PCX vs Competitors
| Technical Attribute | PCX (Current) | BMP | GIF | PNG |
|---|---|---|---|---|
| Active Era | 1985 - 1995 (MS-DOS golden age) | 1990 - Present (Windows standard) | 1987 - Present (Web standard) | 1996 - Present (Modern web standard) |
| Compression Algorithm | Byte-run RLE compression | Uncompressed / RLE | LZW patent-free compression | Deflate LZ77 compression |
| Color Architecture | EGA/VGA bitplanes & paletted | DIB scanlines | Indexed 256 colors | Truecolor 24/48-bit + Alpha |
| Palette Location | Appended at EOF (768 bytes) | Near file header | Near file header | Embedded 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
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.