Convert TAR to TAR.GZ — Free Online Converter
Convert Tape Archive (.tar) to Gzipped Tar Archive (.targz) online for free. Fast, secure archive conversion with no watermarks or registration.
Sikker overføring
HTTPS-krypterte opplastinger
Personvern først
Filer slettes automatisk etter behandling
Ingen registrering
Begynn å konvertere med en gang
Fungerer overalt
Alle nettlesere, alle enheter
Slik konverterer du
Upload your .tar file by dragging it into the upload area or clicking to browse.
Choose your output settings. The default settings work great for most files.
Click Convert and download your .tar.gz file when it's ready.
Om konvertering fra TAR til TAR.GZ
TAR is an uncompressed archival format that bundles files and directories into a single stream. TAR.GZ applies gzip (DEFLATE) compression on top of a TAR archive, producing the compressed tarball format that serves as the standard for source distribution, package management, and file bundling across the entire Unix/Linux ecosystem.
Converting TAR to TAR.GZ is simply adding gzip compression to an existing tar archive. This is the most fundamental compression operation in Unix — equivalent to running `gzip archive.tar` — and produces the format expected by GitHub releases, npm, pip, gem, Debian source packages, and virtually every open-source distribution channel.
Hvorfor konvertere TAR til TAR.GZ?
An uncompressed TAR file is unnecessarily large for storage and transfer. Adding gzip compression typically reduces the archive to 15-40% of its original size, making it practical for web download, email attachment, and version-controlled storage. The .tar.gz format is so universal in Unix that many tools silently expect it — uploading an uncompressed .tar to a package registry may produce errors.
Gzip specifically (as opposed to bzip2 or xz) is preferred for its extraction speed. While not the strongest compressor, gzip decompresses faster than any common alternative, making it ideal for CI/CD pipelines, Docker layer extraction, and any workflow where extraction latency matters more than a few extra megabytes of archive size.
Vanlige bruksområder
- Compressing tar archives for source code release distribution on platforms like GitHub
- Reducing raw tar backup sizes by 60-85% for practical storage and transfer
- Creating .tar.gz packages for npm, pip, gem, or other package manager submission
- Preparing compressed deployment artifacts for CI/CD pipelines that store build outputs
- Making large tar archives email-attachable by applying gzip compression
Slik fungerer det
The conversion reads the TAR file as a raw byte stream and pipes it through gzip compression using the DEFLATE algorithm (LZ77 sliding window + Huffman coding). No extraction or parsing of the TAR's internal structure is performed — the entire TAR is treated as an opaque data stream for compression purposes. The output wraps the compressed data in a gzip container with a 10-byte header (magic number, method, flags, timestamp), the DEFLATE stream, and an 8-byte trailer (CRC32 + original size). Compression level defaults to 6.
Kvalitet og ytelse
Perfectly lossless. The TAR file is compressed as a single stream and can be decompressed to produce the exact original TAR, verified by the CRC32 checksum. No files within the TAR are modified, reordered, or altered in any way. The operation is mathematically reversible — `gunzip` produces the identical input TAR.
Enhetskompatibilitet
| Device | TAR | TAR.GZ |
|---|---|---|
| Windows PC | Partial | Partial |
| macOS | Partial | Partial |
| iPhone/iPad | Partial | Partial |
| Android | Partial | Partial |
| Linux | Partial | Partial |
| Web Browser | No | No |
Tips for best resultat
- 1For most use cases, gzip level 6 is optimal — don't bother with level 9 unless every kilobyte matters
- 2If your tar archive contains many similar files, consider `tar.xz` instead for significantly better compression
- 3Verify the output with `gzip -t archive.tar.gz` to confirm compression integrity
- 4The conversion speed depends on TAR size and CPU — expect roughly 50-100 MB/s throughput on modern hardware at level 6
- 5Ensure the original .tar filename carries through to the output — .tar.gz files that extract to an unexpected name can confuse package managers
Relaterte konverteringer
TAR to TAR.GZ is the simplest and most common Unix compression operation — applying gzip to an existing tar archive. The output is the universal standard for source distribution and package management.
TAR vs TAR.GZ
| Egenskap | TAR | TAR.GZ |
|---|---|---|
| Fullt navn | Tape Archive | Gzipped Tar Archive |
| Filendelse | .tar | .tar.gz |
| Best egnet for | Unix permissions | TAR + gzip |