Skip to content

Graphics Multipage PCX bitmap file (.dcx)

.dcx file signature | image/vnd.zbrush.dcx

Graphics Multipage PCX bitmap file

Safe

Magic Bytes

Offset 0
B1 68 DE 3A

Sources: Apache Tika, Gary Kessler

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);
}

How to validate .dcx files in Go

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .dcx file?

A .dcx file is a Graphics Multipage PCX bitmap file file. Graphics Multipage PCX bitmap file

What are the magic bytes for .dcx files?

The magic bytes for Graphics Multipage PCX bitmap file files are B1 68 DE 3A at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .dcx file?

To validate a .dcx file, read the first bytes of the file and compare them against the known magic bytes (B1 68 DE 3A) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .dcx files?

The primary MIME type for .dcx files is image/vnd.zbrush.dcx.

Is it safe to open .dcx files?

Graphics Multipage PCX bitmap file (.dcx) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.