Corel color palette file

application/octet-stream

High
⚠️

High Risk Format

This file type can contain executable code. Always validate source and scan with antivirus before opening.

Magic Bytes

Offset: 0
4D 5A

The Corel color palette file is a legacy proprietary format developed by Corel Corporation for defining and storing custom color information. It is primarily utilized by CorelDRAW and related graphic design software to maintain consistent color schemes across digital illustrations and print layouts. Because this extension conflicts with Windows Control Panel executables and utilizes an executable-style binary structure, it is considered high-risk and is frequently blocked by security protocols to mitigate potential malware execution.

Extension

.cpl

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

High

Validation Code

How to validate .cpl files in Python

Python
def is_cpl(file_path: str) -> bool:
    """Check if file is a valid CPL by magic bytes."""
    signature = bytes([0x4D, 0x5A])
    with open(file_path, "rb") as f:
        return f.read(2) == signature

How to validate .cpl files in Node.js

Node.js
function isCPL(buffer: Buffer): boolean {
  const signature = Buffer.from([0x4D, 0x5A]);
  return buffer.subarray(0, 2).equals(signature);
}
Go
func IsCPL(data []byte) bool {
    signature := []byte{0x4D, 0x5A}
    if len(data) < 2 {
        return false
    }
    return bytes.Equal(data[:2], signature)
}

API Endpoint

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

Related Formats