Initializing... drag & drop files here
Supports: TZ2
.tz2 (a.k.a. .tar.bz2) archives from your device. Batch upload is supported — repack a stack of legacy bzip2 archives in one pass. Files process on our servers; no sign-up required..tgz. Switch to Individual Archives if you want a separate .tgz produced for each input file (handy when you're repacking releases that need to stay as discrete artefacts)..tar.gz that tar -xzf, gunzip, and every major archive manager (7-Zip, The Unarchiver, WinRAR, PeaZip) can extract without extra plugins..tgz..tz2 is shorthand for .tar.bz2 — a tar archive squeezed through the bzip2 Burrows-Wheeler algorithm. .tgz (a.k.a. .tar.gz) is the same tar payload squeezed through gzip's DEFLATE. The container is identical; only the compression layer changes. Repacking to TGZ is almost always about compatibility and speed, not size. Typical reasons to make the switch:
tar on classic Solaris, AIX, and some embedded BusyBox builds shipped with -z (gzip) long before -j (bzip2). Many legacy install scripts and Makefiles still expect a .tar.gz.make dist defaults to .tar.gz, GitHub release auto-tarballs are .tar.gz, and kernel.org publishes both but distros and CI pipelines overwhelmingly pull the gzip variant.curl... | tar xz -), which is why container image layers and HTTP Content-Encoding: gzip exist. bzip2 is technically streamable but rarely used that way.Working with a different source archive? See tar.bz2 to TGZ (same conversion, alternate extension), TZ2 to 7z, TZ2 to ZIP, or extract first with TZ2 to TAR and recompress as you like.
| Property | TZ2 / TAR.BZ2 | TGZ / TAR.GZ |
|---|---|---|
| Container | POSIX tar | POSIX tar |
| Compression algorithm | bzip2 (Burrows-Wheeler + Huffman) | gzip (DEFLATE = LZ77 + Huffman) |
| Typical compression ratio vs original | Tighter — often 10-20% smaller than gzip output | Looser, but still strong for text/source |
| Compression speed | Slow — several times slower than gzip at default levels | Fast — the de facto baseline |
| Decompression speed | Slow — historically the weakest link of bzip2 | Fast — among the fastest mainstream codecs |
| Memory use | ~7-8 MB per stream at default block size | ~256 KB typical |
| Streamable / pipe-friendly | Yes, but rarely used that way | Yes — standard for curl | tar xz and HTTP gzip |
Native tar flag |
-j (modern GNU/BSD tar) or --bzip2 |
-z or --gzip |
| Common file extensions | .tar.bz2, .tbz2, .tbz, .tz2 |
.tar.gz, .tgz |
| Year compression algo was released | bzip2 — 1997 (Julian Seward) | gzip — 1992 (Gailly & Adler) |
If you're choosing what to repack into, here's the short version:
| Format | Compression vs gzip | Speed vs gzip | Best for |
|---|---|---|---|
.tar.gz (TGZ) |
Baseline | Baseline (fast) | Source releases, CI artefacts, Docker layers, anything you'll extract often |
.tar.bz2 (TZ2) |
~10-20% smaller | ~3-6x slower | Cold archival of text-heavy data where decompression speed doesn't matter |
.tar.xz |
~20-30% smaller than gzip | Much slower to compress; decent decompress | Linux distro packages, kernel.org primary tarballs |
.tar.zst (zstd) |
Similar to or beats gzip | Comparable or faster than gzip; tunable | Modern replacement for gzip — used by Arch packages, Facebook, btrfs |
.zip |
Similar to gzip | Fast | Cross-platform sharing with Windows users who lack tar |
.7z |
Often best ratio (LZMA2) | Slow compress, medium decompress | Tight archival where everyone has 7-Zip |
.tz2 actually the same as .tar.bz2?Yes. .tz2 is one of several short-form extensions for a tar archive compressed with bzip2 — the others being .tbz2 and .tbz. All four are byte-identical files; the extension only affects which icon and default handler your OS shows. Linux's file command and tar both identify them by magic bytes (BZh), not by name, so renaming .tz2 to .tar.bz2 and back changes nothing about the contents.
No. tar packs every input file end-to-end into a single byte stream first, and gzip then compresses that whole stream. So mybinary.png inside the archive isn't compressed as a PNG — it's compressed as part of one big concatenation, which is why tar.gz often beats per-file ZIP on directories with many small text files (solid compression).
Because bzip2 generally achieves a tighter ratio than gzip — typically 10-20% smaller files on the same input. Repacking from .tz2 to .tgz is a deliberate trade: you spend a few percent of disk for a 3-6x decompression speed-up and broader tool compatibility. If size is your priority, look at .tar.xz or .tar.zst instead.
Yes — tar stores POSIX permissions (mode, uid/gid, mtime), symlinks, hardlinks, and (with the modern pax format) extended attributes and ACLs. Switching the outer compression from bzip2 to gzip doesn't touch any of that metadata; the inner tar stream is repackaged verbatim. The only thing that changes is the wrapping codec.
On macOS, Linux, BSD, and WSL: tar -xzf yourfile.tgz (or just tar xf yourfile.tgz — modern tar auto-detects). On Windows 10 build 17063+ and Windows 11, the built-in tar.exe handles it the same way. GUI tools that open .tgz natively include 7-Zip, PeaZip, The Unarchiver, WinRAR, and Keka.
Yes — pick Individual Archives in Combine Mode. Each input .tz2 is repacked as its own .tgz with the same internal directory layout. If you instead pick Single Archive, the converter merges the contents of every input into one consolidated tarball, which can be useful for bundling releases but flattens the per-source separation.
.tgz the same as .tar.gz?Functionally yes — both are tar archives compressed with gzip, and they share the same magic bytes (1F 8B). The .tgz extension exists to satisfy old 8.3 DOS filenames and is still common in the wild. Every modern unarchiver treats them interchangeably; you can rename .tgz to .tar.gz (or vice versa) without breaking anything.
.tar.gz over .zip for a cross-platform release?.tar.gz preserves Unix permissions and symlinks that ZIP can lose or mangle, and it gets better solid-compression on source trees with thousands of small files. .zip wins when your audience is Windows-first and needs double-click extraction without installing anything — Windows Explorer still treats ZIP as native but defers to tar.exe (CLI) for .tgz. For developer-facing releases, .tar.gz remains the default for good reason.
No. The inner tar stream is preserved exactly — same top-level entries, same paths. If your original .tz2 extracted to a project-1.2.3/ directory, your .tgz will too. The converter doesn't inject an extra wrapper folder the way some GUI ZIP tools do.