How to Unzip a GZ File in Windows: 3 Ways

You can unzip GZ files without third party tools

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • You can unzip these files right from the Command Prompt.
  • For more user-friendly solutions, use specialized software.
extract GZ file

Many use GZ archives to share files, and in this guide, we’ll show you how to unzip GZ file on Windows.

This is simpler than you think, so without further ado, let’s get started.

How do I extract GZ files on Windows?

Since GZ files are compressed formats, after all, it goes without saying that extracting them requires a utility that can perform this task.

That being the case, we would like to recommend you try out WinZip, the world’s best file archiver and unzipper.

The program is extremely lightweight and intuitive, and once you install it on your PC, it integrates itself into your interface, allowing you full access to its toolset whenever the opportunity arises.

Other useful features:

  • Powerful file encryption
  • Ability to split and un-split big files
  • Can extract multiple archives at once
  • Integrated data backup and sharing options

Here’s how you can use WinZip to extract GZ files:

  1. Download and install WinZip.
  2. Right-click on the GZ file.
  3. Select one of the Unzip options available.

Note: You will be automatically directed to extract the file found in the folder that contains it.

There are other options to choose from this context menu, but in the case at hand, none have anything to do with extraction, so we’ll ignore them.

Once you’ve followed these steps, the file’s content should now be extracted in the location of your choosing.

WinZip

WinZip

Any type of compressed file format that you are dealing with can be easily opened with WinZip. Take advantage of teh offer now!
Free trial Get it now

    2. Unzip a GZ file using Command Prompt

    It is very easy to unzip a GZ file on Windows 10 using Command Prompt, also known as cmd. It is a built-in app which allows you to communicate with the OS through commands.

  1. 1. Press the Windows Key to open the Start Menu.

  2. 2. Type in cmd to search for Command Prompt.

  3. 3. Right click on the result and select Run as Administrator. You will now be able to access Command Prompt with Administrator rights.

  4. 4. Type in the following command: tar -xvzf C:\PATH\TO\FILE\FILE-NAME.tar.gz -C C:\PATH\TO\FOLDER\EXTRACTION

    unzip gz file windows cmd
  5. 5. Press Enter to initialize the command you just typed.

  6. 6. You are now able to unzip GZ files in Windows 10.

3. How can I unzip GZ files with Powershell?

  1. Press Start
  2. Type in powershell and launch PowerShell with Administrative privileges
  3. Type in the following command and press Enter to apply it:
# Specify the path to the 7-Zip executable (Update the path accordingly)
$zipExePath = "C:\Program Files\7-Zip\7z.exe"

# Specify the path to your gzipped file
$gzFilePath = "C:\Path\To\Your\File.gz"

# Specify the destination folder for extracting the contents
$destinationFolder = "C:\Path\To\Extract"

# Build the command to extract the gzipped file using 7-Zip
$command = "$zipExePath x $gzFilePath -o$destinationFolder"

# Execute the command
Invoke-Expression -Command $command
Note icon NOTE
Keep in mind PowerShell can’t natively extract GZ files, so you need to have 7-Zip and use PowerShell to extract it.

By following these steps, you should now be able to extract GZ files in whatever manner you find useful. If you’re working with similar file types, our how to open TGZ file guide should come in handy.

For other file types, don’t miss our guide on how to unzip files on Windows 11 for more solutions.

Let us know which of the methods described above was more useful to you, by leaving your feedback in the comments section below.

More about the topics: windows 10

User forum

1 messages