Archives · Updated · All file signatures

XZ File Signature & Magic Bytes (.xz)

XZ is a high-ratio single-stream compression container built around LZMA2, widely used for Linux kernel releases, Homebrew bottles, Python/Node tarballs (.tar.xz) and firmware images. Its 6-byte header is FD 37 7A 58 5A 00—0xFD followed by 7zXZ in ASCII and a null byte.

Signature & identification summary

Detected format nameXZ archive
Hexadecimal magic bytesFD 37 7A 58 5A 00
ASCII / marker preview.7zXZ.
Byte offset0
MIME typeapplication/x-xz
Common extensions & aliases.xz, .txz

Check whether your file really is XZ.

Drop any file into File Sniff’s free local browser checker to verify its FD 37 7A 58 5A 00 signature and spot misleading extensions—without uploading a single byte.

Check a file’s real type ↗︎

Container & byte-layout notes

XZ adds stream flags, CRC-64 or SHA-256 block integrity checks, and backward-seekable index records that legacy raw .lzma streams lacked.

Extension mismatches & common pitfalls

System images (such as Raspberry Pi .img.xz downloads) must be decompressed before flashing if the flashing utility does not natively unwrap XZ.

Which apps open XZ files?

PlatformCompatible applications & tools
Mac (macOS)Archive Utility, xz / tar in Terminal, Keka, The Unarchiver
iPhone & iPadKeka, Files app (recent iOS releases)
WindowsWindows 11 File Explorer, 7-Zip, WinRAR

Free local tools & related guides

Inspect files & folders natively
on Mac, iPhone & iPad.

The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.

Download on the App Store ↗︎