Initializing... drag & drop files here
Supports: TAR
.tar archives. Batch upload is supported — drop multiple TARs in one go..tb2 file, or Individual Archives to produce a separate .tb2 for each input TAR. Default is Single Archive.bzip2 -9 uses on the command line). Most users can keep defaults..tb2 file. Files stay private — uploads are processed on our servers and removed automatically after conversion.A .tar file is just a container — it packages multiple files into one stream without any compression, so the archive is roughly the same size as the sum of its contents. Wrapping that TAR in bzip2 (producing .tar.bz2, also written as .tbz2, .tb2, or .tbz) shrinks it significantly, especially for text-heavy payloads like source code, log files, and configuration trees. The .tb2 extension is simply a shorter alias for .tar.bz2 — same bytes, same algorithm, just a four-character filename suffix that survives older filesystems that disliked double extensions.
.tar.gz) for text-dominant data, and dramatically smaller than the raw .tar. That matters when you're rsyncing nightly backups, attaching a project snapshot to an email, or pushing release tarballs over metered bandwidth..tar.bz2 because the asymmetric tradeoff favors the publisher: compress once, decompress many times..tb2 opens natively with tar -xjf file.tb2 on every modern UNIX-like system, and with The Unarchiver, Keka, or 7-Zip on macOS and Windows. No proprietary tooling required..tb2 avoids the per-file overhead of separate transfers and dodges the "too many small files" performance cliff on network filesystems and cloud object stores.| Property | TAR (.tar) | TB2 / TAR.BZ2 | TGZ / TAR.GZ |
|---|---|---|---|
| Compression | None | bzip2 (Burrows-Wheeler) | gzip (DEFLATE) |
| Typical ratio (text) | 1.00x | ~0.20-0.25x | ~0.25-0.30x |
| Compression speed | Instant (none) | Slowest | Fast |
| Decompression speed | Instant | Moderate | Fastest |
| Random access | No | No (must stream) | No (must stream) |
| Native on Linux/macOS | Yes (tar) |
Yes (tar -j) |
Yes (tar -z) |
| Best for | Pipelines, intermediates | Distribution, archival | Frequent reads, web assets |
| First released | 1979 (V7 UNIX) | 1997 (bzip2 by Julian Seward) | 1992 (gzip by Gailly/Adler) |
Bzip2 splits input into blocks of 100-900 kB before compressing. Larger blocks compress better but use more RAM. Our default uses the maximum block size (equivalent to bzip2 -9), which is what almost every distributor ships.
| Block setting | Equivalent flag | Block size | Memory at decompress | When to use |
|---|---|---|---|---|
| Smallest | -1 |
100 kB | ~2.5 MB | Memory-constrained legacy systems |
| Medium | -5 |
500 kB | ~8 MB | Rarely chosen; little benefit |
| Maximum (default) | -9 |
900 kB | ~7.5 MB peak | Standard distribution archives |
Yes — bit-for-bit identical. The extensions .tar.bz2, .tbz2, .tb2, and .tbz all describe a TAR archive compressed with bzip2. They differ only in the filename suffix. .tb2 and .tbz were introduced for filesystems (historically Windows 8.3, some older FAT variants, and certain mainframe transfer tools) that disliked double extensions or capped the suffix at three characters. Any tool that opens one opens all four.
It depends entirely on what's inside. Highly compressible content — source code, JSON/XML/CSV, log files, uncompressed text documents — typically shrinks to 20-30% of the original TAR size (a 4-5x reduction). Already-compressed payloads like JPEGs, MP4 videos, MP3 audio, or ZIP/7Z files inside the TAR will barely shrink at all, because bzip2 cannot meaningfully re-compress data that's already entropy-coded. Expect a few percent savings at best in that case.
TB2 (bzip2) produces smaller files; TGZ (gzip) is much faster to both compress and decompress. Pick TB2 when the archive will be downloaded many times and storage/bandwidth matter more than CPU (release tarballs, nightly backups, cold archives). Pick TGZ when you'll be repeatedly creating and extracting archives in a build pipeline, or when consumers might be on slow CPUs. For most modern workloads with cheap CPU and expensive bandwidth, TB2 wins. For ratios approaching xz/lzma without the speed penalty, look at xz itself — bzip2 sits between gzip and xz on both axes.
Bzip2 runs a Burrows-Wheeler transform followed by move-to-front and Huffman coding on each 900 kB block, which is computationally heavier than gzip's DEFLATE (LZ77 plus Huffman). The BWT step in particular requires sorting block-sized buffers, which scales worse than gzip's sliding-window approach. Decompression is closer in speed — bzip2 decompression is only modestly slower than gzip — but compression can be several times slower in wall-clock terms.
Yes. TAR stores POSIX permissions, ownership (UID/GID), symbolic links, hard links, and modification timestamps in its header records, and the bzip2 layer is a pure byte-stream compressor that doesn't touch that metadata. When you extract the .tb2 on a UNIX-like system with tar -xjf, permissions and links are restored faithfully. (Note: ownership restoration usually requires extracting as root, otherwise UIDs map to the extracting user.)
Not out of the box on older Windows. Windows 10 (build 17063+) and Windows 11 ship a built-in tar command that handles bzip2-compressed TARs from the command line. Windows 11 24H2 added native bzip2/tar/7z extraction in File Explorer. For everything else — older Windows, GUI workflows, batch operations — install 7-Zip, PeaZip, or WinRAR, all of which handle .tb2/.tar.bz2 transparently.
The web tool handles typical archives without issue. Very large multi-gigabyte TARs may run into upload time and browser memory ceilings. If you're routinely compressing tens of gigabytes, run tar -cjf out.tb2 directory/ locally — that's what the format was built for.
Single Archive (the default) extracts the contents of every uploaded .tar and merges them into one combined .tb2. Individual Archives processes each input TAR separately and emits one .tb2 per input. Pick Single Archive when you want a single distributable bundle; pick Individual Archives when you're batch-compressing several unrelated TARs in one go. For other format pairs, see TAR to TGZ, TAR to 7Z, or TAR to ZIP.