Microsoft Code Page Translation file

application/octet-stream

Safe

Magic Bytes

Offset: 0
5B 66 6C 74 73 69 6D 2E 30 5D

The Microsoft Code Page Translation file is a legacy system format developed by Microsoft for managing character set mappings in older Windows and DOS environments. It functions as a compressed container for code page definitions, enabling operating systems to render localized text and special characters accurately for different languages. While these files present no inherent security risks, they are now considered obsolete due to the universal adoption of the Unicode standard in modern software.

Extension

.cpx

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .cpx files in Python

Python
def is_cpx(file_path: str) -> bool:
    """Check if file is a valid CPX by magic bytes."""
    signature = bytes([0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D])
    with open(file_path, "rb") as f:
        return f.read(10) == signature

How to validate .cpx files in Node.js

Node.js
function isCPX(buffer: Buffer): boolean {
  const signature = Buffer.from([0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D]);
  return buffer.subarray(0, 10).equals(signature);
}
Go
func IsCPX(data []byte) bool {
    signature := []byte{0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D}
    if len(data) < 10 {
        return false
    }
    return bytes.Equal(data[:10], signature)
}

API Endpoint

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

Related Formats