How to convert XZ to GZ
- Add your .XZ file - drop it in the box above or click to browse.
- Convert it to .GZ in a few seconds.
- Download your new .GZ file.
What to expect
- The
.gzoutput will be larger than the.xzsource - LZMA2 compresses 20-30% better than DEFLATE for most file types. - Both XZ and GZ are lossless, so no data is changed or lost during the conversion.
- When converting
.tar.xz, the result is.tar.gz- the tar layer stays intact and all files inside remain unchanged.
Frequently asked questions
Is there a direct XZ-to-GZ converter that skips extraction?
Not as a GUI one-click action. The pipe command
xz -dc file.xz | gzip > file.gz does it in one shell command, but internally it always decompresses and recompresses - no shortcut exists at the algorithm level.Will the GZ file be smaller than the XZ file?
No. GZ produces larger files than XZ for the same content because DEFLATE is less efficient than LZMA2. Convert only when compatibility requires it, not for size savings.
Can I convert .tar.xz to .tar.gz without unpacking all the files?
Yes -
xz -dc archive.tar.xz | gzip > archive.tar.gz rewraps the tar stream without extracting individual files to disk, and the resulting .tar.gz is immediately usable.Does conversion work on Windows without the command line?
Yes. Both 7-Zip and PeaZip can extract
.xz archives and save the output as .gz or .tar.gz through their graphical interfaces.