Compress XZ
Compress files to XZ format with high LZMA2 compression ratio.
or drop files here
Maximum file size: 500MB per file
Learn more about this tool
About XZ Compression
XZ is a modern compression format using the LZMA2 algorithm, offering some of the best compression ratios available. It is widely used in Linux package distribution (`.tar.xz`), software source archives, and large data transfers. Our tool uses WebAssembly for efficient browser-based compression.For an attachment, check the recipient’s stated limit and compare the downloaded file in bytes. MB and MiB differ: 1 MB = 1,000,000 bytes; 1 MiB = 1,048,576 bytes. A selected target is a request, not a guarantee.
Frequently Asked Questions
What is XZ compression?
XZ is a compression format using the LZMA2 algorithm. It typically achieves the best compression ratios among common formats, making it ideal for distributing large files.
XZ vs GZIP vs BZ2 — which should I use?
XZ achieves the best compression but is the slowest. GZIP is the fastest but compresses less. BZ2 is in between. Choose XZ for maximum compression, GZIP for speed.
How much compression can I expect?
Text files can compress by 70-95% with XZ, typically 5-15% better than BZ2 and 15-30% better than GZIP.
Is this XZ compressor free?
Yes, completely free with no limits. Compress as many files as you need.
Does the compressor remember my previous inputs and settings?
Yes. The text you paste and the options you choose — quality sliders, target sizes, output formats, and similar settings — are kept only in your own browser's local storage on this device. Reload the page or come back later and your last configuration is restored instantly, with no account and no upload: nothing is stored on any server, and a different device or browser keeps its own separate memory. Clearing a field removes it from memory immediately, and emptying every field makes the tool forget everything. Uploaded files themselves are never saved or transmitted for storage — they are processed in your browser and disappear when you refresh or close the page; only plain settings are remembered locally, and you can change them at any time.
Create a ZIP archive
Bundle files without changing their contents. JPEG, MP4 and other compressed files may shrink very little in a ZIP.
There is no guaranteed saving or exact target for every file. If the result is larger, some tools return the original; compare its format and size before sharing. For an attachment, check the recipient’s stated limit and compare the downloaded file in bytes. MB and MiB differ: 1 MB = 1,000,000 bytes; 1 MiB = 1,048,576 bytes. A selected target is a request, not a guarantee.
References & Resources
Authoritative specifications and references for the file formats this tool works with.
Compress and extract archives. Support ZIP, RAR, 7Z, TAR and more formats.