Initializing... drag & drop files here
Supports: TAR.BZ2
.tar.bz2 archives from your device. Batch upload is supported — rename a directory full of source tarballs in one pass. Files are uploaded over an encrypted connection, processed on our servers, and deleted automatically after a few hours — no sign-up, no watermark, never shared..tar.bz2) to the short single form (.tb2)..tb2 per input. For a pure extension rename, leave the default Individual Archives.The .tar.bz2, .tbz2, .tb2, .tbz, and .tz2 extensions all describe the same thing: a tar archive that has been compressed with bzip2. The double-extension form (.tar.bz2) makes the pipeline explicit — first tar, then bzip2 — while .tb2 is the shorter single-extension alternative that some tools, scripts, and file systems prefer. Renaming the extension does not change a single byte inside the file; it just changes how downstream programs label it. Common reasons to make the swap:
.tar.bz2 as two stacked extensions and only see the trailing .bz2. Renaming to .tb2 gives them a single, unambiguous handle and avoids "unknown second extension" warnings..tar.bz2, while some Slackware-style and older Unix distributions prefer .tbz or .tb2. Renaming lets you mirror an upstream layout without re-compressing..bz2 on archive.tar.bz2, leaving users staring at archive.tar and unsure what it is. A single .tb2 extension survives the strip and stays visible.release-1.4.2.tb2 is shorter than release-1.4.2.tar.bz2 — useful when filename length adds up (deep paths, ZIP-within-archive scenarios, mail subject lines).*.tb2 match exactly one extension; *.tar.bz2 matches the same files but trips up scripts that split on the first dot. If your pipeline keys on a single suffix, .tb2 is friendlier.mv archive.tar.bz2 archive.tb2), but doing it here keeps the workflow with the rest of your conversions, supports drag-and-drop for many files at once, and never re-runs bzip2.Need to go the other direction or change compression? Switch to TB2 to TAR.BZ2 for the reverse rename, TAR.BZ2 to TAR.GZ to swap bzip2 for gzip (faster decompress), TAR.BZ2 to 7Z for a tighter LZMA2 archive, or Extract TAR.BZ2 to unpack the contents instead of repackaging.
| Property | .tar.bz2 |
.tb2 |
.tbz2 |
|---|---|---|---|
| Underlying format | tar + bzip2 | tar + bzip2 | tar + bzip2 |
| Bytes inside | Identical | Identical | Identical (vanilla); plus appended XPAK on Gentoo binary packages |
| MIME type | application/x-bzip2 or application/x-tar |
Same | Same |
| Extension style | Double (compound) | Single (short) | Single (short) |
| Where you see it most | Open-source source tarballs, Linux distributions | Slackware-style packages, scripts that need a single suffix | Gentoo binary packages (Portage), some BSD ports |
| Native Windows support | Yes, via tar.exe since Windows 10 1803 (April 2018) |
Same — tar.exe reads by content, not name |
Same |
| Native macOS support | Yes — BSD tar and Archive Utility recognise the magic bytes |
Same | Same |
| Linux unpack command | tar -xjf file.tar.bz2 (or tar -xf since GNU tar 1.15) |
tar -xjf file.tb2 |
tar -xjf file.tbz2 |
Practical takeaway: content sniffing wins. Modern tar, BSD tar, libarchive, 7-Zip, PeaZip, WinRAR, and WinZip all detect the bzip2 magic bytes (BZh) at the start of the file regardless of extension. The extension only matters for OS file associations, MIME guesses, and humans skimming filenames.
| Codec | Typical ratio (vs gzip baseline) | Compress speed | Decompress speed | Best for |
|---|---|---|---|---|
gzip (.tar.gz, .tgz) |
Baseline | Fast | Very fast | Day-to-day shipping, CI artefacts |
bzip2 (.tar.bz2, .tb2, .tbz2) |
~10-15% smaller than gzip | 3-6x slower than gzip | 2-3x slower than gzip | Source tarballs, archival, anywhere bandwidth costs more than CPU |
xz / LZMA2 (.tar.xz) |
~20-30% smaller than gzip on text | 5-10x slower than gzip | Slightly slower than gzip | Long-tail distribution (kernel, big source trees) where decompress speed still matters |
zstd (.tar.zst) |
Comparable to gzip at -3, near-xz at -19 | Very fast | Very fast | Modern Linux distros (Arch, Fedora) and CI caches |
If you only want to switch labels and keep the bzip2 payload, use this page. If you also want to swap the codec, convert to TAR.GZ, TAR.XZ, or 7Z instead.
.tb2 exactly the same file as .tar.bz2?For ordinary bzip2-compressed tarballs, yes — they are byte-for-byte identical. The .tb2 extension was introduced as a single-suffix alternative to the compound .tar.bz2 so programs and file systems that struggle with double extensions still have an unambiguous label. Renaming archive.tar.bz2 to archive.tb2 (or vice versa) is purely cosmetic and reversible.
tar still extract a file I renamed to .tb2?Yes. GNU tar 1.15 (released 2004) and later auto-detect compression from the file's magic bytes, so tar -xf file.tb2 works without needing the explicit -j (bzip2) flag. BSD tar (used on macOS and FreeBSD) and Windows 10's bundled tar.exe — both built on libarchive — do the same. The extension only matters if you're using an older tar (pre-1.15) where you'd need tar -xjf file.tb2 or bunzip2 -c file.tb2 | tar -xf -.
.tb2 and .tbz2?For a plain bzip2 tarball, nothing — both are aliases for the same format. The wrinkle is Gentoo Linux: Portage's binary packages also use the .tbz2 extension, but those files have an XPAK metadata block appended to the end of the tarball. A vanilla .tb2 won't carry that metadata. If you're handling Gentoo binary packages, treat their .tbz2 files as Gentoo-specific and extract them with qtbz2 from the app-portage/portage-utils package; for everything else, .tb2 and .tbz2 are interchangeable labels.
Because re-running bzip2 over an already-compressed payload would change every byte without any benefit: bzip2 on bzip2 yields a slightly larger file (the compressed data is already near-entropy and adds another header). For an extension rename you want the bytes preserved so checksums, signatures, and reproducibility all hold. This converter does the rename without touching the bzip2 stream.
Yes. SHA-256, SHA-512, MD5, and detached GPG signatures (.asc / .sig) hash the file contents, not the filename, so they validate identically against release-1.4.tar.bz2 and release-1.4.tb2. If the signature file references the original filename in a manifest (some .sha256sum or SHA256SUMS files do), you may need to update that text reference, but the cryptographic check itself is filename-agnostic.
.tb2 files natively?Windows 10 version 1803 (April 2018) and later ship a libarchive-backed tar.exe at C:\Windows\System32\tar.exe that reads bzip2-compressed tarballs regardless of extension. File Explorer itself doesn't preview or unpack them — for a double-click extract you still want 7-Zip, PeaZip, WinRAR, or WinZip, all of which register associations for .tar.bz2, .tb2, and .tbz2 on install.
.tar.bz2 files to .tb2 here?Yes. Drop all of them in, leave Individual Archives selected (the default for archive-to-archive conversions), and each input becomes a separately renamed .tb2. If you'd rather bundle them into one combined archive, switch to Single Archive — but that will re-tar and re-compress, so the bzip2 stream is no longer identical to your inputs.
This is the most common reason to do this rename. Some bug trackers, package mirrors, and forum attachment systems whitelist single extensions and reject .tar.bz2. Renaming to .tb2 (or .tbz2) gives the upload a single recognised suffix without changing the content. If a service rejects both, your last resort is .bz2 (which most parsers will accept), but that drops the "tar" hint from the filename — receivers will need to know to use tar -xjf, not just bunzip2.
.tar.gz instead for wider compatibility?If your audience is mixed and you don't need maximum compression, yes — .tar.gz is universally understood, faster to extract, and supported by every archive tool back to the 1990s. bzip2 trades ~3x slower decompress for ~10-15% smaller files; that's a good trade for archival downloads but a poor one for hot-path CI artefacts. Convert to TAR.GZ if compatibility matters more than compression ratio.