Convert GZ to XZ

Turn GZ archives into XZ. The bytes inside the gzip 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 .gz.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A gzip 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 gzip layer are compressed again as a single xz stream, so the file you open after unpacking is the same as before.

    The output keeps the name of the GZ file, with .xz in place of .gz.

  2. What it leaves behind

    A gzip header can store a file name and a time. Neither is kept in the XZ file. The name of the output comes from the GZ file's own name instead.

  3. Compression level

    Compression is set to level 6 unless you choose another. Set Compression level to a value from 1 to 9. A higher level makes a smaller file and takes longer.

    The content is the same at every level, so the level only changes how hard the compressor works.

GZ 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 · GZ

Gzip

A single file compressed with gzip, such as a log or a CSV.

Extensions
.gz
MIME type
application/gzip
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 GZ to XZ conversion through the API, for your app or your agent.

terminal
$ cv convert archive.gz archive.xz
$ cv convert archive.gz archive.xz

Questions.What people ask about GZ to XZ.

01OF 04

The output takes the name of the GZ file with .xz in place of .gz. Any name stored inside the gzip header is not kept.

No. The bytes inside the gzip layer are compressed again, and the content is the same at every level.

Level 6, unless you set Compression level. It accepts 1 to 9.

Yes. XZ to GZ converts an XZ file the other way.

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