Graphics Multipage PCX bitmap file

image/vnd.zbrush.dcx

Safe

Magic Bytes

Offset: 0
B1 68 DE 3A

The Graphics Multipage PCX (DCX) format is a bitmap image container developed by ZSoft Corporation as an extension of the PC Paintbrush (PCX) format. It was primarily designed to store multiple PCX images within a single file for use in digital fax transmissions and early document management systems. Although now largely obsolete and superseded by TIFF and PDF, the format remains a low-risk legacy standard with minimal security vulnerabilities.

Extension

.dcx

MIME Type

image/vnd.zbrush.dcx

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .dcx files in Python

Python
def is_dcx(file_path: str) -> bool:
    """Check if file is a valid DCX by magic bytes."""
    signature = bytes([0xB1, 0x68, 0xDE, 0x3A])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .dcx files in Node.js

Node.js
function isDCX(buffer: Buffer): boolean {
  const signature = Buffer.from([0xB1, 0x68, 0xDE, 0x3A]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsDCX(data []byte) bool {
    signature := []byte{0xB1, 0x68, 0xDE, 0x3A}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats