Convert TAR.GZ to TAR.GZ Online

Instantly convert TAR.GZ files to TAR.GZ format on your device.

Member avatarMember avatarMember avatar

Over 50,000+ safe users and teams

GDPR and CCPA Compliant

How to compress TAR.GZ files

  1. 1. Add your TAR.GZ files

    Drop your TAR.GZ files into the converter above, or click to select them. You can add several at once.

  2. 2. Click Convert

    Choose a compression level in the options if you need to, then click Convert.

  3. 3. Download your TAR.GZ files

    Download your TAR.GZ files one by one, or all together in a zip with Download all.

What is TAR.GZ?

TAR.GZ (also written .tgz) is a TAR archive compressed with gzip: the files are first bundled into one TAR file, then the whole bundle is compressed. It is the most common archive format on Linux and the usual way open-source software is distributed.

gzip was written in 1992 by Jean-loup Gailly and Mark Adler for the GNU Project as a free replacement for the Unix compress tool. It uses the same DEFLATE algorithm as ZIP, so a TAR.GZ compresses about as well as a ZIP and decompresses very quickly.

Because the whole TAR bundle is compressed as one stream, a single file can't be pulled out without reading the archive from the start. In exchange, TAR.GZ keeps Unix permissions and links intact. It opens natively on Linux and macOS. Windows 11 can open it too.

All TAR.GZ conversions

How TAR.GZ compression works

A TAR.GZ is two layers: a TAR file that bundles your files and folders end to end, then gzip compression over that whole bundle. gzip uses Deflate, which replaces repeated byte sequences with short references to earlier copies within a fairly small window. Many tools run it at a fast or middle setting, so it doesn't look as hard as it could for matches.

This compressor unpacks both layers in your browser, rebuilds the TAR from the extracted files, then compresses it again with 7-Zip's gzip encoder at its maximum level (-mx=9). The maximum level searches more thoroughly for repeated data, which usually trims a few percent off text, code and logs. It stays a standard .tar.gz, but gzip's small window caps the gains: for a much smaller file, a format such as TAR.XZ goes further.

Why compress TAR.GZ files?

  • Shave some size off a .tar.gz made by a script or a backup job that used gzip's fast default settings.
  • Shrink a source tarball or a log bundle a little more while keeping the .tar.gz format every Linux server and macOS terminal can unpack.
  • Stay compatible with tools that expect gzip specifically, when switching to TAR.XZ or 7Z isn't an option.

Good to know before compressing

  • Expect modest savings. gzip at its best is still gzip. An archive already made at a high level may barely change.
  • Compressed media inside the bundle (photos, videos, music, other archives) doesn't shrink further.
  • The archive can be up to 500 MB (less on phones) and unpack to at most 1.25 GB and 10,000 files. Compressing at maximum level can take a while. The progress bar may pause during that step.

Your files never leave your device

Your files are never uploaded to a server, so nobody (including us) can see them. Conversions run entirely inside your browser. That makes it safe for personal photos, contracts, recordings and any file you'd rather keep private.

Frequently asked questions

How much smaller will my .tar.gz get?

Usually only a little: a few percent for text-heavy archives made at gzip's default level, close to nothing for ones made at its top level or full of media. If size matters more than gzip compatibility, converting to TAR.XZ usually saves more.

Will the result still open with tar -xzf?

Yes. The output is an ordinary gzip-compressed TAR, so tar, Archive Utility, 7-Zip and any other tool that reads .tar.gz will open it.

Does it accept .tgz files?

Yes. A .tgz is the same format with a shorter extension. It is recompressed the same way.

Are my files changed in any way?

Their content isn't: gzip is lossless and every file comes back byte for byte when you extract. Only the compressed container is rebuilt.

Why is the progress bar stuck while compressing?

7-Zip compresses the whole bundle in one step and doesn't report progress during it. On a large archive or a slower device, that step can take a minute or more before the download appears.