Extract .BZ2 Files Online
(No Size Limits)
Open, view, and unpack source archives securely in your browser tab. 100% safe from data leaks, lightning-fast processing, and optimized for large developer packages.
About Decompression of BZ2
A .bz2 file holds one compressed file and nothing else. Bzip2 has no concept of folders or multiple entries, so backup.sql.bz2 decompresses to exactly one backup.sql. If you were expecting a folder, the file you want is probably .tar.bz2, where TAR does the bundling first.
Why bzip2 still exists
Bzip2 works differently from gzip. It sorts blocks of data with the Burrows-Wheeler transform before Huffman coding them, which produces noticeably smaller files than gzip at the cost of being slower in both directions. For years that was the sensible trade for anything distributed once and downloaded often.
XZ and Zstandard have since taken both ends of that trade, XZ compressing harder and Zstandard decompressing far faster, so new projects rarely choose bzip2. It remains common because a great deal of existing software, scientific data and older Linux packaging was published in it and never re-encoded.
Why this one was hard to build
BZ2 routed through the bundled build of libarchive.js, whose only entry point copies the entire archive into the WebAssembly heap before doing anything. That imposed a 300 MB ceiling on a page that advertises no size limits.
The callback API that would allow streaming was compiled into that build but never exported, and every prebuilt libarchive binding published to npm takes the archive as a single Uint8Array. None of them can stream, so none could fix it.
libarchive is therefore built from source here with both halves exposed. Input arrives through archive_read_set_read_callback and its seek and skip counterparts, answered from a sliding window over the file, so the archive is never resident in memory. Output returns through archive_read_data_block one chunk at a time and is written straight to disk. Memory stays flat in both directions regardless of file size.
Doing it from a terminal instead
To decompress a single .bz2 file, keeping the original:
bunzip2 -k archive.bz2
For a .tar.bz2, GNU tar detects the compression on its own:
tar -xf archive.tar.bz2
What does not work
Multi-volume archives split across several files are not supported, and neither is encrypted 7z. Bzip2 has no encryption of its own, so a password-protected .bz2 is really an encrypted container holding one, and that outer layer has to come off first.
BZ2 FAQ
Everything you need to know about how unpk.app processes BZ2 locally.
Is it safe to extract BZ2 files online with unpk.app?
Yes, extracting BZ2 files on unpk.app is completely secure. The entire decompression process runs locally in your browser memory via WebAssembly. Your BZ2 archive is never uploaded to a server, keeping your confidential contents entirely private.
Can I unpack large BZ2 archives like 5GB or 10GB files?
Yes! There are no artificial file size caps or upload limits for BZ2 archives. Since unpk.app extracts BZ2 files entirely within your browser using WebAssembly, you are only limited by your device's physical memory (RAM).
Do I need an app like WinRAR or 7-Zip to extract BZ2 files?
No software installation or browser extensions are needed to open BZ2 files. unpk.app decompresses BZ2 archives directly in your browser tab, making it ideal for restricted school Chromebooks or locked-down corporate environments.
Can unpk.app extract password-protected or encrypted BZ2 files?
Yes! unpk.app supports unlocking password-protected BZ2 archives locally. Since the password prompt and decryption run completely client-side in your browser, your passwords are never sent over the network or stored on any server.
Can I decompress BZ2 files on mobile browsers like iOS Safari?
Yes! You can extract and view the contents of BZ2 files directly on iOS Safari or Android Chrome. unpk.app runs smoothly on mobile devices, allowing you to open BZ2 archives on the go without installing extra apps.
Is there a limit on how many BZ2 files I can extract for free?
No. unpk.app offers unlimited, free BZ2 file extractions. Because the processing runs locally on your computer rather than our servers, we don't charge any fees or enforce any bandwidth or volume limits.
What other formats can I extract here besides BZ2?
In addition to BZ2, unpk.app supports 9 other formats: ZIP, RAR, 7Z, TAR, GZ, TAR.GZ, XZ, TAR.XZ, BZ2, and ISO. All formats are unpacked entirely locally inside your browser via WebAssembly.