File types / Archives
.bz2 file
Bzip2 compressed file
- Extensions
- .bz2
- MIME type
application/x-bzip2- Signature
42 5A 68(BZh)at byte offset 0- Safety
- Low risk
What is a .bz2 file?
Bzip2 compresses a single file, typically smaller than gzip but slower. It is common for source tarballs.
Files start with BZh followed by a digit from 1 to 9 giving the block size.
Used for: Compressed source archives.
How can I tell if a file is really a BZ2?
Read its first bytes rather than trusting the name. A genuine BZ2 file has the signature 42 5A 68 (BZh) at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.
To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.
Is a .bz2 file safe to open?
Compression only. Judge the content, not the wrapper.
Easy to confuse
As with gzip, many bz2 files wrap a tar archive (.tar.bz2).