XZ
You can also paste a file or a link to a file with Ctrl+V
Don't see your format?
When you need XZ to ZIP
.xz files most often come from Linux distributions, system images, large database dumps, and project sources. The format is chosen for its very strong compression. The flip side: on Windows and Mac a double click on .xz opens nothing, and without an archiver the file stays out of reach.
An ordinary system opens ZIP on its own. If you need to look at a file on a work computer or send it to someone without Linux, repacking to ZIP is the shortest path.
What is inside an XZ
XZ compresses one file, not a set of files and folders. Inside log.txt.xz sits a single file log.txt. After conversion you get a ZIP with that file under its original name.
If you have a .tar.xz, inside is a compressed container with many files. Its contents can be repacked too: all the files end up in the new ZIP.
What changes after conversion
The content stays the same; only the packaging changes. The size can differ a lot: XZ compresses even harder than BZ2 and GZ, so the ZIP is almost always larger than the source. That is normal and does no harm to the data.
When this is especially useful
- You need to open an
.xzfile on Windows or Mac without installing programs. - A distribution or an image was downloaded as
.xz, and you must check its content on an ordinary laptop. - A database dump sits in
.xzand has to go to an analyst colleague. - A portal accepts uploads only as ZIP.
- You want to send a file so the recipient does not hunt for something to open it with.
Common tasks and search situations
- how to open an xz file on Windows 11;
- how to open tar.xz on Windows;
- xz on a Mac without the terminal;
- repack xz to zip for a colleague;
- a .sql.xz file from an export;
- a compressed xz image, view the content;
- extract xz online.
What to check before converting
- Look at the full name:
.xzis one file,.tar.xzis a set of files. - Account for the size difference: a ZIP made from a heavily compressed XZ will be noticeably larger, and so will the unpacked data.
- Make sure the file downloaded completely: a truncated
.xzwill not unpack. - If the file is for a Linux system or a script rather than a person, XZ to TAR fits better.
Limitations
XZ has no password protection. A damaged or incomplete file may fail to unpack, and the service does not repair such data. Repacking does not make the content understandable by itself: a disk image or a database dump remains one, and you need the right program for it.
Related tasks
If you need an uncompressed tar for Linux, use XZ to TAR. For .bz2 files - BZ2 to ZIP; for .gz - GZ to ZIP; for .tar.gz archives - TGZ to ZIP. To build your own archive with maximum compression, see ZIP to 7Z.
What is XZ to ZIP conversion used for
Distribution image on an ordinary computer
The image was downloaded as .xz and must be opened on Windows - the ZIP opens with built-in tools.
Database dump for an analyst
An .xz export is needed by a colleague who does not work with Linux formats.
tar.xz sources on a Mac
You want to browse a project's source code on a Mac without the terminal or third-party programs.
Upload to a corporate portal
The system accepts only ZIP, while the source file is compressed as .xz.
Tips for converting XZ to ZIP
Expect the size to grow
A ZIP made from XZ will be larger than the source file. Make sure disk space and your connection can handle it.
Tell one file from a set
A .tar.xz name means a set of files inside; a plain .xz is a single file.
Download again if it will not open
A truncated .xz is the most common cause of an error. Downloading again usually helps.