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.
安全な転送
HTTPS暗号化アップロード
プライバシー優先
処理後にファイルを自動削除
登録不要
すぐに変換を開始
どこでも動作
あらゆるブラウザ、あらゆるデバイス
変換方法
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からTGZへの変換について
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.
GZをTGZに変換する理由
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.
主な活用例
- Converting gzip-compressed files into Helm chart format (.tgz) for Kubernetes deployment
- Creating Slackware-compatible packages from individually compressed .gz files
- Preparing source archives for Buildroot or OpenWrt build systems that cache .tgz tarballs
- Normalizing .gz files into proper tarballs with the short .tgz extension for scripting convenience
- Packaging files for environments with legacy 8.3 filename restrictions that cannot handle .tar.gz
仕組み
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 | No |
最良の結果を得るためのヒント
- 1For Kubernetes Helm charts, verify the internal directory structure matches Helm's requirements after conversion
- 2The .tgz extension is purely cosmetic relative to .tar.gz — use whichever your target ecosystem expects
- 3Slackware's pkgtool requires specific internal paths (install/slack-desc, etc.) — the conversion preserves whatever structure exists in the source
- 4For automated pipelines, .tgz is often easier to glob than .tar.gz since it avoids compound extension complications
- 5Verify the output structure with `tar -tzf output.tgz` to confirm the tar layer was correctly created
関連する変換
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.
GZとTGZの比較
| 特徴 | GZ | TGZ |
|---|---|---|
| 正式名称 | Gzip Compressed File | Gzipped Tar Archive |
| 拡張子 | .gz | .tgz |
| 最適な用途 | DEFLATE compression | TAR + gzip |