.GZ file extension

To open .GZ files on Windows, download and install 7-Zip or WinRAR.

.gz files are gzip-compressed files that require decompression before accessing their contents. Use software like 7-Zip or built-in tools on different platforms to open them.

Last updated: March 19, 2026 · Reviewed by Julian Stricker

Open on your device

Choose your operating system for a dedicated step-by-step opening guide.

How to open .GZ files

Use these platform-specific instructions to open .GZ files safely.

Windows

  1. Download and install 7-Zip or WinRAR.
  2. Right-click the .gz file and select 'Extract Here' or 'Open with' to decompress.
  3. For .tar.gz files, extract twice or use 7-Zip's direct extraction option.
Full Windows guide

Mac

  1. Double-click the .gz file in Finder to decompress it.
  2. For command-line control, open Terminal and use 'gunzip filename.gz'.
Full Mac guide

Linux

  1. Open Terminal and run 'gunzip filename.gz' to decompress.
  2. For .tar.gz files, use 'tar -xzf filename.tar.gz' to extract all contents.
Full Linux guide

iOS

  1. Install an app like iZip or WinZip from the App Store to handle .gz files.
Full iOS guide

Android

  1. Use a file manager app like ZArchiver or RAR that supports gzip extraction.
Full Android guide

Security notes

  • Always verify the source of a GZ file before opening it to avoid malicious content.
  • Scan extracted files with antivirus software to ensure they are safe.
  • Be cautious when handling GZ files from untrusted sources, as they can conceal harmful payloads.

Recommended antivirus software

Scan files before opening them. These antivirus tools help protect against malware and viruses.

We may earn a commission when you use affiliate links. This supports our free file extension guides.

Can't open this file?

These are the most common causes and fixes when .GZ files fail to open.

Common reasons

  • Decompressed file lacks extension
  • Corrupted GZ file

Fix steps

  1. Use the 'file' command in Linux/macOS Terminal to check the file type.
  2. Open the file in a text editor to determine its format.
  3. Rename the file with the appropriate extension after identifying its type.

Convert .GZ to other formats

Use conversion tools to change .GZ files into formats your software supports.

What is a .GZ file?

Gzip is a file compression format that uses the DEFLATE algorithm to reduce file size. It is often used in conjunction with TAR to create compressed archives, known as .tar.gz or .tgz files.

Background

The GZ file format was developed by Jean-loup Gailly and Mark Adler as part of the GNU project. It is widely used for compressing single files and is a staple in Unix-based systems for reducing storage space and transmission times. The format is particularly popular for compressing TAR archives, which bundle multiple files into a single package before compression. This combination is often used for software distribution and backups. Gzip is known for its simplicity and efficiency, making it a preferred choice for many developers and system administrators.

Common MIME types: application/gzip

Known aliases: .tgz

Further reading

Authoritative resources for more details on the .GZ format.

Common .GZ issues

Decompressed file lacks extension

Sometimes the decompressed file does not have a recognizable extension, making it hard to identify.

  1. Use the 'file' command in Linux/macOS Terminal to check the file type.
  2. Open the file in a text editor to determine its format.
  3. Rename the file with the appropriate extension after identifying its type.

Corrupted GZ file

A GZ file may become corrupted during download or transfer, preventing decompression.

  1. Re-download the file from the original source.
  2. Check the file's checksum if available to ensure integrity.
  3. Try using a different decompression tool to extract the contents.

FAQ

Is .tgz different from .tar.gz?

No, .tgz is simply a shorthand for .tar.gz, both represent a TAR archive compressed with gzip.

Can a GZ file contain multiple files?

Not directly. To compress multiple files, they must first be combined into a single TAR archive, which can then be compressed into a GZ file.

What is the advantage of using GZ files?

GZ files significantly reduce file size, making them ideal for storage and transfer, especially in Unix-based systems.

Similar file extensions

Compare related formats in the same category to find the right tool faster.