gz

.gzGzip Compressed Archive

Jean-loup Gailly and Mark Adler · 1992

Developer
Jean-loup Gailly and Mark Adler
Category
Archives
MIME Type
application/gzip
First Released
1992
Open Format
Yes
File Signature
1F 8B

What is a .gz file?

The .gz file extension is commonly used for files compressed with the Gzip compression algorithm. Gzip is a popular lossless data compression program that reduces file size significantly, making it ideal for transferring files over the internet or for saving disk space. It is widely supported across various operating systems and applications.

Programs That Open .gz Files

PlatformProgram
Windows7-ZipFree
WinRARPaid
GnuWin32 GzipFree
macOSThe UnarchiverFree
Archive UtilityFreeOfficial
Gzip (via Terminal)FreeOfficial

Common Problems with .gz Files

⚠️ Cannot open .gz file
Ensure you have a compatible compression/decompression utility installed, such as 7-Zip, WinRAR, or the built-in Archive Utility on macOS. Try right-clicking the file and selecting 'Extract' or 'Open With'.
⚠️ .gz file is corrupted
If the .gz file is corrupted, it may be due to an incomplete download or a storage error. Try re-downloading the file or check the integrity of the storage media. If it's a critical file, you might need to request it again from the source.
⚠️ .gz file is actually a .tar.gz or .tgz
Many .gz files are actually tar archives that have been compressed with gzip (e.g., .tar.gz or .tgz). In this case, you'll need to extract the .tar file first using a tool that supports tar, and then extract the contents of the tar archive.

Frequently Asked Questions

What is a .gz file?

A .gz file is a file compressed using the Gzip compression algorithm. It's designed to reduce file size for efficient storage and transfer, and typically contains a single compressed file.

How do I open a .gz file?

You can open a .gz file using various compression utilities. On Windows, 7-Zip or WinRAR are popular choices. On macOS, the built-in Archive Utility or tools like The Unarchiver can handle them. You can also use command-line tools like 'gunzip' or 'gzip -d'.

Can a .gz file contain multiple files?

No, a single .gz file typically compresses only one file. If you need to compress multiple files into a single archive, they are usually first combined into a tar archive and then the entire .tar file is compressed with gzip, resulting in a .tar.gz or .tgz file.

Technical Details

A .gz file is essentially a single file compressed using the DEFLATE algorithm, often preceded by a gzip header containing magic bytes, file modification time, and original file name. It is not a container format like .tar.

Did You Know?

The name Gzip is a portmanteau of 'GNU' and 'zip', reflecting its origins and functionality.
While Gzip uses the DEFLATE algorithm, it is not compatible with standard ZIP archives. Often, multiple files are first combined using 'tar' and then compressed with Gzip, creating the common .tar.gz or .tgz format.
Gzip is the standard compression format used by the World Wide Web Consortium (W3C) for compressing HTTP transmissions, significantly speeding up web page loading times.

Security Information

Gzip files themselves are generally safe and do not inherently contain malicious code, as they are primarily a compression format. However, like any file, they can be used to package and distribute malware. Always ensure you are downloading from trusted sources and scan files with antivirus software before opening.

Related Extensions