.xz XZ archive

Archives & packages

MIME typeapplication/x-xz
DescriptionXZ archive
CategoryArchives & packages
Signature (magic bytes)FD 37 7A 58 5A 00 (.7zXZ.)

Frequently asked questions

What is a .xz file?

A .xz file is a “XZ archive” (MIME type application/x-xz).

How do I open a .xz file?

With an archive tool such as 7-Zip (Windows) or the built-in archive manager on macOS or Linux. On the command line, use tar, unzip or 7z depending on the format.

How can you tell a genuine .xz file?

By the bytes at the start of the file, the signature (magic bytes): FD 37 7A 58 5A 00 (.7zXZ.). On Linux and macOS, file --mime-type example.xz checks the real type regardless of the extension.

Which MIME type belongs to .xz?

The MIME type is application/x-xz. In the Apache web server: AddType application/x-xz .xz; in nginx: types { application/x-xz xz; }.

Nearby entries