lookup> .xz

.XZ·File Extension

XZ ArchiveLZMA2-compressed archive, default on Linux distributions.

Extension.xz
File typeXZ Archive
CategoryArchive
Charset
Compressible
Format familyxz

What is a .xz file?

A .xz file is a XZ Archive — LZMA2-compressed archive, default on Linux distributions.

In the mime-db registry it maps to application/x-xz. When serving .xz over HTTP, set the Content-Type header as shown in Developer info below.

Related entities: it maps to application/x-xz — and is delivered over HTTP via the Content-Type header.

  • Use xz or 7-Zip to open and edit .xz files.
  • Any text editor (Notepad, VS Code) can inspect the raw content as text.

When served over HTTP, responses should set the following header:

Content-Type: application/x-xz

Common software that reads/writes .xz:

xz7-Ziptar
.xzextension of
format
xzserved as
mime type
application/x-xzsent via header
http header
  • File distribution
  • Backup bundles
  • Software installation packages
  • Open the file with xz, make your changes and save.
  • Most editors preserve the original formatting and encoding — avoid changing the charset.
  • Create a new file and save it with the .xz extension, or export this format from xz.

What programs can open .xz files?

Common options include xz, 7-Zip, tar. You can also open many of these files with built-in viewers or a browser.

How do I create a .xz file?

Create a new file in any text editor or the app that owns the format and save it with the .xz extension.

What is the relationship between .xz and the application/x-xz MIME type?

application/x-xz is the media type identifier used for .xz files during network transfer (for example in the HTTP Content-Type header).

Updated 2026-08-18

Related extensions

Related MIME types

Related headers

Related methods

Related status codes