Convert GZ to BZ2
Turn GZ archives into Bzip2. The bytes inside the gzip 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 .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 bzip2.The content stays the same. The compression layer changes from GZ to BZ2.
What you get
One BZ2 file. The bytes inside the gzip layer are compressed again as a single bzip2 stream. The file keeps its name, with .bz2 in place of .gz.
The content inside is the same as before. Only the way it is compressed changes.
What it leaves behind
A gzip header may store a file name and a time. Neither is kept in the BZ2 file. The name of the output comes from the name of the GZ file, not from the name stored in its header.
Compression level
Set Compression level to a number from 1 to 9. Higher levels make a smaller file and take longer. Without a value, the conversion uses level 9.
The content is the same at every level, so the choice only affects the size of the file and the time the work takes.
To go the other way, use BZ2 to GZ. For other archive conversions, see every GZ conversion.
GZ and BZ2.What each format is, and the options this conversion takes.
- 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
Gzip
A single file compressed with gzip, such as a log or a CSV.
- Extensions
- .gz
- MIME type
- application
/gzip - Kind
- Archives
Bzip2
A single file compressed with bzip2.
- Extensions
- .bz2
- MIME type
- application
/x -bzip2 - Kind
- Archives
In your code.The same GZ to BZ2 conversion through the API, for your app or your agent.
$ cv convert archive.gz archive.bz2$ cv convert archive.gz archive.bz2Questions.What people ask about GZ to BZ2.
No. The bytes inside the gzip layer are compressed again as they are. Only the compression format around them changes.
Level 9. Set Compression level to a value from 1 to 9 to use another one.
The output takes the name of your GZ file with .bz2 in place of .gz. The name and time stored in the gzip header are not kept.
No. A higher level makes a smaller file and takes longer, but the content is the same at every level.