Convert BZ2 to XZ

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

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A bzip2 file recompressed as xz.The content stays the same. Only the compression around it changes.

  1. What you get

    One XZ file. The bytes inside the bzip2 layer are compressed again as a single xz stream. The file keeps its name, with .xz in place of .bz2.

  2. Compression level

    The default is level 6. Set Compression level to a number from 1 to 9 to change it. A higher level makes a smaller file and takes longer. The content is the same at every level.

  3. Going back

    To return to bzip2, use XZ to BZ2. For other options, see every XZ conversion.

BZ2 and XZ.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 · BZ2

Bzip2

A single file compressed with bzip2.

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

XZ

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

Extensions
.xz
MIME type
application/x-xz
Kind
Archives

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

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

Questions.What people ask about BZ2 to XZ.

01OF 04

No. The bytes inside the bzip2 layer are compressed again as they are. Only the compression format around them changes.

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

Level 6. Set Compression level to a value from 1 to 9 to use another.

No. A higher level makes a smaller file and takes longer, but the content is the same at every level.

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