Convert GZ to TGZ — Free Online Converter
Convert Gzip Compressed Archive (.gz) to Gzipped Tar Archive (.tgz) online for free. Fast, secure archive conversion with no watermarks or registration.
Convert Gzip Compressed Archive (.gz) to Gzipped Tar Archive (.tgz) online for free. Fast, secure archive conversion with no watermarks or registration.
Upload your .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 .tgz file when it's ready.
GZ is the GNU gzip compression format using the DEFLATE algorithm, compressing a single file stream. TGZ is the compact filename variant of tar.gz — a tar archive compressed with gzip — using the shorter .tgz extension that originated from 8.3 filename limitations on early DOS and Windows systems. TGZ is structurally identical to .tar.gz.
Converting GZ to TGZ decompresses the gzip stream, wraps the content in a POSIX tar archive for proper structure and metadata, and recompresses with gzip under the .tgz extension. This produces a properly formatted tarball compatible with Slackware packages, Kubernetes Helm charts, and embedded build systems that prefer the concise .tgz naming convention.
The .tgz extension is required or preferred by several specific ecosystems. Slackware Linux uses .tgz as its native package format. Kubernetes Helm chart repositories distribute charts as .tgz files. Embedded Linux build systems like Buildroot and OpenWrt cache source tarballs with .tgz extensions. These systems may reject .gz files that lack tar structure.
Converting bare .gz to .tgz also adds the tar archival layer that preserves file metadata, enables proper directory structure representation, and follows distribution conventions. A standalone .gz lacks the self-describing structure that .tgz provides through its tar headers.
The gzip DEFLATE stream is decompressed, the CRC32 checksum is verified, and the original data is recovered. A POSIX-format tar archive is created with the decompressed content as its payload, complete with tar headers recording filename, size, permissions, timestamps, and checksum. The tar stream is then gzip-compressed and written with the .tgz extension. The output is byte-for-byte identical in structure to what a .tar.gz file would contain — only the filename extension differs.
Fully lossless. The original file data from the .gz stream is decompressed exactly, wrapped in tar headers without modification, and recompressed with gzip. The actual file bytes are preserved identically. The tar layer adds metadata but does not alter content. Extraction of the .tgz will produce files identical to what the original .gz contained.
| Device | GZ | TGZ |
|---|---|---|
| Windows PC | Partial | Partial |
| macOS | Partial | Partial |
| iPhone/iPad | Partial | Partial |
| Android | Partial | Partial |
| Linux | Partial | Partial |
| Web Browser | No |
GZ to TGZ conversion adds tar archive structure and uses the compact .tgz extension preferred by Slackware, Helm, and embedded build systems. The output is a proper gzip-compressed tarball ready for these specialized ecosystems.
安全传输
HTTPS 加密上传
隐私优先
文件处理后自动删除
无需注册
即刻开始转换
随处可用
任何浏览器,任何设备
| No |
| 特性 | GZ | TGZ |
|---|---|---|
| 全称 | Gzip Compressed File | Gzipped Tar Archive |
| 扩展名 | .gz | .tgz |
| 最适合 | DEFLATE compression | TAR + gzip |