Skip to content

XZ to TBZ2 Converter

FileFlip converts XZ to TBZ2 entirely inside your browser, using libarchive compiled to WebAssembly. The file is never uploaded to a server: it is read off your disk, converted on your own machine, and saved back by the browser. That means no file-size limit, no queue and no account.

Convert XZ to

How do I convert an XZ file to TBZ2?#

  1. Drop your XZ file onto the converter at the top of this page, or click it to pick one from your computer. You can add as many as you like.
  2. Leave the target set to TBZ2 and the conversion starts on its own. FileFlip downloads 1.0 MB of WebAssembly the first time and nothing after that, then runs libarchive on your own machine.
  3. Save the TBZ2 file. Your browser writes it straight to your downloads folder, because there was never a server holding it.

Does converting XZ to TBZ2 lose quality?#

No. Converting XZ to TBZ2 does not touch the files inside the archive. Each member is read out and written back byte for byte, so only the wrapper around them changes and nothing is recompressed.

Is it safe to convert XZ files online?#

Yes, because nothing is uploaded. FileFlip converts XZ files inside the browser tab you already have open, using WebAssembly builds of the same engines a desktop converter would install. Your file is read from your own disk into the page's memory, and no request carrying it is ever made.

You do not have to take that on trust. Open your browser's network panel, run a conversion, and you will see the engine come down and your file go nowhere. There is no upload, no server-side copy, no retention window, and no account tied to what you converted.

How FileFlip works lists every engine, its version and its download size, and shows how to check for yourself that nothing leaves your machine.

What XZ to TBZ2 actually does to the file#

Converting XZ to TBZ2 runs on libarchive, downloads 1.0 MB of WebAssembly the first time and nothing after that, copies the archived files through unchanged, keeps file contents.

Enginelibarchive
Conversion path2 steps: XZ → the unpacked files → TBZ2
Downloaded to your browser1.0 MB, once, then cached by your browser
QualityLossless, contents copied unchanged
You get backOne file
Where it runsIn a background worker, so the page stays responsive

What survives the conversion

What is in the fileThis conversionWhy
File contentsKeptCarried through into the converted file.
File timestampsSometimesSurvives for some files and not others.
File permissionsSometimesSurvives for some files and not others.

Worth knowing before you start:

  • the output is a PAX tar archive inside the compressor, not a single compressed stream
  • every entry is extracted into memory before anything is written, so a very large archive can exhaust it

What is an XZ file?#

An XZ file is a single stream compressed with LZMA2 inside a container that adds framing, size fields and a CRC or SHA-256 integrity check, specified by the Tukaani project's xz format starting in 2009.

Use XZ when the smallest practical archive size matters more than how long compression takes, which is why Linux distributions compress their packages and kernel source with it.

Convert XZ to GZ when the archive needs to decompress on something old or constrained enough that gzip's lighter decoder matters.

What is a TBZ2 file?#

A TBZ2 file is a TAR archive compressed as one continuous bzip2 stream under a single extension, so unlike ZIP, extracting one file means decompressing everything that comes before it in the archive.

Use TBZ2 when a tarball needs to be smaller than TGZ makes it and the slower compression time is acceptable.

Convert TBZ2 to TXZ for a smaller result still, or to TGZ when speed matters more than size.

XZ to TBZ2 questions people ask#

Why do Linux distributions use .xz for packages?

xz compresses tighter than gzip or bzip2 on most data while still decompressing quickly, which matters because package managers decompress far more often than they compress. That ratio-versus-decompression-speed balance is why Debian, Fedora and the Linux kernel have shipped source and package archives as .xz for years.

Is xz the same as LZMA?

xz is a container format built around LZMA2, an improved version of the older LZMA algorithm, adding a proper file header, block structure and a CRC or SHA-256 integrity check that raw LZMA files never had. The Tukaani Project's .xz format specification was first released in 2009.

Why is xz compression so slow?

xz's LZMA2 algorithm searches harder for redundancy than gzip's DEFLATE or bzip2's Burrows-Wheeler transform, which is exactly what gives it a better compression ratio, but that search takes real CPU time and memory, especially at higher presets. Decompression doesn't carry this cost and stays fast.

Was the xz format itself compromised in the 2024 backdoor?

No. The 2024 incident, CVE-2024-3094, planted malicious code in the XZ Utils build scripts and the liblzma library in versions 5.6.0 and 5.6.1, not in the .xz file format itself. Files compressed as .xz were never the vector; the risk was in that specific compromised version of the software that reads and writes them.