What is a GZ file?
GZ (gzip) compresses one single file. It is used a lot on Linux and web servers. To pack a whole folder, the folder is first joined into a TAR file and then gzipped, which gives .tar.gz or .tgz.
Drop your file here
or select file
Images, video, audio, documents, data, archives, fonts and more.
About GZ file:
01GZ at a glance
- Full name
- gzip compressed file
- Type
- Compresses one single file with Deflate
- Extension
- .gz (a gzipped TAR: .tar.gz or .tgz)
- MIME type
- application/gzip
- First bytes (hex)
- 1F 8B 08
- Created
- 1992, by Jean-loup Gailly and Mark Adler
- Standard
- RFC 1952, version 4.3
02What is a GZ file
GZ is the output of the gzip program. It compresses one file with the Deflate method. Gzip was released on 31 October 1992 as a free replacement for the compress program, whose LZW method was covered by patents. Web servers use the same format to compress pages on their way to your browser.
A gzip file stores the name of the original file, its date, the system it was made on, and at the end a CRC-32 checksum and the size of the original. Because of that checksum, a program can tell for sure if a GZ is whole. This tool unpacks the file in your browser, up to 300 MB, and tells you if it is complete, cut off or damaged.
Gzip does not pack several files. To send a folder, tar joins the files first and gzip compresses that TAR, which gives .tar.gz or .tgz. When this tool sees a TAR inside, it lists the files from it. RFC 1952 allows several compressed members one after another in one gzip file.
Windows 11 opens .tar.gz and .tgz itself since the optional update of October 2023. Linux and macOS open them in the terminal with the tar command.
03Good and bad sides
Good
- Fast and available on every Linux and macOS system
- The checksum at the end proves the file is complete
- Used by web servers to compress pages
- Combines with tar to pack whole folders
Bad
- One file only: a folder needs tar first
- No password
- bzip2 compresses most files more tightly than Deflate
04Best for
Web server compression
Gzip is one of the standard formats for compressing web content.
Linux software and backups
A common choice, as .tar.gz.
Whole folders
One file only: a folder needs tar first.
05How to open it
- Linux, macOS
- Terminal: gunzip file.gz, or tar -zxf file.tar.gz for a folder
- Windows 11
- File Explorer opens .tar.gz and .tgz since the October 2023 update
- Older Windows
- 7-Zip or WinRAR
06Convert and compare
Sources