wire / magic /
bzip2
bzip2 signature
A bzip2 file begins with the 3-byte signature 'BZh' (0x42 0x5A 0x68) followed by the block size digit ('1'-'9', 0x31-0x39).
magic kind signature status de-facto verification verified tier B file-signature@1
aka: bzip2 magic · .bz2 · .bzip2
file signature
magic: 42 5A 68 @ offset 0
.bz2.bzip2 application/x-bzip2
spec: bzip2
- Signature: 'BZh' (0x42 0x5A 0x68) + block size digit ('1'-'9').
- bzip2 uses the Burrows-Wheeler transform (BWT) + move-to-front + Huffman coding.
- Block sizes: 100KB-900KB (digit 1-9).
- bzip2 is slower than gzip but compresses better.
agent: curl -H 'accept: application/json' wire.phall.io/magic/bzip2
or /magic/bzip2.json