UC2

application/x-uc2-compressed

Safe

Magic Bytes

Offset: 0
55 43 32 1A

The UC2 file format is an archive container developed by Nico de Vries for the UltraCompressor II utility. It was primarily used in MS-DOS environments during the early 1990s to provide data compression and multi-volume spanning for software distribution. Now considered a legacy format, it has largely been superseded by modern standards like ZIP or RAR, though files remain safe to extract using compatible archival software or specialized digital forensic recovery tools.

Extension

.uc2

MIME Type

application/x-uc2-compressed

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .uc2 files in Python

Python
def is_uc2(file_path: str) -> bool:
    """Check if file is a valid UC2 by magic bytes."""
    signature = bytes([0x55, 0x43, 0x32, 0x1A])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .uc2 files in Node.js

Node.js
function isUC2(buffer: Buffer): boolean {
  const signature = Buffer.from([0x55, 0x43, 0x32, 0x1A]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsUC2(data []byte) bool {
    signature := []byte{0x55, 0x43, 0x32, 0x1A}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats