ZSOFT Paintbrush file

image/vnd.zbrush.pcx

Safe

Magic Bytes

Offset: 0
0A

ZSoft Paintbrush (PCX) is a raster image format originally developed by ZSoft Corporation for the PC Paintbrush application. It served as one of the first widely accepted graphics standards for MS-DOS systems, utilized for digital artwork, desktop publishing, and low-resolution image storage. Although now considered a legacy format replaced by PNG and JPEG, PCX is viewed as safe because it does not support executable scripts or modern metadata-based attack vectors.

Extension

.pcx

MIME Type

image/vnd.zbrush.pcx

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pcx files in Python

Python
def is_pcx(file_path: str) -> bool:
    """Check if file is a valid PCX by magic bytes."""
    signature = bytes([0x0A])
    with open(file_path, "rb") as f:
        return f.read(1) == signature

How to validate .pcx files in Node.js

Node.js
function isPCX(buffer: Buffer): boolean {
  const signature = Buffer.from([0x0A]);
  return buffer.subarray(0, 1).equals(signature);
}
Go
func IsPCX(data []byte) bool {
    signature := []byte{0x0A}
    if len(data) < 1 {
        return false
    }
    return bytes.Equal(data[:1], signature)
}

API Endpoint

GET /api/v1/pcx
curl https://filesignature.org/api/v1/pcx

Related Formats