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 암호화 업로드
개인정보 우선
처리 후 파일 자동 삭제
회원가입 불필요
즉시 변환을 시작하세요
어디서나 작동
모든 브라우저, 모든 디바이스
변환 방법
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 .tgz file when it's ready.
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
- Preparing source tarballs for OpenWrt and Buildroot build systems that cache .tgz files
- Simplifying archive handling in shell scripts that prefer single-extension filenames
- Producing compressed archives compatible with legacy systems having 8.3 filename restrictions
작동 방식
The TAR file is read as a raw byte stream (no internal parsing) and compressed through the gzip DEFLATE algorithm at the standard level. The compressed output is written with the .tgz extension. The internal structure is identical to what .tar.gz would produce — gzip header, DEFLATE-compressed tar data, CRC32 footer. The extension .tgz triggers no different processing in any known tool — it is purely a naming convention.
품질 및 성능
Perfectly lossless. The TAR is compressed as an opaque stream and can be decompressed to reconstruct the original TAR exactly, byte-for-byte. The CRC32 in the gzip footer verifies integrity. No files within the tar are modified or reordered. The .tgz extension does not affect the compression or decompression process in any way.
기기 호환성
| Device | TAR | TGZ |
|---|---|---|
| Windows PC | Partial | Partial |
| macOS | Partial | Partial |
| iPhone/iPad | Partial | Partial |
| Android | Partial | Partial |
| Linux | Partial | Partial |
| Web Browser | No | No |
최상의 결과를 위한 팁
- 1If you already have .tar.gz, just rename to .tgz — no conversion needed since the formats are identical
- 2For Slackware packages, ensure the tar contains the correct internal layout (install/slack-desc, etc.) before applying compression
- 3Helm charts must have Chart.yaml at the top-level directory inside the archive
- 4Use `tar -tzf output.tgz` to verify contents — the -z flag handles gzip transparently regardless of extension
- 5For embedded build systems, check if the system expects a specific top-level directory name inside the .tgz
관련 변환
TAR to TGZ is gzip compression with the .tgz extension — identical to .tar.gz but using the short filename preferred by Slackware, Helm, and embedded build systems.
TAR vs TGZ
| 기능 | TAR | TGZ |
|---|---|---|
| 전체 이름 | Tape Archive | Gzipped Tar Archive |
| 확장자 | .tar | .tgz |
| 최적 용도 | Unix permissions | TAR + gzip |