XZ, LZ4, Zstandard and LZMA File Extractor and Compressor

Drop a .xz, .lz4, .zst, .lzma or .gz file and get the original back, with the integrity check verified and, for tarballs, a searchable list of every file to view, save or pack into a ZIP. Switch to Compress to make .xz, .lzma, .lz4, .zst or .gz files from your own files, with levels and checksums.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Open the file

    Drop a .xz, .lzma, .lz4, .zst or .gz file, or a tarball such as .tar.xz or .tar.zst, on the Open and extract tab.

  2. 2
    Check the result

    Read the format, ratio, time and the verified checksum line shown for the file.

  3. 3
    Browse the contents

    For tar archives, search the list, sort by size and tap View to preview text or images.

  4. 4
    Extract

    Save single files, tick several and download them as one ZIP, or save the whole decompressed file.

  5. 5
    Compress

    On the Compress tab add files, pick XZ, LZMA, LZ4, Zstandard or gzip, set the level and the checksum.

  6. 6
    Save and compare

    Press Compress, compare sizes and times in the results table and save the file you want.

Informazioni su questo strumento

Linux distributions, source code releases, database dumps and game mods increasingly ship as .tar.xz or .tar.zst instead of ZIP. Windows and many phones cannot open these without extra software, and online converters want you to upload the file. This tool does the work inside the browser tab. Open a compressed file and it detects the format from its first bytes rather than trusting the extension: XZ (LZMA2 in the .xz container), the older LZMA alone format (.lzma, .tlz), LZ4 frames including the legacy frame written by old lz4 versions, Zstandard and gzip. It decompresses, verifies the CRC32, CRC64 or xxHash checksum stored in the file, and reports the ratio and the time taken. When the result is a tar archive, every entry is listed with its size, permissions, owner and date; you can preview text and images, save one file or tick several and download them as a ZIP that Windows opens natively. The Compress tab goes the other way. Add one or more files, choose the format and level, and the tool writes a standard file that xz, unxz, lz4, zstd, 7-Zip and tar can read. Several files are packed into a tar first, so the result is a normal .tar.xz or .tar.zst.

Which format to choose

XZ gives the smallest files of the four and is the usual choice for software releases; it is also the slowest to compress. LZMA alone is the predecessor of XZ without a container checksum and is mainly needed for old tools. LZ4 is very fast in both directions but compresses less; it suits logs and data that you will read often. Zstandard sits in between, with high speed and ratios close to XZ at higher levels, which is why Arch Linux, Fedora and Ubuntu use it for packages. gzip is here for compatibility.

How the coders work

The XZ, LZMA and LZ4 coders are our own TypeScript code, written from the published format documents and tested against files made by xz 5 and lz4 1.9. The XZ encoder uses a hash-chain match finder with lazy matching; it is a little less tight than xz -6 because it does not run the full optimal parser, typically within 10 to 25 percent of the size xz would produce. Zstandard uses two small open-source libraries under the MIT licence that load from jsDelivr only when you open or create a .zst file: fzstd 0.1.1 for decoding (about 9 KB) and zstd-wasm 0.0.27 for encoding (about 260 KB of WebAssembly).

Limits

The whole file is held in memory, so very large archives (over roughly 1.5 GB) may not fit in a phone or tablet browser. XZ files that use BCJ branch filters for executables, bzip2 files and Zstandard frames that need an external dictionary are not supported; the tool says so instead of producing broken output. Symbolic links and device files in a tar are listed but cannot be saved as links. Testing note: XZ, LZMA and LZ4 were tested with files made by the xz 5 and lz4 1.9 command-line tools, and Zstandard only with frame headers so far, so some .zst files may not open yet.

Esempio svolto

A developer on a Windows laptop downloads a release tarball, tool-1.4.2-linux-x64.tar.xz, of 29.1 MB. Opening it shows XZ, one stream and one block, CRC64 verified, and 196 MB of original data, a ratio of 14.8 percent. The tar lists 3,912 entries. Searching for "bin/" narrows the list to three programs; the developer ticks them and saves a 120 MB ZIP. Later the same person compresses a 48 MB SQL dump: XZ level 6 gives about 6.1 MB in roughly 8 seconds, LZ4 about 11.8 MB in under a second and Zstandard (level 6 in the slider, zstd 13) about 6.9 MB.

In breve

Domande frequenti

Are my files uploaded anywhere?

No. The files are read and written with JavaScript in this browser tab. Only the two Zstandard libraries are downloaded from jsDelivr, and only when you work with a .zst file; your data never leaves the device.

Can it open .tar.xz and .tar.zst in one step?

Yes. The outer compression is removed first and, when the result is a tar archive, its contents are listed straight away. You can save the plain .tar as well if another program needs it.

Will xz and 7-Zip read the files it makes?

Yes. The .xz files use LZMA2 with a CRC64 or CRC32 check, the .lz4 files use the standard frame with independent blocks and the .zst files come from the reference Zstandard library, so the usual command-line tools and 7-Zip open them.

Why is my .xz a little larger than the one made by the xz command?

The xz program spends extra time searching for the cheapest way to code every byte. Our encoder uses a faster greedy and lazy search, so files are usually 10 to 25 percent larger at the same level while still decoding with any xz tool.

What does the checksum line mean?

XZ stores a CRC64 or CRC32 of the original data and LZ4 can store an xxHash32. The tool recomputes it after decompressing; verified means the data is identical to what was compressed, FAILED means the file is damaged or truncated.

Which file types are not supported?

bzip2 (.bz2), XZ files with BCJ filters, Zstandard files that need a separate dictionary, and RAR or 7z archives. The site has separate 7z and RAR extractors for the last two.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue