Convert TAR.GZ to TAR — Free Online Converter
Convert Gzipped Tar Archive (.targz) to Tape Archive (.tar) online for free. Fast, secure archive conversion with no watermarks or registration.
安全传输
HTTPS 加密上传
隐私优先
文件处理后自动删除
无需注册
即刻开始转换
随处可用
任何浏览器,任何设备
如何转换
Upload your .tar.gz 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 file when it's ready.
关于TAR.GZ转TAR
TAR.GZ is a gzip-compressed tar archive — the standard compressed distribution format on Unix/Linux. TAR is the underlying uncompressed archival format that bundles files with their metadata. Converting TAR.GZ to TAR simply removes the gzip compression layer, exposing the raw tar archive inside.
This is equivalent to running `gunzip archive.tar.gz` on the command line. The conversion strips DEFLATE compression to produce the uncompressed tar stream, which is useful as input to different compressors, for Docker operations, or for direct manipulation of the tar archive entries without decompression overhead.
为什么要将TAR.GZ转换为TAR?
Removing gzip compression is necessary when you want to apply a different compression algorithm. To create .tar.xz (LZMA2), .tar.bz2 (Burrows-Wheeler), or .tar.zst (Zstandard), you first need the plain .tar. Compressing an already-compressed .tar.gz with another algorithm would waste CPU and produce a larger file than compressing the raw tar directly.
Docker operations benefit from uncompressed tar layers — Docker's internal storage and layer diffing works on uncompressed tar data. Build systems that produce reproducible archives may need to manipulate tar entries directly (rewriting timestamps, adjusting permissions) without the complication of decompressing and recompressing the gzip layer.
常见使用场景
- Preparing a plain tar archive for recompression with xz, bzip2, or zstd instead of gzip
- Creating uncompressed tar layers for Docker image building and layer manipulation
- Enabling direct tar entry manipulation (header editing, file replacement) without gzip overhead
- Extracting the raw tar for tools that require uncompressed tar input
- Converting .tar.gz to .tar for faster random access to archive entries without decompression
工作原理
The gzip header is read (magic bytes 1f8b, compression method, flags, timestamp), and the DEFLATE-compressed data is decompressed in a streaming fashion. The CRC32 checksum in the gzip trailer is verified against the decompressed data, and the original size field is checked for consistency. The output is the raw tar byte stream that was originally compressed — no tar parsing or modification occurs. The output file will be exactly the size stored in the gzip header (modulo 2^32).
质量与性能
Perfectly lossless. Gzip decompression is a deterministic, reversible operation. The output tar file is byte-for-byte identical to the tar that was originally gzip-compressed. The CRC32 checksum guarantees data integrity. No tar entries, file contents, or metadata are modified.
设备兼容性
| Device | TAR.GZ | TAR |
|---|---|---|
| Windows PC | Partial | Partial |
| macOS | Partial | Partial |
| iPhone/iPad | Partial | Partial |
| Android | Partial | Partial |
| Linux | Partial | Partial |
| Web Browser | No | No |
获得最佳效果的技巧
- 1Ensure sufficient disk space — the uncompressed tar can be 3-10x larger than the .tar.gz input
- 2If your goal is to recompress, pipe directly to the new compressor rather than writing the intermediate .tar to disk
- 3Verify the output with `tar -tf archive.tar` to confirm the tar structure is intact
- 4For Docker layer operations, uncompressed tar is the expected input format
- 5Gzip decompression is very fast — this conversion completes much faster than most compression operations
相关转换
TAR.GZ to TAR simply strips gzip compression, exposing the raw tar archive. The output is a standard tar file ready for alternative compression, Docker operations, or direct archive manipulation.
TAR.GZ 与 TAR 对比
| 特性 | TAR.GZ | TAR |
|---|---|---|
| 全称 | Gzipped Tar Archive | Tape Archive |
| 扩展名 | .tar.gz | .tar |
| 最适合 | TAR + gzip | Unix permissions |