PiCture eXchange
image/x-pcx
Released 1985
· by ZSoft Corporation
The image/x-pcx MIME type represents the PiCture eXchange (PCX) image format. Developed by ZSoft Corporation in the mid-1980s for their PC Paintbrush software, PCX became one of the first widely accepted DOS-era graphics standards. It utilizes a very simple byte-oriented Run-Length Encoding (RLE) compression scheme, which required minimal CPU power to decode. This made it extraordinarily popular for 1990s MS-DOS video games (like DOOM, Duke Nukem 3D, and Quake) for storing textures and UI assets. While eventually superseded by more efficient formats like GIF, JPEG, and PNG, PCX remains historically significant in early PC graphics and retro game development.
Technical Specifications
.pcx
ZSoft RLE
image/pcxapplication/pcxapplication/x-pcx
Magic Bytes & HTTP Headers
\x0A
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- 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
- 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
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/x-pcx
file by reading its raw bytes:
- 1 PCX files have a fixed 128-byte header.
- 2 Check the first byte (Offset 0). It must always be 0x0A (10), representing ZSoft as the manufacturer.
- 3 The second byte (Offset 1) indicates the version (0, 2, 3, 4, or 5).
- 4 The third byte (Offset 2) is the encoding method, which is almost universally 0x01 for RLE.
- 5 The fourth byte (Offset 3) represents the bits per pixel per plane (1, 2, 4, or 8).
Software Support
ImageMagick
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/pcx)
<iframe src="https://freewebptojpg.com/mime/image/pcx/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="PCX Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/pcx.json
Open JSON
Frequently Asked Questions
What is a PCX file?
A PCX file is a legacy raster image format created by ZSoft for its PC Paintbrush program. It was one of the most common image formats on DOS and early Windows systems before JPEG and PNG became standard.
Why did so many classic PC games use PCX files?
PCX files use a very simple Run-Length Encoding (RLE) compression method. In the early 1990s, when CPU cycles and memory were heavily constrained, game engines (like the Doom engine) could decompress and load PCX images incredibly fast compared to more complex formats.
How do I open a PCX file today?
Modern web browsers do not support PCX. To view or edit them, you must use image editing software like Adobe Photoshop, GIMP, or classic image viewers like IrfanView and XnView.