Sobre os arquivos XZ
XZ Comprimido
Formato de compressão Unix moderno (2009) usando LZMA2. Comprime ainda melhor que bzip2 mantendo descompressão rápida. Padrão para distribuição de software open-source moderno (.tar.xz).
Família
Archives & Compressed
Extensão
.xz
Tipo MIME
application/x-xz
Pode ser usado como
COMO NASCEU O
FORMATO XZ.
XZ is a general-purpose compression format released in 2009 by Lasse Collin, based on the LZMA2 algorithm (an evolution of the LZMA Igor Pavlov designed for 7-Zip). The xz-utils suite became the default "best compression ratio" tool on Linux — typically 30% smaller than gzip and 15% smaller than bzip2 at comparable speed.
Every major Linux distribution adopted .tar.xz for kernel and package distribution. Then came March 2024 and the notorious XZ backdoor incident: someone operating under the name Jia Tan spent three years as a trusted xz-utils maintainer, then inserted a malicious payload that would compromise SSH on affected systems. A Microsoft engineer, Andres Freund, caught it by noticing SSH logins were half a second slower than usual. The backdoor was removed, xz-utils went through a governance reshuffle, and the industry learned a hard lesson about single-maintainer supply-chain risk.
CURIOSIDADES E
FATOS INTERESSANTES.
The XZ backdoor (CVE-2024-3094) was caught in March 2024 by a Microsoft engineer who noticed SSH logins were ~500 ms slower than usual — arguably the most important security catch of the decade.
XZ compression typically beats gzip by 30% and bzip2 by 15% on general data.
Every modern Linux distribution ships its kernel source as .tar.xz.
XZ supports parallel compression via xz -T flag — essential for utilizing modern many-core CPUs.
The LZMA2 algorithm is a successor to LZMA, originally designed for 7-Zip by Igor Pavlov.
VANTAGENS E
LIMITAÇÕES.
Vantagens
- Best-in-class compression ratio among mainstream tools.
- Streaming-capable — can pipe through network.
- Multi-threaded compression available.
- Mature on every Linux distribution.
- Supports integrity checking (CRC32, CRC64, SHA-256).
Limitações
- Slow compression at high levels — 3-5× slower than gzip.
- Memory-hungry: xz -9 can need 700+ MB to compress.
- 2024 supply-chain backdoor damaged trust in the project.
- Zstandard outperforms xz at similar ratios with less memory.
Tamanhos típicos de arquivo
Text/source archive
15-25% of original
Linux kernel (.tar.xz)
~125 MB
Firefox source code
~600 MB
Especificações técnicas
- MIME type
- application/x-xz
- Extensions
- .xz, .txz
- Algorithm
- LZMA2
- Standard
- The .xz File Format specification 1.1.0
- Integrity checks
- None, CRC32, CRC64, SHA-256
CONVERTER A PARTIR DE
XZ
Casos de uso comuns
Linux packages, high compression
Formatos relacionados
Comparativos populares
XZ vs TAR
Diferenças, tamanho de arquivo e quando escolher cada formato.
XZ vs GZ
Diferenças, tamanho de arquivo e quando escolher cada formato.
XZ vs BZ2
Diferenças, tamanho de arquivo e quando escolher cada formato.
XZ vs LZMA
Diferenças, tamanho de arquivo e quando escolher cada formato.
XZ vs ZST
Diferenças, tamanho de arquivo e quando escolher cada formato.
XZ vs LZ4
Diferenças, tamanho de arquivo e quando escolher cada formato.
Conversões populares de XZ
Os destinos mais procurados ao converter arquivos XZ.
Perguntas frequentes sobre XZ
Perguntas frequentes
XZ (XZ comprimido) is an archive formato used to bundle multiple arquivos e folders em a single comprimido file. The archive preserves the directory structure e tipicamente reduces total size via compressão. XZ sits no archives & comprimido family e has specific strengths around compressão ratio, speed, ou plataforma support.
7-Zip, WinRAR, The Unarchiver (macOS), e the built-in archive utilities no Windows e macOS abrir most XZ files. para command-line extraction, 7z, unar, ou the formato-specific tool handles XZ cleanly. If your extractor does not recognise XZ, converter to ZIP first — ZIP opens on every operating system sem extra software.
Upload the XZ to KaijuConverter e pick ZIP, 7Z, TAR.GZ, ou RAR como o target. Our pipeline extracts the original archive e re-compresses the contents em the target formato. arquivo permissions, timestamps, e directory structure are preserved where both formatoos support them.
Depends no goal. ZIP is the universal baseline — every OS extracts it out of the box. formatoos like 7Z ou TAR.GZ compress better mas require specific ferramentas. XZ may win on compressão ratio, password support, ou OS integration para specific workflows; ZIP wins on raw compatibilidade.