Convert TAR to TGZ — Free Online Converter
Convert Tape Archive (.tar) to Gzipped Tar Archive (.tgz) online for free. Fast, secure archive conversion with no watermarks or registration.
安全传输
HTTPS 加密上传
隐私优先
文件处理后自动删除
无需注册
即刻开始转换
随处可用
任何浏览器,任何设备
关于TAR转TGZ
TAR is the uncompressed Unix archival format that bundles files into a single stream. TGZ is the short-extension form of tar.gz — a gzip-compressed tar archive using the .tgz filename — preferred by Slackware's package manager, Kubernetes Helm chart repositories, and embedded Linux build systems that standardize on the concise three-character extension.
Converting TAR to TGZ applies gzip compression to the raw tar stream and saves the output with the .tgz extension. The resulting file is structurally identical to .tar.gz — the only difference is the filename. This conversion serves the specific ecosystems that require the .tgz extension rather than .tar.gz.
为什么要将TAR转换为TGZ?
The .tgz extension is explicitly required by Slackware Linux's package management system (installpkg, pkgtool, slackpkg), which will not recognize .tar.gz files as valid packages. Helm's chart repository specification uses .tgz as the standard chart package extension. OpenWrt's build system caches source downloads with .tgz extensions by convention.
Beyond requirements, .tgz is practically useful for scripting. Shell scripts using glob patterns like `*.tgz` are simpler than handling the compound `.tar.gz` extension, which can complicate basename extraction, extension matching, and MIME type detection. The single extension is also more portable across systems with filename handling quirks.
常见使用场景
- Creating Slackware Linux packages in the required .tgz format from uncompressed tar archives
- Packaging Kubernetes Helm charts as .tgz for chart repository distribution