.XZ

Файл XZ

XZ Compressed Archive
Задать вопрос
БЫСТРЫЙ ОТВЕТ

An .xz file is a compressed archive created with XZ Utils, using the LZMA2 algorithm. It usually wraps a single file - most often a .tar - so you commonly see .tar.xz. On Windows, open it with 7-Zip or PeaZip. On macOS, use The Unarchiver or Keka. On Linux, run tar -xf file.tar.xz. The format has no encryption and no built-in malware risk.

Разработчик: Tukaani Project (Lasse Collin) Категория: Сжатые файлы Открыть стандартное MIME: application/x-xz
ОТКРЫВАЕТСЯ НА Windows macOS Linux
Связанные: .RAR · .ZIP · .Z01 · .7Z

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Aug 16, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла XZ?

.xz is a compressed archive file format that uses the XZ compression method. The format is native to XZ Utils, the reference software tool developed as part of The Tukaani Project (a GNU/Linux distribution based on Slackware).

XZ and TAR

An .xz archive can store only a single compressed stream and carries no directory tree of its own. Because of that, .xz files are commonly used in combination with TAR archives - TAR collects selected files into a single archive, and the XZ algorithm is then applied for compression. The resulting file carries the suffix .tar.xz or .txz.

LZMA2 compression algorithm

XZ compression is based on the LZMA2 algorithm - an evolution of the original LZMA standard. It allows for high compression ratios and results in significantly reduced file sizes: XZ archives are typically 30% smaller than GZIP and 15% smaller than BZIP2 archives. XZ offers lossless compression to prevent any information loss.

Additional notes

  • Compared to other compression methods, the XZ compression process is rather slow, but decompression is significantly faster.
  • XZ archives are widely used for distributing Linux software packages, including Slackware and most major kernel source tarballs.
  • The .xz format identifies itself with the fixed 6-byte header magic FD 37 7A 58 5A 00 and verifies integrity using per-block and per-stream CRC64 checksums by default (CRC32 and SHA-256 are also supported).
  • In early 2024, XZ Utils versions 5.6.0 and 5.6.1 were found to contain a deliberately injected backdoor (CVE-2024-3094) in the liblzma library. The .xz file format specification is unaffected; only those specific build tarballs were compromised.

Безопасность и защита

РИСК: LOW

The .xz format carries no executable code and cannot 'run'; risk comes only from what is inside (extract before trusting). Note the 2024 supply-chain incident (CVE-2024-3094): a backdoor was inserted into the liblzma build of xz 5.6.0/5.6.1 shipped in some distro test channels - that affects the tool/library binaries, not .xz files you receive. Beware fake 'xz opener' download sites bundling adware; use 7-Zip/PeaZip from their official pages.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕXZ Compressed Archiveтакже известен как XZ Utils compressed file, LZMA2 compressed stream
РАЗРАБОТЧИКTukaani Project (Lasse Collin)с 2009 (XZ Utils 4.999.x / 5.0; format finalized 2009)
КАТЕГОРИЯСжатые файлы
MIME-ТИПapplication/x-xz
ТИПSingle-stream compressed container (LZMA2), usually wrapping a tar archive
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.rar.zip.z01.7z
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
000102030405
HEX
FD377A585A00
ASCII
·7zXZ·
Last 2 bytes of any .xz file are the footer magic 59 5A ("YZ"). Not related to the 7-Zip .7z format despite the '7z' in the magic string.

Программы, открывающие файлы XZ

Windows3 apps
7-Zip Открытый код Right-click the .xz → 7-Zip → Extract Here; for .tar.xz extract twice (xz, then the tar).
PeaZip Открытый код Open the .xz in PeaZip and click Extract; handles .tar.xz in one pass.
NanaZip Открытый код Modern 7-Zip fork from the Microsoft Store - right-click → extract the .xz/.tar.xz.
macOS3 apps
The Unarchiver Бесплатно Double-click the .xz; The Unarchiver decompresses (and untars .tar.xz) automatically.
Keka Бесплатно Drag the .xz onto Keka to extract; supports .tar.xz directly.
Terminal (xz / tar) Встроенная Run tar -xf file.tar.xz (macOS bsdtar handles xz) or install xz via Homebrew.
Linux3 apps
XZ Embedded Открытый код Decoder-only C library for embedded/bootloader use - not an end-user app; for developers decompressing .xz in constrained systems.
xz / XZ Utils Открытый код xz -d file.xz to decompress, or tar -xf file.tar.xz for tarballs. Pre-installed on most distros.
Archive Manager (GNOME) / Ark (KDE) Открытый код Double-click the .xz in the file manager and click Extract.

Технические подробности

глубокая спецификация
Compression algorithmLZMA2 (evolution of LZMA); optional filter chain with delta and BCJ (branch/call/jump) filters
Container structureStream header → one or more compressed blocks → block index → stream footer
Stream header magicFD 37 7A 58 5A 00 - fixed 6 bytes at offset 0
Stream footer magic59 5A ("YZ") - always the last 2 bytes of every .xz stream
Byte orderLittle-endian
MIME typeapplication/x-xz
Integrity checkingPer-block and per-stream checksums; default CRC64; CRC32 and SHA-256 also supported
EncryptionNone - no built-in encryption; encrypt data before compression if needed
File storageSingle compressed stream only; no filenames or directory tree (combine with .tar for multi-file archives)
EncodingBinary
Typical compressed sizeTens of KB to several GB; Linux kernel source tarballs commonly 50-200 MB
Compression ratio vs. alternativesTypically ~30% smaller than gzip and ~15% smaller than bzip2 on source code
Security noteCVE-2024-3094: XZ Utils 5.6.0/5.6.1 tarballs contained a backdoor in liblzma; the .xz file format specification is unaffected
Platform supportLinux, BSD, macOS, Windows (via XZ Utils, 7-Zip, PeaZip, NanaZip, The Unarchiver)
Выпущен2009 (XZ Utils 4.999.x / 5.0; format finalized 2009)
Последняя версияXZ file format 1.0.4 (2009); XZ Utils 5.6.x toolchain
Открыть стандартноеДа · без роялти
Спецификацияtukaani.org

Конвертации XZ

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами XZ. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах XZ.

Часто задаваемые вопросы

How do I open an .xz file on Windows?
Install 7-Zip or PeaZip, right-click the file and Extract. If it's a .tar.xz, extract twice - first the xz layer, then the resulting .tar.
What is the difference between .xz and .tar.xz?
.xz compresses a single stream and stores no file names. .tar.xz is a tar archive (which holds many files and folders) that has then been xz-compressed - the common Linux software format.
Is .xz better than .gz or .zip?
Usually yes for size - LZMA2 compresses tighter than gzip/zip. The trade-off is slower compression and that .xz alone holds one stream, so it's paired with tar for multiple files.
Is the xz file format affected by the xz backdoor (CVE-2024-3094)?
No. The backdoor was in the build of the xz/liblzma software (versions 5.6.0/5.6.1), not in the file format. Files compressed as .xz are not malicious because of it.
How do I decompress .xz on Linux?
xz -d file.xz to get the original file, or tar -xf file.tar.xz to unpack a tarball. xz is preinstalled on most distributions.
Can I open .xz on macOS without the command line?
Yes - The Unarchiver or Keka open .xz and .tar.xz by double-click or drag-and-drop.

Ссылки

1Tukaani - The .xz File Format specificationtukaani.org
2Tukaani - XZ Utils hometukaani.org

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.DATProgram Data File (generic)
5.PARTPartial Download File
6.EXEWindows Executable (Portable Executable)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.TXTPlain Text File
10.MDMarkdown Document

Похожие расширения

.RARRAR Archive (Roshal ARchive)
.ZIPZIP Archive
.Z01Split ZIP Archive - First Part
.7Z7-Zip Archive
.001Split / multi-volume archive - first part (.001)
.ZIRenamed / Truncated ZIP Archive

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z