Skip to content

Elite Plus Commander saved game file (.cdr)

.cdr file signature | application/coreldraw

Elite Plus Commander saved game file

Safe

Magic Bytes

Offset 0
52 49 46 46

Sources: Apache Tika, Gary Kessler

All Known Signatures

3 signature variants are documented for .cdr files across multiple sources.

Hex Signature Offset Sources
52 49 46 46 0 Apache Tika, Gary Kessler
45 4C 49 54 45 20 43 6F 6D 6D 61 6E 64 65 72 20 0 Gary Kessler
4D 53 5F 56 4F 49 43 45 0 Gary Kessler

Extension

.cdr

MIME Type

application/coreldraw

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .cdr files in Python

Python
def is_cdr(file_path: str) -> bool:
    """Check if file is a valid CDR by magic bytes."""
    signature = bytes([0x52, 0x49, 0x46, 0x46])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .cdr files in Node.js

Node.js
function isCDR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);
  return buffer.subarray(0, 4).equals(signature);
}

How to validate .cdr files in Go

Go
func IsCDR(data []byte) bool {
    signature := []byte{0x52, 0x49, 0x46, 0x46}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .cdr file?

A .cdr file is a Elite Plus Commander saved game file file. Elite Plus Commander saved game file

What are the magic bytes for .cdr files?

The magic bytes for Elite Plus Commander saved game file files are 52 49 46 46 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .cdr file?

To validate a .cdr file, read the first bytes of the file and compare them against the known magic bytes (52 49 46 46) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .cdr files?

The primary MIME type for .cdr files is application/coreldraw.

Is it safe to open .cdr files?

Elite Plus Commander saved game file (.cdr) 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.