How to convert Z to GZ
- Add your .Z 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
- Both
.Zand.gzare lossless; the decompressed content is byte-for-byte identical after conversion. .Zfiles often contain a tar archive (.tar.Z); after converting you get a.tar.gzthat unpacks normally on any modern system.- The
znewutility ships with thegzippackage - you do not need the oldcompressprogram installed to use it.
Frequently asked questions
Does converting Z to GZ change anything inside the file?
No - both formats are lossless. Only the compression wrapper changes; the decompressed content is identical.
Can I convert .tar.Z to .tar.gz in one step?
Yes - run
znew file.tar.Z on Linux or macOS; it produces file.tar.gz without unpacking the tar layer.Is GZ always smaller than Z?
Almost always. gzip (DEFLATE) typically produces slightly smaller output than Unix compress (LZW), especially for text and source code.
Can gzip read .Z files directly?
Yes -
gzip -d file.Z works because gzip recognises the .Z magic bytes and decompresses LZW without needing the old compress program.