Archive format
What is a .gz file?
GZ is a file compressed with gzip, the standard compression tool on Linux. It compresses a single file, so folders are packed with TAR first.
That’s why it usually appears as .tar.gz. It’s lossless: the file comes out identical.
fileclay unpacks and creates GZ
GZ vs ZIP vs TAR
| GZ | ZIP | TAR | |
|---|---|---|---|
| Several files | No | Yes | Yes |
| Compresses | Yes | Yes | No |
| Best for | Compressing one file or a TAR | Sharing folders | Packing on Linux |
When to use GZ
Good for
- Compressing logs and text
- Packing software as .tar.gz
- Backups on servers
Not a good fit
- Several files without TAR
- Sharing with Windows users: ZIP is simpler
- Photos or video: they barely shrink
How to open .gz files
| Platform | App | Notes |
|---|---|---|
| Linux, macOS | Terminal, Archive Utility | Built in |
| Windows 11 | File Explorer | Built in |
| Any system | 7-Zip | Free |
Convert GZ files
Drop a .gz into the converter and it’s unpacked. Results can also be downloaded as one archive.
Conversions run in your browser. Files aren’t uploaded.
How to identify a .gz file
Every gzip file starts with the bytes 1F 8B.
It’s read here, in your browser. Only the first bytes.
Your file
Questions about GZ
What is the difference between GZ and ZIP?
GZ compresses one file. ZIP holds many.
Is .tar.gz the same as .tgz?
Yes. It’s the same thing with a shorter name.
Does gzip lose data?
No. The file comes out identical.