Initializing... drag & drop files here
Supports: TAR.GZ
.tar.gz / .tgz archives from your computer. Multiple archives are supported in one batch..tar.bz2 repacked with bzip2 compression instead of gzip. The output extension .tz2 is one of several short forms for tar+bzip2 (alongside .tbz2, .tbz, and .tb2)..tar.gz into one combined .tz2, or Individual Archives to produce one .tz2 per input file (the default when uploading multiple archives)..tz2. Files are removed from the server after the session ends — no sign-up, no watermark..tar.gz and .tz2 package the same underlying tar stream, but they apply different compression algorithms. Gzip (DEFLATE, 1992) is fast but leaves bytes on the table. Bzip2 (Julian Seward, first released August 1997) uses the Burrows–Wheeler transform with 100–900 KB block sorting plus Huffman coding, and typically compresses ~10–20% smaller on text-heavy payloads. The trade-off is CPU: bzip2 compresses roughly 1.5× slower and decompresses ~4× slower than gzip on the same input (rootusers benchmark on the Linux kernel source).
.tar.gz and .tar.bz2 so users could pick. Re-encoding to .tz2 matches that convention when re-mirroring..tz2 / .tbz2 — Older Slackware packages, some BSD ports trees, and a few build pipelines key off the .tz2 short form. Converting locally avoids a rename step on the receiving side.| Property | TAR.GZ (.tar.gz / .tgz) |
TZ2 (.tz2 / .tbz2 / .tar.bz2) |
|---|---|---|
| Compression algorithm | DEFLATE (LZ77 + Huffman) | Burrows–Wheeler + Huffman |
| First released | gzip 1.0 — 1992 | bzip2 0.1 — August 1997 |
| Typical ratio on text | baseline | ~10–20% smaller than gzip |
| Compression speed | fast (~1.5× faster than bzip2 at max level) | slower; CPU-bound |
| Decompression speed | very fast (~4× faster than bzip2) | moderate |
| Block size | 32 KB sliding window | 100–900 KB tunable blocks |
| Memory at decompress | ~32 KB | up to ~3.7 MB per block |
| Parallel variants | pigz |
pbzip2, lbzip2 |
Native tar flag |
-z / --gzip |
-j / --bzip2 |
| Best for | piping, CI/CD, frequent extraction | archival, distribution, one-time unpack |
Numbers below are from the rootusers benchmark compressing 580 MB of Linux kernel source at max level (-9), useful as a directional reference rather than exact ratios for your data.
| Metric | gzip -9 | bzip2 -9 |
|---|---|---|
| Output size | ~122 MB (21.06% of input) | ~96.5 MB (16.63% of input) |
| Compression time | ~54 s (10.7 MB/s) | ~83 s (7.0 MB/s) |
| Decompression time | ~6 s (96 MB/s) | ~23 s (25 MB/s) |
| Worth it when | you decompress often, or speed > size | you decompress rarely, or every MB counts |
.tz2 the same as .tar.bz2?Yes — the bytes are identical. .tz2, .tbz2, .tbz, and .tb2 are all single-extension short forms for a tar archive compressed with bzip2, exactly equivalent to the double-extension .tar.bz2. The single-extension forms exist mostly because legacy filesystems (FAT, ISO 9660 Level 1) and some Windows tools handled double extensions poorly. You can rename a .tar.bz2 to .tz2 and extract it with tar -xjf on Linux/macOS, or with 7-Zip, PeaZip, or WinRAR on Windows.
.tz2 be compared to the .tar.gz?For source code, plain text, logs, and SQL dumps, expect roughly 10–20% smaller. For already-compressed payloads inside the tar (JPEGs, PNGs, MP4s, pre-zipped files), the savings drop to near zero because both gzip and bzip2 struggle to compress data that's already been deduplicated. A .tar.gz of JPEGs converted to .tz2 may even grow slightly because of bzip2's slightly larger headers.
The server has to decompress your .tar.gz (fast — gzip decompresses around 96 MB/s on a modern core) and then re-compress with bzip2 (slow — bzip2 compresses around 7 MB/s at level 9). The bzip2 step dominates. A 1 GB tarball typically takes 2–3 minutes to re-encode on a single core. If you're doing this locally, pbzip2 parallelizes across cores and can cut wall time by ~Ncores.
.tz2 automatically?GNU tar on Linux auto-detects compression from magic bytes since the late 2000s, so tar -xf archive.tz2 works without specifying -j. BSD tar (the default on macOS) also auto-detects bzip2. Older systems may need the explicit flag: tar -xjf archive.tz2. The j flag specifically invokes bzip2, mirroring -z for gzip and -J for xz.
.tar.xz? Isn't that better than .tz2?For pure compression ratio, yes — xz (LZMA2) typically beats bzip2 by another 10–15% and is now the standard for Linux kernel source releases. But xz uses much more memory at decompress (up to ~64 MB for level 6, vs ~3.7 MB for bzip2) and is slower to encode. .tz2 remains useful when targets have tight memory budgets (embedded systems, older NAS firmware) or you need the wide compatibility of bzip2, which has been in every POSIX-ish toolchain since the early 2000s. If memory and toolchain aren't constraints, convert to TAR.XZ for the tightest archive.
.tz2 without unpacking everything?Yes, but it's slower than with .tar.gz. Run tar -xjf archive.tz2 path/inside/archive. Tar has to bzip2-decompress sequentially from the start of the stream until it finds your file, because bzip2 doesn't have a random-access index. For frequent partial extracts on large archives, gzip is actually a better choice, or use a format with an index (.zip, .7z).
Each bzip2 block carries a 32-bit CRC, and the stream ends with a combined CRC of all blocks. If a .tz2 is truncated or corrupted, tar reports a CRC mismatch and refuses to extract the bad block. This is comparable to gzip's CRC-32 footer. Neither format authenticates — for tamper detection, sign the archive with GPG or pair it with a SHA-256 checksum.
.tar.gz first?If you only need to see what's in the archive (or pull a few files), skip the re-compression and use Extract TAR.GZ to unpack it directly. If you actually need to keep an archived form but want gzip's faster extract characteristics retained, leave it as .tar.gz — converting just to convert wastes CPU. The conversion to .tz2 only pays off when you'll store or transmit the archive and want the smaller size.
Yes. The tar layer carries POSIX file metadata (owner, group, mode bits, mtime), and that layer is unchanged — only the outer compression wrapper is swapped from gzip to bzip2. Symlinks, hardlinks, sparse files, and (with --xattrs) extended attributes all pass through unchanged. If you compare tar -tvf output before and after, you should see identical entries.
Need a sibling format instead? TAR.GZ to TAR.BZ2 produces the long-form double extension instead of .tz2, TAR.GZ to TAR.XZ gives the tightest compression at the cost of decompress memory, or use Extract TAR.GZ to unpack without re-archiving.