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 name | XZ archive |
|---|---|
| Hexadecimal magic bytes | FD 37 7A 58 5A 00 |
| ASCII / marker preview | .7zXZ. |
| Byte offset | 0 |
| MIME type | application/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.
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?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Archive Utility, xz / tar in Terminal, Keka, The Unarchiver |
| iPhone & iPad | Keka, Files app (recent iOS releases) |
| Windows | Windows 11 File Explorer, 7-Zip, WinRAR |
Free local tools & related guides
- Check whether a file really is XZ
- Inspect raw bytes in the Hex Viewer
- Guide: File Signatures & Magic Bytes Guide
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.