XZ File Compressor & Extractor
Compress any file to .xz, or open and extract .xz and .tar.xz files back to the original — batch several files at once, pick a compression level, checksums verified, all in your browser with no upload.
Input
XZ Files
Add files and press Compress to .xz — each file becomes its own .xz. Everything runs in your browser; nothing is uploaded.
Also available with
Guides
Compress any file into an .xz, or open an .xz or .tar.xz file and get the original back. Both directions run entirely in your browser, so your files are never uploaded. You can drop in several files at once: each one is compressed or extracted separately, and you can download them one by one or all together as a .zip.
How to use it
- Choose a Mode: Compress files to .xz or Decompress .xz files.
- Drop your files into the box, or click to browse. You can add up to 20 files, 128 MB in total.
- When compressing, pick a Compression Level. Balanced (level 6) is what the
xzcommand uses by default. Smallest file (level 9) uses a 64 MiB dictionary, which helps on big files and is much slower. Fastest (level 0) trades size for speed. - Press Compress to .xz or Decompress, then download the results. When compressing, each row shows the before and after size and how much was saved. When extracting, each row shows which integrity check the file carried.
What is an .xz file?
An .xz file is a single file compressed with LZMA2, the successor to the LZMA algorithm that 7-Zip introduced. It usually produces smaller files than gzip or bzip2, at the cost of slower compression. That's why most Linux distributions and open-source projects publish their source code and packages as .tar.xz.
Like .gz, an .xz holds exactly one file and does not store its name. Decompressing data.csv.xz gives you data.csv. Unlike the older .lzma format, every .xz file carries a checksum (CRC32, CRC64 or SHA-256), so a damaged or truncated file is detected instead of silently producing bad output. Files made here use CRC64, the same default as the xz command.
How do I open a .tar.xz or .txz file?
Decompress it here. You get the .tar archive that was inside it (a .txz is renamed to .tar). To list and extract its individual files, open that .tar with the Tar File Creator.
Is .xz the same as .lzma, .lz or .7z?
No. They all use the LZMA family of algorithms, but the containers are different and not interchangeable:
| Format | What it is |
|---|---|
.xz |
LZMA2 blocks with an index and integrity checks. One file. |
.lzma |
The original bare LZMA stream. One file, no checksum. |
.lz |
lzip, a simpler single-file LZMA container with a CRC32. |
.7z |
An archive that can hold many files and folders. |
This tool reads and writes .xz only. If you drop in an .lz, .lzma, .7z or gzip file by mistake, it tells you which format it actually is. For those, use the Lzip File Compressor or the LZMA File Compressor.
Can other programs open the files this makes?
Yes. The output is a standard .xz stream: xz -d, unxz, tar -xJf, 7-Zip, WinRAR and macOS Archive Utility all open it. Files those tools create, including multi-threaded and concatenated .xz files, open here too.
Why did my file barely shrink?
Files that are already compressed, such as JPG, PNG, MP4, ZIP or PDF, have little redundancy left to remove. Text, CSV, JSON, logs, SQL dumps and other uncompressed formats usually shrink the most.
Why is there a size limit?
Compression runs inside your browser tab rather than on a server, and LZMA2 is a slow algorithm by design. For multi-gigabyte files, the xz command-line tool is the better fit. Extracted output is capped at 1 GB per file, which also protects your browser from "decompression bombs".
Privacy
All compression and extraction happens locally in your browser using WebAssembly. No file is ever sent to a server.
Related tools
To compress many files into a single archive, use the Zip File Creator or the Tar File Creator.