Initializing... drag & drop files here
Supports: TAR.GZ
.tar.gz / .tgz files from your computer. Batch uploads are supported..tar.bz2 — the same TAR + bzip2 container, just a shorter filename). The bzip2 compression layer replaces the gzip layer inside the archive..tb2 bundle, or Individual Archives to produce one .tb2 per source file. For converting a single .tar.gz, the default already produces one .tb2..tb2 file — no sign-up, no watermark, no install..tar.gz (TAR + gzip, file extension .tgz for the short form) and .tb2 (TAR + bzip2, also written .tar.bz2 or .tbz2) are both Unix-style archive bundles. The TAR layer is identical; only the compression algorithm wrapped around it differs. Gzip uses the DEFLATE algorithm (released 1992) and is fast. Bzip2 uses the Burrows-Wheeler transform with Huffman coding (released 1997) and typically produces files 10-20% smaller on text-heavy payloads — source trees, log bundles, JSON dumps — at the cost of 2-4x slower compression and up to 6x slower decompression.
.tar.gz of a Linux kernel source tree often drops to 40-43 MB as .tb2.configure / make workflows, Gentoo Portage trees, Slackware packages, and pkgsrc recipes ship sources as .tar.bz2 / .tb2. Re-pack a vendor's .tar.gz to match the format the rest of your pipeline ingests.bash, coreutils, gcc, binutils) publish source tarballs in .tar.gz, .tar.bz2, and .tar.xz simultaneously. If your downstream tooling parses only one, convert once on intake..tar.bz2 — .tb2 is the same archive but with one extension instead of a double extension. Helpful on filesystems or CMS upload forms that mis-handle dotted suffixes.| Property | TAR.GZ (.tgz) | TB2 (.tar.bz2 / .tbz2) |
|---|---|---|
| Compression algorithm | DEFLATE (gzip) | Burrows-Wheeler + Huffman (bzip2) |
| First released | 1992 | 1997 (bzip2 0.1, Julian Seward) |
| Typical ratio vs raw TAR | 60-70% on text | 50-60% on text |
| Compression speed | Fast (baseline) | 2-4x slower |
| Decompression speed | Fast (baseline) | Up to 6x slower |
| Block size | 32 KB sliding window | 100-900 KB (selectable) |
| Memory while decompressing | ~1 MB | ~4-8 MB (block-size dependent) |
| Streaming-friendly | Yes | Yes |
| Recoverable from corruption | Hard (single stream) | Easier (block-level bzip2recover) |
| Common aliases | .tgz, .tar.gz |
.tbz2, .tb2, .tbz, .tar.bz2 |
| Use case | Pick TAR.GZ if… | Pick TB2 if… |
|---|---|---|
| Web download (frequent re-extract) | Most visitors decompress; speed matters | Rarely — bzip2's slow extract hurts UX |
| One-time archive to cold storage | You're CPU-constrained | You want the smallest stored size |
| Source-code release | Default for most projects | Common alongside .tar.gz for GNU projects |
| Server-to-server log shipping | Streaming bandwidth is the bottleneck | You're rate-limited on bytes, not CPU |
| Tiny config bundles (<100 KB) | Difference is negligible — use gzip | Negligible benefit — not worth the CPU |
.tb2 the same as .tar.bz2?Yes — .tb2, .tbz2, .tbz, and .tar.bz2 all refer to the same container: a TAR archive compressed with bzip2. The single-extension forms (.tb2, .tbz2) exist because some legacy filesystems and download managers handled double extensions poorly. tar itself reads all of them with tar -xjf (or tar -xf on modern GNU tar, which auto-detects).
.tb2 be than the original .tar.gz?For text-heavy payloads (source code, logs, JSON, XML) expect roughly 10-20% smaller. For already-compressed payloads inside the archive (JPEG, PNG, MP4, MP3, ZIP-of-ZIPs, pre-compressed binaries), the savings collapse to ~1-3% because both gzip and bzip2 struggle on entropy-dense data. If most of your archive is media files, the conversion mostly costs CPU without buying you space.
No. The TAR layer carries the file tree, permissions, ownership, mtimes, symlinks, and (on most tar implementations) extended attributes; the conversion only swaps the outer compression wrapper. The .tb2 you download extracts byte-identical to the original .tar.gz payload — tar -tvf on either will list the same entries with the same metadata.
Bzip2 runs the input through a Burrows-Wheeler transform (which sorts permutations of large blocks), a move-to-front transform, run-length encoding, and Huffman coding — several heavyweight passes per 100-900 KB block. Gzip's DEFLATE uses one lightweight LZ77 + Huffman pass over a 32 KB window. The extra work is what buys the better ratio, but the cost compounds on multi-GB archives.
.tar.gz to .tb2 from the command line instead?Yes — gzip -dc archive.tar.gz | bzip2 -9 > archive.tb2 streams it without writing the intermediate .tar to disk. The xconvert flow exists because (a) you don't always have bzip2 installed (Windows lacks it by default), (b) browser drag-and-drop is faster than shelling out for a one-off, and (c) batch mode handles many files in a single session.
.tb2?GitHub Releases, Sourceforge file releases, and most distro package mirrors accept arbitrary filenames — .tb2, .tbz2, and .tar.bz2 all work. PyPI source distributions (sdist) historically accepted .tar.bz2 but since the move to PEP 517 / build backends, .tar.gz is the standard and .tb2 may be rejected by twine upload; check your packaging tool's accepted formats before uploading.
Probably not. Binaries (compiled .so / .dll / .exe, stripped ELF, AOT-compiled .pyc) compress poorly with both algorithms because they're already entropy-dense. You'll spend CPU for a 1-3% savings. Bzip2 shines on natural-language and source-code inputs; for binary blobs, leaving the file as .tar.gz or moving to .tar.xz (LZMA2, which handles binaries better than bzip2) is usually wiser.
.tar.xz — should I use that instead?For new archives where storage size matters more than decompression speed, .tar.xz typically beats both .tar.gz and .tb2 on ratio (often by another 10-30%) and decompresses faster than bzip2. Most modern Linux distros default to .tar.xz for source distribution. If your downstream tooling supports it, convert to .tar.xz instead — try TAR.GZ to TAR.XZ. If you need bzip2 specifically for compatibility with an older build system, stick with .tb2.
.tb2 back to .tar.gz?Yes. The conversion is lossless either way because the TAR payload is unchanged. Use TAR.BZ2 to TAR.GZ or unpack first with TAR.GZ to TAR and re-wrap manually. For other targets see TAR.GZ to 7Z or TAR.GZ to ZIP.