.bz2

What is a .bz2 file?

BZ2 is bzip2-compressed data — better compression than gzip but slower, often paired with TAR on Linux.

Safe format
Type Archive
By Julian Seward
MIME application/x-bzip2

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

You have a .tar.bz2 archive, probably from a Linux software project. BZ2 is bzip2 compression — it squeezes harder than gzip at the cost of being slower. The resulting files are 10–20% smaller, which matters when you're distributing large source code tarballs or backing up servers.

Bzip2 uses the Burrows-Wheeler transform followed by Huffman coding — a mathematically elegant approach that Julian Seward implemented in 1996. It's a single-file compressor like gzip, so it's paired with TAR for archives. The format had its heyday in the early 2000s when bandwidth was expensive and the extra compression justified the slower speed. XZ has since overtaken it for most use cases.

Linux and macOS handle .bz2 natively (`tar -xjf archive.tar.bz2`). macOS Finder opens .tar.bz2 with a double-click. 7-Zip (free) handles it on Windows. If you're choosing a compression format for new archives, XZ gives better ratios at similar speeds. BZ2 is the middle child — better than gzip, worse than XZ, still everywhere.

Technical details
Full Name
Bzip2 Compressed File
MIME Type
application/x-bzip2
Developer
Julian Seward
Magic Bytes
42 5A 68
Safety
.bz2 is a known, safe format.
What opens it
Built-in on macOS/Linux
FREE macOS / Linux
7-Zip
FREE Windows
FAQ
What's the difference between bz2 and gz?
Bz2 compresses 10-20% smaller than gz but is significantly slower to compress and decompress. For small files the difference is negligible. For large archives, bz2 saves meaningful space at the cost of time.
How do I extract a .tar.bz2 file?
On Linux/macOS: `tar -xjf archive.tar.bz2`. On macOS, double-click in Finder. On Windows, use 7-Zip (free). The process is the same as .tar.gz — just a different compression layer.
Related formats