Convert TGZ to TBZ2

Turn TGZ archives into TBZ2. The tar inside is kept byte for byte and only the compression changes, so every entry keeps its path, owner, permissions and times.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Same archive, bzip2 inside.Only the compression changes. Every entry keeps its path, owner, permissions and times.

  1. What you get

    One TBZ2 file that holds the same tar as your TGZ. The tar inside is kept byte for byte, so the entries are the same as before.

    Paths, owners, permissions and times stay as they were in the TGZ. The only difference is the compression around the tar: gzip becomes bzip2.

  2. What changes

    The compression. A TGZ is a tar compressed with gzip, and a TBZ2 is a tar compressed with bzip2. Nothing else about the archive is changed.

    The conversion has no options. You give it a TGZ and get back one file.

  3. When it fails

    The conversion stops with input_corrupted when the file could not be parsed. In that case no TBZ2 is produced.

    To go the other way, use TBZ2 to TGZ.

TGZ and TBZ2.What each format is.

The formats

From · TGZ

Gzipped Tar Archive

Gzip-compressed tar archives, the way source code ships.

Extensions
.tgz
MIME type
application/gzip
Kind
Archives
To · TBZ2

Bzip2 Tar Archive

Bzip2-compressed tar archives.

Extensions
.tbz2 .tbz
MIME type
application/x-bzip2
Kind
Archives

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

terminal
$ cv convert archive.tgz archive.tbz2
$ cv convert archive.tgz archive.tbz2

Questions.What people ask about TGZ to TBZ2.

01OF 04

No. The tar inside is kept byte for byte, so every entry keeps its path, owner, permissions and times.

No. The conversion has none. It changes the compression from gzip to bzip2 and nothing else.

The file could not be parsed. The conversion stops with this code and gives no TBZ2.

Yes. Use TBZ2 to TGZ to change the compression back.

More conversions.Other ways in and out of TGZ and TBZ2.