bzip2

application/x-bzip2

Extensions
.bz2 .boz
Compressible
no
Status
de facto

Julian Seward's block-sorting compressor: Burrows-Wheeler plus Huffman, squeezing noticeably tighter than gzip at the cost of speed. Like gzip it compresses a single stream and has no notion of files, so in practice it arrives as .tar.bz2. The x- prefix means it was never registered with IANA — the label is convention, defined by the reference implementation rather than a spec. New systems have largely moved to xz and zstd, but two decades of source tarballs keep the type alive; every stream opens with BZh followed by the block-size digit.

Magic bytes

42 5a 68 · "BZh" · offset 0

Per List of file signatures — Wikipedia · test a file against it.

Defined by bzip2 home page. Registry facts from the IANA media-types registry via mime-db.