.BZ2

Файл BZ2

bzip2 Compressed File
Задать вопрос
БЫСТРЫЙ ОТВЕТ

A BZ2 file is a single file compressed with the bzip2 tool. On Windows, open it with the free 7-Zip or PeaZip. On macOS, double-click and Archive Utility handles it. On Linux, run bunzip2 file.bz2 or tar -xjf file.tar.bz2. Most BZ2 files you encounter are actually .tar.bz2 archives containing many files inside a TAR layer.

Разработчик: Julian Seward (bzip2) Категория: Сжатые файлы Открыть стандартное MIME: application/x-bzip2
ОТКРЫВАЕТСЯ НА Windows macOS Linux Android
Связанные: .RAR · .ZIP · .Z01 · .7Z

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Aug 3, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла BZ2?

.bz2 is a compressed file format produced by the bzip2 utility. Unlike a full archive, it compresses a single file or data stream - when multiple files need packaging, they are first bundled into a TAR archive and then compressed together, producing the .tar.bz2 (or .tbz2) packages seen across Linux distributions and open-source projects.

What data does a .bz2 file contain?

.bz2 files store data compressed using a pipeline of lossless algorithms:

  • Burrows-Wheeler Transform (BWT) - reorganizes data blocks to cluster repeated byte sequences
  • Move-to-front transform - exploits the locality produced by BWT
  • Run-length encoding (RLE) - collapses long runs of identical bytes
  • Huffman coding - entropy-codes the resulting symbol stream

Block sizes range from 100 KB to 900 KB and are selected at compression time; the default bzip2 command uses 900 KB blocks (file signature BZh9). Each block carries its own CRC-32 checksum, and a second stream-level CRC covers the whole file. The bzip2recover utility can salvage intact blocks from a partially damaged archive.

.bz2 on Unix-like systems

.bz2 files are typically found on Linux, macOS, and other Unix-like environments, where bzip2 and bunzip2 are standard CLI tools. The format is widely used for distributing software source code on such platforms.

Windows support

On Windows, .bz2 files are supported by tools such as 7-Zip, WinRAR, and PeaZip. The bzip2 utility itself is also available as an open-source Windows build. Compared to .gz files, .bz2 typically achieves a better compression ratio on text and source code, at the cost of slower compression and decompression. Newer formats such as .xz now often surpass bzip2 in both compression ratio and speed, but .tar.bz2 packages remain widely used in open-source software distribution. .bz2 files can also serve for creating backup copies of various data, such as picture collections or document libraries.

Безопасность и защита

РИСК: LOW

The bzip2 format is open and safe, and a .bz2 is just compressed data that can't run on its own. The usual archive cautions apply: a .bz2/.tar.bz2 from an untrusted source can contain executables or scripts revealed only after extraction, so scan the contents before running anything. Two technical notes: a tiny .bz2 can expand enormously ('decompression bomb') - be wary of suspiciously small archives; and a .tar.bz2 can contain '../' paths (path-traversal / 'tar slip'), so extract untrusted tarballs into an empty folder. Modern extractors guard against both.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕbzip2 Compressed Fileтакже известен как bzip2 archive, BZ2 file
РАЗРАБОТЧИКJulian Seward (bzip2)с 1996 (bzip 0.21); bzip2 1.0 released 2000
КАТЕГОРИЯСжатые файлы
MIME-ТИПapplication/x-bzip2
ТИПSingle-stream compressed file (Burrows-Wheeler transform + Huffman coding)
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.rar.zip.z01.7z
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
000102
HEX
425A68
ASCII
BZh
Fixed signature 42 5A 68 ("BZh") at offset 0, followed by an ASCII digit '1'-'9' giving the block size in hundreds of KB (e.g. "BZh9" = 900 KB blocks, the default). The next bytes are a compressed-block magic (pi: 31 41 59 26 53 59). Like gzip, plain bzip2 compresses ONE stream, so multi-file archives appear as .tar.bz2 (or .tbz2/.tbz).

Программы, открывающие файлы BZ2

Windows3 apps
WinRAR Платно Double-click to open and Extract; handles .bz2 and .tar.bz2 in one pass. (7-Zip/PeaZip are the free choices.)
7-Zip Открытый код Right-click the .bz2 > 7-Zip > Extract Here. For .tar.bz2, extract twice (once to .tar, once to the files). Free; also creates .bz2.
PeaZip Открытый код Open the .bz2/.tar.bz2 and Extract; handles the tar layer automatically in one step.
macOS3 apps
The Unarchiver Бесплатно Set as default for .bz2/.tar.bz2 and double-click to extract. Free on the Mac App Store.
Archive Utility (built-in) Встроенная Double-click the .bz2 or .tar.bz2 in Finder - macOS decompresses (and untars) it automatically. No install needed.
Keka Бесплатно Drag the .bz2 onto Keka to extract; Keka also CREATES .bz2 and .tar.bz2 with options.
Linux2 apps
bzip2 / bunzip2 / tar (CLI) Открытый код Single file: 'bunzip2 file.bz2'. Tarball: 'tar -xjf file.tar.bz2'. Pre-installed on essentially every Linux/Unix system.
Ark / File Roller / Xarchiver Открытый код Default KDE/GNOME archive managers: open the .bz2/.tar.bz2 and Extract from the GUI.
Android1 app
ZArchiver Бесплатно Tap the .bz2/.tar.bz2 and Extract; handles the tar layer too. Also creates .bz2.

Технические подробности

глубокая спецификация
MIME typeapplication/x-bzip2 (also application/x-bzip, application/bzip2)
Magic bytes42 5A 68 ("BZh") at file offset 0, followed by an ASCII digit '1'-'9' encoding the block size (e.g. BZh9 = 900 KB blocks)
EncodingBinary - bit-packed compressed stream
Compression pipelineBurrows-Wheeler Transform → move-to-front → run-length encoding → Huffman coding (all lossless stages)
Block sizeSelectable from 100 KB (level 1) to 900 KB (level 9); default is 900 KB; larger blocks improve ratio but require more RAM
Memory usageCompression: approximately 10× the block size; decompression: ~3.5 MB regardless of block size chosen
Integrity checkingCRC-32 checksum per compressed block plus a combined stream-level CRC verified on decompression
Block markerEach BWT block begins with the 48-bit pi constant 0x314159265359, used by bzip2recover to locate blocks in damaged files
Container modelStandalone compressed stream with no internal filename table or directory structure; multiple files need a TAR wrapper
Parallel compressionStandard bzip2 is single-threaded; pbzip2 and lbzip2 parallelize block-level compression on multi-core systems
Block recoverybzip2recover scans raw bytes for 48-bit block markers and writes each intact block to a separate recoverable .bz2 file
Compression ratio vs. gzipTypically 10-15% smaller than .gz on text and source code; decompression is 2-6× slower
Associated platformsLinux, macOS, Unix/BSD natively; Windows via 7-Zip, WinRAR, PeaZip; bzip2 CLI available for all major systems
Common use casesLinux/Unix source tarballs (.tar.bz2), software distribution packages, database dumps, and compressed log archives
Выпущен1996 (bzip 0.21); bzip2 1.0 released 2000
Последняя версияbzip2 1.0.8 (2019); format itself unchanged
Открыть стандартноеДа · без роялти
Спецификацияsourceware.org

Конвертации BZ2

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами BZ2. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах BZ2.

Часто задаваемые вопросы

How do I open a BZ2 file?
On Windows use 7-Zip or PeaZip (right-click > Extract). On macOS just double-click it (Archive Utility handles it) or use Keka. On Linux run 'bunzip2 file.bz2', or 'tar -xjf file.tar.bz2' for a tarball.
What's the difference between .bz2 and .tar.bz2?
A plain .bz2 compresses a SINGLE file. A .tar.bz2 (or .tbz2) is many files first bundled into one .tar archive, then bzip2-compressed - that's why most Linux/source downloads are .tar.bz2.
BZ2 vs GZ - which is better?
bzip2 usually compresses text/source tighter than gzip but is slower; gzip is faster and the default for HTTP/streaming. Newer xz and zstd often beat both. Use whatever your source provides - the tools open all of them.
How do I open a BZ2 file on Windows?
Windows Explorer doesn't open .bz2 natively, so install the free 7-Zip or PeaZip. Right-click the file > 7-Zip > Extract Here. For .tar.bz2 you may extract twice (bz2 then tar).
Why is my BZ2 file only one file when I expected many?
Because bzip2 compresses just one stream. Multiple files are packaged as .tar.bz2: the .tar holds all the files and bzip2 compresses it. Extract the bz2 to get the .tar, then extract the .tar.
Can I create a BZ2 file for free?
Yes - bzip2 is open, so 7-Zip, PeaZip and Keka all create .bz2/.tar.bz2 for free, and Linux/macOS have 'bzip2'/'tar' built in.

Ссылки

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

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.JPGJPEG Image
5.RPMSGRestricted Permission Message
6.EXEWindows Executable (Portable Executable)
7.JSONJavaScript Object Notation file
8.PARTPartial Download File
9.BINCD/DVD Disc Image (BIN/CUE)
10.DBSQLite Database File

Похожие расширения

.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

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z