What is a BZ2 file?

BZ2 (bzip2) compresses one single file. It usually packs smaller than GZ but works slower. To pack a folder, it is first joined into a TAR file (.tar.bz2).

Drop your file here

or select file

Images, video, audio, documents, data, archives, fonts and more.

About BZ2 file:

01BZ2 at a glance

Full name
bzip2 compressed file
Type
Compresses one single file
Extension
.bz2 (a compressed TAR: .tar.bz2, .tbz2)
MIME type
application/x-bzip2
First bytes (hex)
42 5A 68 (the text BZh)
Created
1996, by Julian Seward
Block size
100 to 900 kB

02What is a BZ2 file

BZ2 is the output of the bzip2 program, written by Julian Seward (first public release in July 1996). It compresses data with the Burrows-Wheeler transform, followed by run-length encoding, move-to-front and Huffman coding. Wikipedia says it compresses most files more effectively than Deflate (the method of ZIP and GZ), but it is considerably slower at compressing.

Bzip2 is not an archiver. It compresses one file only and has no support for several files, passwords or splitting. For a folder, tar joins the files first, which gives .tar.bz2. The data is cut into blocks of 100 to 900 kB, and each block can be unpacked without the earlier ones.

A BZ2 stream ends with a fixed end marker and a checksum. This tool looks for that marker to tell you whether the file is whole. A browser cannot unpack BZ2, so this tool cannot look inside, and it says so.

03Good and bad sides

Good

  • Packs most files smaller than GZ
  • Blocks are independent, so unpacking can run in parallel
  • Free, with a permissive licence

Bad

  • Slow compression
  • One file only, no password
  • Browsers cannot unpack it

04Best for

  • Smaller files than GZ

    Packs most files smaller than GZ.

  • Source code and backups on Linux

    Smaller than GZ for most files, but slower to compress.

05How to open it

Linux, macOS
Terminal: bunzip2 file.bz2, or tar -xjf file.tar.bz2
Windows 11
File Explorer opens .tar.bz2 and .tbz2 since the October 2023 update
Older Windows
7-Zip or WinRAR

06Convert and compare

Related formats: GZ, XZ, TAR, ZIP

Sources