How to Extract Files from a BZ2 (Bzip2) Archive on macOS
BZ2 (Bzip2) provides higher compression ratios than Gzip, making it popular for distributing source code and large datasets. macOS supports Bzip2 natively through Terminal.
The default way to open BZ2 files on macOS
Tool: Terminal (built-in)
$ bunzip2 file.bz2Steps
- For standalone .bz2 files: bunzip2 file.bz2 (decompresses in place).
- For .tar.bz2 archives: tar xjf archive.tar.bz2
- Double-clicking a .tar.bz2 in Finder will also extract it via Archive Utility.
Extract individual files from a BZ2 archive
The default macOS tools extract everything — there's no way to pick individual files. MacPacker lets you browse BZ2 archive contents, preview files, and extract only what you need — without unpacking the entire archive.
A better way: open BZ2 files with MacPacker
MacPacker is a free, open-source macOS archive manager that supports BZ2 and 30+ other formats. Unlike the default tools, MacPacker lets you:
- Browse archive contents like a folder
- Preview files with Quick Look without extracting
- Extract individual files via drag and drop
- Navigate nested archives (archives within archives)
- Enjoy a native SwiftUI interface that feels right at home on macOS
Get MacPacker
v0.15.1 · macOS 14+$ brew install --cask macpackerApp Store updates may lag a few days behind direct downloads due to Apple review.
Frequently asked questions
How do I extract a .bz2 file on Mac?
Open Terminal and run: bunzip2 file.bz2. For .tar.bz2 archives, run: tar xjf archive.tar.bz2. Finder can also handle .tar.bz2 via Archive Utility.
What is the difference between .gz and .bz2?
Both are compression formats. Bzip2 (.bz2) achieves better compression ratios but is slower than Gzip (.gz). For most users, the difference is negligible — both work on macOS.
Related formats
TAR (tape archive) bundles files without compression. Often combined with GZ, BZ2, or XZ for compressed archives. Natively supported via Terminal on macOS.
Gzip is the most common compression format on Unix/macOS. Usually wraps a TAR archive to create .tar.gz files. Natively supported on macOS.
XZ uses LZMA2 compression for excellent compression ratios. Common in Linux distributions and large software packages.