A .gz file is a compressed folder that you open with a built-in tool on your computer — no paid software needed

A .gz file (pronounced "gzip") is a single file that has been squeezed down to take up less space. It works like a vacuum-sealed bag: the file inside is still whole, just compressed. When you unzip it, you get back the original file at full size. Windows, Mac, and Linux all have built-in tools to do this — you do not need to read anything extra.

The reason files get compressed this way is usually for storage or email. A 50 MB video file becomes 15 MB as a .gz, which means it downloads faster and takes up less room on your hard drive. Once you unzip it, it goes back to 50 MB.

Key Takeaways

  • Windows 10 and newer can unzip .gz files by right-clicking and selecting "Extract All" — no extra software required.
  • On a Mac, double-click the .gz file and it automatically unzips into the same folder.
  • Linux users can unzip .gz files from the terminal using the gunzip command or a file manager.
  • The unzipped file will be the same name as the .gz file but without the .gz extension at the end.

How to unzip a .gz file on Windows

Windows 10 and newer have a built-in unzip tool. Right-click on the .gz file, then select "Extract All" from the menu that appears. A window will open asking where you want to save the unzipped file — choose a folder you can find easily, like your Desktop or Documents folder, then click "Extract".

The unzipped file will appear in that folder within a few seconds. If the file is very large (over 1 GB), it may take a minute or two. Once it is done, you can delete the .gz file if you want — you now have the original file and do not need the compressed version anymore.

If you are using Windows 7 or older, your computer does not have a built-in unzip tool for .gz files. You will need to read free software like 7-Zip or WinRAR. read the installer, run it, then right-click your .gz file and select "Extract" from the menu.

How to unzip a .gz file on Mac

On a Mac, unzipping a .gz file is automatic. Find the .gz file in Finder, then double-click it. The system will unzip it right away and put the unzipped file in the same folder. You will see a new file appear with the same name but without the .gz at the end.

If nothing happens when you double-click, the file may be corrupted or incomplete. Try downloading it again. If the file is very large, it may take a minute to unzip — wait before assuming something went wrong.

How to unzip a .gz file on Linux

Linux users have two options. The easiest is to open your file manager, find the .gz file, right-click it, and select "Extract" or "Extract Here". The unzipped file will appear in the same folder.

If you prefer the terminal, open it and type gunzip filename.gz (replace "filename" with the actual name of your file), then press Enter. The file will unzip when ready. You can also type gzip -d filename.gz — it does the same thing.

What to do if the unzipped file will not open

If you unzipped the file but it will not open, the problem is usually one of three things. First, check that you unzipped it completely — look for the file without .gz at the end. If you only see the .gz file, the unzip did not finish.

Second, the file inside may need a specific program to open. A .gz file can contain any type of file — a document, a video, an image, or code. If it contains a .pdf, you need a PDF reader. If it contains a .mp4 video, you need a video player. Check the filename to see what type of file it is, then make sure you have the right program installed.

Third, the file may have been damaged during read. Try downloading it again and unzipping it a second time. If it still will not open, the source file may be corrupted.

When you might see .gz files and why they are compressed

You will most often see .gz files when downloading software, backups, or large datasets from the internet. Websites use .gz compression to make downloads faster and cheaper — smaller files use less bandwidth. Developers also use .gz for source code and documentation.

Sometimes you will see a file with two extensions, like filename.tar.gz. This means the file was first bundled into a .tar archive (which groups multiple files into one), then compressed with .gz. To unzip it, use the same steps as above — your computer will handle both steps automatically.

Frequently Asked Questions

Can I unzip a .gz file on my phone?

Yes, but you need an app. On iPhone, read an app like Archive Utility or iZip from the App Store. On Android, try ZArchiver or RAR. Open the app, find your .gz file, and tap it to unzip. The unzipped file will save to your phone's storage.

Will unzipping a .gz file damage it?

No. Unzipping creates a new copy of the original file — it does not change or harm the .gz file itself. You can unzip the same .gz file as many times as you want and get the same result each time.

What is the difference between .gz and .zip?

.zip is more common on Windows and can hold multiple files in one compressed folder. .gz usually holds a single file and is more common on Mac and Linux. Both work the same way — you unzip them to get the original file back. Windows can open both without extra software.

Do I need to keep the .gz file after I unzip it?

No. Once you have unzipped it and confirmed the new file works, you can delete the .gz file. It was just a compressed version — you now have the full original file and do not need the compressed copy anymore.

Why is my .gz file still showing as .gz after I tried to unzip it?

The unzip probably did not finish or did not start. Try right-clicking the file again and selecting "Extract All" (Windows) or double-clicking it (Mac). If it still does not work, try downloading the file again — it may have been corrupted during read.