Convert TGZ to TAR

Turn TGZ archives into TAR. The tar inside is taken out byte for byte, 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

The tar inside, unchanged.The gzip layer comes off and the TAR underneath stays as it was.

  1. What you get

    One TAR file. The tar inside the TGZ is taken out byte for byte, so every entry keeps its path, owner, permissions and times.

    Nothing in the archive is rebuilt or rewritten. Only the gzip compression is removed.

  2. What changes

    A TAR has no compression by itself. It holds files and folders in one stream, so the result is the same archive without the gzip wrapper. To wrap it again, use TAR to TGZ.

  3. When it stops

    If the file cannot be parsed, the conversion stops with input_corrupted. That code means the TGZ is damaged or is not a valid gzipped tar.

TGZ and TAR.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 · TAR

Tar Archive

Unix tape archives. Files and folders in one stream, no compression by itself.

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

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

terminal
$ cv convert archive.tgz archive.tar
$ cv convert archive.tgz archive.tar

Questions.What people ask about TGZ to TAR.

01OF 04

Yes. Every entry keeps its path, owner, permissions and times.

One file. It is a single TAR that holds all the entries from the TGZ.

No. The tar inside is taken out byte for byte, so the entries are not rebuilt.

The file could not be parsed. The conversion stops with that code when the TGZ cannot be read as a gzipped tar.

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