.bz2 File Extension

Learn what a .bz2 file contains, how to open and decompress it, how Poly supports it, and when another compression format may work better.

File extension details for .bz2

Storage Only
File typeBzip2 compressed data
MIME type
EncodingBinary, lossless Bzip2-compressed byte stream
Operating systemsWindows, macOS, Linux
Opens withbzip2, 7-Zip, GNU tar, PeaZip
Poly supportYes. Poly stores, syncs, shares, versions, and downloads BZ2 files.
Indexed by PolyPartial. Poly indexes the filename and ordinary file properties, not compressed contents.
Preview in PolyNo. Download the file to decompress or inspect it.
Poly agentNo. The Poly agent cannot read data inside the compressed stream.

What kind of file is a .bz2?

A .bz2 file contains one stream of data compressed with Bzip2. Compression is lossless, so decompression reproduces the original bytes. Unlike ZIP, Bzip2 does not bundle a directory tree or multiple named members. A filename such as logs.tar.bz2 normally means that a TAR archive was created first and then compressed with Bzip2.

The usual MIME label is application/x-bzip2. It is a widespread convention, but it is not registered in IANA's application media-type registry.1 A real Bzip2 stream begins with ASCII BZh, hexadecimal 42 5A 68, followed by a digit from 1 through 9. That digit records a block size from 100,000 to 900,000 bytes.2

Renaming archive.zip or an older .bz file to .bz2 does not convert it. Check the header and let a Bzip2 decoder validate the complete stream.

How do I open a .bz2 on my computer?

  • On Windows, open or extract it with 7-Zip or PeaZip.
  • On macOS and Linux, use bunzip2, bzip2 -d, or an archive utility that supports Bzip2.
  • For package.tar.bz2, GNU tar can decompress the outer stream and extract the tar members in one operation.3

To keep the compressed source while writing the decompressed result, run bzip2 -dk report.txt.bz2. Use bzip2 -tv report.txt.bz2 to test integrity without saving decompressed output. For a tarball, list its members first with tar -tjf package.tar.bz2, then extract into a new directory only after reviewing the paths.

Poly support for .bz2

Poly recognizes .bz2 as Bzip2 data. It stores, syncs, shares, versions, and downloads the file, and you can find it by filename and ordinary file properties.

Poly does not decompress the stream, generate a content preview, index the decompressed data or tar members, or give the Poly agent access to content inside it. Download and decompress the file with a trusted local tool. Add the resulting files to Poly separately to receive the preview, search, and agent capabilities available for their formats.

History of .bz2

Julian Seward created Bzip2 as a successor to his earlier, incompatible bzip compressor. Bzip2 0.15 appeared in July 1996, and the stable 1.0 line followed in 2000.4 The command-line interface deliberately resembles gzip, while the format uses the Burrows-Wheeler block-sorting transform and Huffman coding.2

The 2 distinguishes Bzip2 and .bz2 from the older bzip format and .bz suffix. Modern Bzip2 versions retain compatibility with the original public Bzip2 data format.2

Working with .bz2 and alternatives

Choose compression based on the job:

FormatGood fitMain tradeoff
Bzip2Existing Unix packages and compressible single streamsSlower and less broadly built in than newer choices
GzipWidely compatible Unix and web workflowsOften larger output than stronger compressors
XZCompact software distribution archivesHigher compression time and memory use
ZstandardFast modern compression and decompressionOlder systems may need an added tool
ZIPSharing multiple files with broad desktop supportDifferent container and compression model

Bzip2 always adds some overhead. Its manual notes that files smaller than about 100 bytes tend to grow, while already compressed or random data can expand by roughly 0.5%.2 Test representative files instead of assuming one format will always be smallest.

A CRC can reveal accidental corruption, but it does not authenticate the sender or make decompressed content safe. Untrusted data may expand dramatically, and a tarball may contain absolute paths, parent-directory references, links, or executables. Set resource limits, inspect tar member names, and keep important originals. Converting requires decompression and recompression; changing the suffix changes no bytes.

Footnotes

  1. Internet Assigned Numbers Authority. Media Types Registry. The application registry does not list application/x-bzip2.
  2. Julian Seward. bzip2 and libbzip2, version 1.0.8. The official manual documents the algorithm, header, block sizes, integrity checks, overhead, compatibility, and command behavior. 2 3 4
  3. Free Software Foundation. GNU tar: Creating and Reading Compressed Archives. GNU tar supports Bzip2 and can select compression from a filename suffix.
  4. Library of Congress. bzip2 Format Description. The preservation description records the release history and incompatibility with the earlier bzip format.
© Poly Corp. 2026