Convert XZ to BZ2

Turn XZ archives into Bzip2. The bytes inside the xz layer are compressed again as one bzip2 stream at level 9 unless level is given, under this file's name with .bz2 in place of .xz.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XZ files on the dialor turn it to pick what to do

An XZ file repacked as BZ2.One file in, one file out, with the same content inside.

  1. What you get

    A BZ2 file holding the same bytes that were inside the XZ file. The xz layer is removed, and the content is compressed again as one bzip2 stream.

    The output keeps the file's name, with .bz2 in place of .xz.

  2. Compression level

    The conversion uses level 9 unless you set Compression level. The range is 1 to 9. A higher level makes a smaller file and takes longer. The content is the same at every level.

    To go the other way, use BZ2 to XZ.

XZ and BZ2.What each format is, and the options this conversion takes.

  1. 01 · level

    Compression level

    How hard the compressor works. Higher makes a smaller file and takes longer. The content is the same at every level.

    1 to 9

The formats

From · XZ

XZ

A single file compressed with xz, the LZMA format of most Linux distributions.

Extensions
.xz
MIME type
application/x-xz
Kind
Archives
To · BZ2

Bzip2

A single file compressed with bzip2.

Extensions
.bz2
MIME type
application/x-bzip2
Kind
Archives

In your code.The same XZ to BZ2 conversion through the API, for your app or your agent.

terminal
$ cv convert archive.xz archive.bz2
$ cv convert archive.xz archive.bz2

Questions.What people ask about XZ to BZ2.

01OF 04

No. The bytes inside the xz layer are the bytes in the bzip2 stream. Only the compression around them changes.

Level 9, unless you set Compression level to a value from 1 to 9.

It has the name of your file with .bz2 in place of .xz.

No. It changes how hard the compressor works. A higher level makes a smaller file and takes longer.

More conversions.Other ways in and out of XZ and BZ2.