Convert TAR to TAR.GZ — Free Online Converter
Convert Tape Archive (.tar) to Gzipped Tar Archive (.targz) 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 .tar.gz file when it's ready.
TARからTAR.GZへの変換について
TAR is an uncompressed archival format that bundles files and directories into a single stream. TAR.GZ applies gzip (DEFLATE) compression on top of a TAR archive, producing the compressed tarball format that serves as the standard for source distribution, package management, and file bundling across the entire Unix/Linux ecosystem.
Converting TAR to TAR.GZ is simply adding gzip compression to an existing tar archive. This is the most fundamental compression operation in Unix — equivalent to running `gzip archive.tar` — and produces the format expected by GitHub releases, npm, pip, gem, Debian source packages, and virtually every open-source distribution channel.
TARをTAR.GZに変換する理由
An uncompressed TAR file is unnecessarily large for storage and transfer. Adding gzip compression typically reduces the archive to 15-40% of its original size, making it practical for web download, email attachment, and version-controlled storage. The .tar.gz format is so universal in Unix that many tools silently expect it — uploading an uncompressed .tar to a package registry may produce errors.
Gzip specifically (as opposed to bzip2 or xz) is preferred for its extraction speed. While not the strongest compressor, gzip decompresses faster than any common alternative, making it ideal for CI/CD pipelines, Docker layer extraction, and any workflow where extraction latency matters more than a few extra megabytes of archive size.
主な活用例
- Compressing tar archives for source code release distribution on platforms like GitHub
- Reducing raw tar backup sizes by 60-85% for practical storage and transfer
- Creating .tar.gz packages for npm, pip, gem, or other package manager submission
- Preparing compressed deployment artifacts for CI/CD pipelines that store build outputs
- Making large tar archives email-attachable by applying gzip compression
仕組み
The conversion reads the TAR file as a raw byte stream and pipes it through gzip compression using the DEFLATE algorithm (LZ77 sliding window + Huffman coding). No extraction or parsing of the TAR's internal structure is performed — the entire TAR is treated as an opaque data stream for compression purposes. The output wraps the compressed data in a gzip container with a 10-byte header (magic number, method, flags, timestamp), the DEFLATE stream, and an 8-byte trailer (CRC32 + original size). Compression level defaults to 6.
品質とパフォーマンス
Perfectly lossless. The TAR file is compressed as a single stream and can be decompressed to produce the exact original TAR, verified by the CRC32 checksum. No files within the TAR are modified, reordered, or altered in any way. The operation is mathematically reversible — `gunzip` produces the identical input TAR.
デバイス互換性
| Device | TAR | TAR.GZ |
|---|---|---|
| Windows PC | Partial | Partial |
| macOS | Partial | Partial |
| iPhone/iPad | Partial | Partial |
| Android | Partial | Partial |
| Linux | Partial | Partial |
| Web Browser | No | No |
最良の結果を得るためのヒント
- 1For most use cases, gzip level 6 is optimal — don't bother with level 9 unless every kilobyte matters
- 2If your tar archive contains many similar files, consider `tar.xz` instead for significantly better compression
- 3Verify the output with `gzip -t archive.tar.gz` to confirm compression integrity
- 4The conversion speed depends on TAR size and CPU — expect roughly 50-100 MB/s throughput on modern hardware at level 6
- 5Ensure the original .tar filename carries through to the output — .tar.gz files that extract to an unexpected name can confuse package managers
関連する変換
TAR to TAR.GZ is the simplest and most common Unix compression operation — applying gzip to an existing tar archive. The output is the universal standard for source distribution and package management.
TARとTAR.GZの比較
| 特徴 | TAR | TAR.GZ |
|---|---|---|
| 正式名称 | Tape Archive | Gzipped Tar Archive |
| 拡張子 | .tar | .tar.gz |
| 最適な用途 | Unix permissions | TAR + gzip |