File types / Archives

.xz file

XZ compressed file

Extensions
.xz
MIME type
application/x-xz
Signature
FD 37 7A 58 5A 00  (.7zXZ.)at byte offset 0
Safety
Low risk

What is a .xz file?

XZ uses the LZMA2 algorithm for very high compression. Linux distributions often ship packages and kernels as .tar.xz.

The signature is FD followed by the letters 7zXZ and a zero byte.

Used for: Software distribution where size matters.

How can I tell if a file is really a XZ?

Read its first bytes rather than trusting the name. A genuine XZ file has the signature FD 37 7A 58 5A 00 (.7zXZ.) at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.

To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.

Is a .xz file safe to open?

Compression only. The risk is in the contents.

Easy to confuse

XZ and 7z are different formats even though both use LZMA-family compression.