.bz2 Bzip2 archive

Archives & packages

MIME typeapplication/x-bzip2
DescriptionBzip2 archive
CategoryArchives & packages
Signature (magic bytes)42 5A 68 (BZh)

Frequently asked questions

What is a .bz2 file?

A .bz2 file is a “Bzip2 archive” (MIME type application/x-bzip2).

How do I open a .bz2 file?

With an archive tool such as 7-Zip (Windows) or the built-in archive manager on macOS or Linux. On the command line, use tar, unzip or 7z depending on the format.

How can you tell a genuine .bz2 file?

By the bytes at the start of the file, the signature (magic bytes): 42 5A 68 (BZh). On Linux and macOS, file --mime-type example.bz2 checks the real type regardless of the extension.

Which MIME type belongs to .bz2?

The MIME type is application/x-bzip2. In the Apache web server: AddType application/x-bzip2 .bz2; in nginx: types { application/x-bzip2 bz2; }.

Nearby entries