.BZ

BZ File

bzip2 Compressed File
Ask a question
QUICK ANSWER

A BZ file is a bzip2-compressed file - the same format as .bz2, just an older extension. It holds one decompressed file, not a folder. On Windows, use the free 7-Zip or PeaZip to extract it. On macOS, double-click in Finder. On Linux, run bunzip2 file.bz.

Developer: Julian Seward (bzip2 project) Category: Compressed Files Open standard MIME: application/x-bzip
OPENS ON Windows macOS Linux
Related: .RAR · .ZIP · .Z01 · .7Z

On this page

19k+ extensions indexed
Last reviewed Aug 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the BZ file format?

A .bz file is a bzip2-compressed data file - functionally identical to the more common .bz2 format. The same compression algorithm, the same binary stream structure, and the same tooling apply; .bz is simply the older, shorter extension convention for bzip2 output. All software that handles .bz2 handles .bz equally.

bzip2 compresses a single data stream using a Burrows-Wheeler transform (BWT), followed by move-to-front encoding, run-length encoding, and Huffman coding. This multi-stage pipeline typically achieves better compression ratios than .gz on text and source code, at the cost of slower compression and decompression speed.

The file begins with a 3-byte signature BZh (hex 42 5A 68) followed by an ASCII digit 1-9 indicating the block size in hundreds of kilobytes (9 = 900 KB default). Each compressed block contains an independent CRC-32 checksum; the file ends with a stream-level CRC-32, allowing bzip2recover to salvage undamaged blocks from a partially corrupt file.

Like gzip, bzip2 compresses a single file stream with no multi-file bundling. To compress a directory, wrap files in a .tar archive first, producing .tar.bz2 (also .tbz2).

  • bzip2 was created by Julian Seward; version 1.0.8 (2019) is the current stable release.
  • The format is increasingly displaced by xz/LZMA and zstd for better compression ratio or speed.
  • The bunzip2 command and the tar -j flag decompress .bz and .bz2 files.

Security & safety

RISK: LOW

bzip2 is open-source and the format is safe; a .bz cannot execute on its own. Standard archive cautions apply: a .bz from an untrusted source may contain a malicious executable revealed after extraction - scan contents before running anything. A tiny .bz can expand to a very large file (decompression bomb), so be wary of unusually small archives.

Format details

in a nutshell
FULL NAMEbzip2 Compressed Fileaka bzip2 archive (single-file), .bz file
DEVELOPERJulian Seward (bzip2 project)since 1996 (bzip 0.21); bzip2 1.0 in 2000
MIME TYPEapplication/x-bzip
TYPESingle-stream bzip2 compressed file (binary)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102
HEX
425A68
ASCII
BZh
Fixed 3-byte signature 42 5A 68 ("BZh") at offset 0, followed by an ASCII digit '1'-'9' (block size in hundreds of KB; "9" = 900 KB default). The next 6 bytes are a compressed-block magic derived from pi (31 41 59 26 53 59). Identical header to .bz2 - the only difference is the file extension (.bz is simply a less-common alias).

Programs that open BZ files

Windows4 apps
WinRAR Paid Double-click to open and Extract; handles .bz natively. (7-Zip/PeaZip are the free alternatives.)
7-Zip Open-source Right-click the .bz file > 7-Zip > Extract Here. Produces the single decompressed file. Free and no install needed beyond 7-Zip.
PeaZip Open-source Open the .bz in PeaZip and click Extract. Handles .bz identically to .bz2.
ALZip Freemium Open or drag-drop the .bz file and extract.
macOS3 apps
The Unarchiver Free Set as default for .bz and double-click; free on the Mac App Store.
Archive Utility (built-in) Built-in Double-click the .bz file in Finder - macOS decompresses it automatically. No install needed.
Keka Free Drag the .bz onto Keka to extract; Keka also creates .bz2/.tar.bz2.
Linux1 app
bzip2 / bunzip2 (CLI) Open-source Run 'bunzip2 file.bz' to decompress. Pre-installed on essentially all Linux/Unix systems.

Technical details

deep spec
File signature42 5A 68 ("BZh") at offset 0, followed by ASCII digit 1-9 (block size: n × 100 KB)
Compression algorithmBurrows-Wheeler transform (BWT) + move-to-front + run-length encoding + Huffman coding
Block size100 KB - 900 KB (set at compression time via -1 through -9 flags; -9 = 900 KB default)
CRC integrityCRC-32 per compressed block + stream-level CRC-32 footer
ContainerNone - single compressed stream; does not bundle multiple files
MIME typeapplication/x-bzip (also application/x-bzip2)
EncodingBinary bit-stream; no byte-order alignment required
Partial recoverybzip2recover extracts undamaged blocks from a corrupt or truncated file
Multi-file useCombine with .tar to produce .tar.bz2 (.tbz2) for multi-file compression
Compression ratio vs gzipTypically 10-20% better on text/source code; significantly slower compression and decompression
Typical decompression speed~20-30 MB/s single-core (much slower than zstd or lz4)
Format stabilityUnchanged since bzip2 1.0 (2000); all BZh streams across versions are mutually compatible
Legacy variantBZ0 (bzip pre-1.0) used arithmetic coding - obsolete, not readable by bzip2 1.x
Modern alternativesxz/LZMA for better compression ratio; zstd for better speed; both gradually displacing bzip2
Released1996 (bzip 0.21); bzip2 1.0 in 2000
Latest versionbzip2 1.0.8 (2019); format unchanged since 1.0
Open standardYes · royalty-free
Specificationsourceware.org

BZ conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with BZ files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about BZ files.

Frequently asked questions

What is a .bz file?
A bzip2-compressed file - identical to .bz2 but with an older, shorter extension. The binary content and format are the same; you can often rename .bz to .bz2 and it opens fine.
Is .bz the same as .bz2?
Yes - same bzip2 format, different extension. Modern tools default to .bz2; .bz is the older convention. Rename .bz to .bz2 if a tool doesn't auto-detect it.
How do I open a .bz file on Windows?
Install the free 7-Zip or PeaZip; right-click > Extract. Windows Explorer doesn't open .bz natively.
My .bz only produced one file - why not a folder?
Because bzip2 compresses a SINGLE stream, not a folder. For multiple files, look for a .tar.bz2 (which bundles them in a .tar first). A bare .bz holds exactly one file.
How do I open a .bz file on Linux?
Run 'bunzip2 file.bz'. For multiple files in a .tar.bz archive use 'tar -xjf file.tar.bz'.

References

1bzip2 - official site and manual (Sourceware)sourceware.org
2Wikipedia - bzip2 (algorithm and format)en.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.RARRAR Archive (Roshal ARchive)
.ZIPZIP Archive
.Z01Split ZIP Archive - First Part
.7Z7-Zip Archive
.001Split / multi-volume archive - first part (.001)
.ZIRenamed / Truncated ZIP Archive

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z