GZ
You can also paste a file or a link to a file with Ctrl+V
Don't see your format?
When you need GZ to TAR
GZ is the most widespread compression on Linux: it is used for logs, exports, backups, and packages. But some systems and scripts expect an uncompressed tar and do not read gzip. Conversion removes the compression and hands the data back as TAR.
What you get
- From a regular
.gzyou get a TAR with one file under its original name:access.log.gzbecomes a tar withaccess.log. - From a
.tar.gzyou get a TAR with all of its files laid out.
The data does not change; only the packaging does. TAR does not compress, so the result is larger than the source GZ - for text logs often several times.
When TAR beats ZIP
- The file is for a system, script, or pipeline that takes tar.
- You need an uncompressed archive for later processing.
- An export has to be prepared for a Linux server without manual unpacking.
- For a person on Windows, GZ to ZIP fits: it opens with built-in tools.
Common tasks and search situations
- tar.gz to tar without compression;
- a .gz log for an analysis script;
- hosting backup to tar;
- a sql.gz export for a loader;
- gz to tar without the command line;
- prepare a distribution for installation;
- repack gzip on a computer with no utilities.
What to check before converting
- Make sure you need tar and not ZIP.
- Mind the size: uncompressed logs can take several times more space.
- Check that the file downloaded completely.
- If a
.tgzmust be opened on Windows, use TGZ to ZIP.
Limitations
GZ has no password. A damaged or incomplete file may fail to unpack, and the service does not repair such data. TAR does not compress: if small size matters, it is not the best choice.
Related tasks
For opening on Windows and Mac - GZ to ZIP. For other compression formats - BZ2 to TAR and XZ to TAR.
What is GZ to TAR conversion used for
Logs for an analysis script
The script reads only tar, while the logs were exported as .gz.
Hosting backup
The panel delivered a .tar.gz, and the restore system expects an uncompressed tar.
Dump for a loader
The loader on the server accepts tar, while the export was saved as .sql.gz.
Distribution for installation
A .tar.gz package is needed as tar for the build process.
Tips for converting GZ to TAR
Estimate the size growth
Text logs grow several times without compression: check free space.
Choose ZIP for people
If the file will be opened on Windows or Mac, ZIP is more convenient.
Download again on error
An interrupted download is a common cause of errors when converting .gz.