A simple guide to opening a file ending with the .GZ file extension

Do you have a file ending with .GZ that you need to open? GZ files are compressed files that typically contain multiple files and/or folders. To access the files inside, you'll need to extract them similar to how you'd unzip a ZIP file. Fortunately, it's easy to extract GZ files on any platform! This wikiHow article will teach you how to extract files from compressed GZ archives on Windows, Mac, Linux, iPhone, and iPad.

Things You Should Know

  • If you're using Windows, you can extract GZ files using the "tar" command in Command Prompt or by installing the 7-Zip program.
  • On a Mac, just double-click the file to extract it, or use the command gunzip filename.gz in a Terminal window.
  • If you're using Linux, use the gzip -d filename.gz to extract the files.
Method 1
Method 1 of 7:

Using 7-Zip for Windows

  1. 1
    Download and install 7-Zip. 7-Zip is a free, easy-to-use Windows utility that can easily extract files from any GZ archive. This is the easiest way to extract GZ files, and you can use the program in any version of Windows. To install 7-Zip:
    • Go to http://www.7-zip.org/download.html
    • Click the Download link for your version of Windows. If you're not sure whether you're using 64-bit or 32-bit, here's how to check.
    • Once downloaded, double-click the 7-Zip setup file.
    • Click Yes when prompted and follow the on-screen instructions to install.
  2. 2
    Advertisement
  3. 3
    Go to your GZ file's location. Click the folder that contains the GZ folder on the left side of the File Explorer window.
    • You may have to click through multiple folders to get to the GZ folder.
  4. 4
    Double-click the GZ file. This will instantly launch 7-Zip with your GZ folder selected.
  5. 5
    Select your GZ file and click Extract. This is the blue minus sign in the toolbar.
    • You can also extract other types of archives, including TGZ files.
  6. 6
    Select a destination. By default, the current folder will be selected. If you want to extract the files to a different folder, click , select a destination (e.g., Desktop), and click OK.
  7. 7
    Click OK. It's at the bottom of the window. This extracts the files and folders from the GZ to the selected folder.
    • Once the process completes, you can double-click the extracted folder to view the GZ folder's contents.
  8. Advertisement
Method 2
Method 2 of 7:

Using Windows Command Prompt

  1. 1
    Open the Command Prompt as an administrator. If you don't want to download software like 7-Zip to extract the GZ file, you can use the built-in tar command in the Command Prompt tool. Because you'll need to have administrator access to extract the files, start with these steps:
    • Press the Windows key and type cmd.
    • Right-click cmd and select Run as administrator.
    • Click Yes to confirm.
  2. 2
    Use the cd command to enter the folder that contains your GZ file. For example, if your file is on your desktop, you'd type cd C:\Windows\Users\yourusername\Desktop and press Enter.
    • Here's an easy trick to find your full path in File Explorer:
      • Press Windows key + E to open File Explorer.
      • Open the folder that contains your GZ file.
      • Click the address bar at the top of the window once to display and highlight the path.
    • Once you have the path, you can right-click it and select Copy, making it easy to paste right into your command.
  3. 3
    Use tar -xvzf filename.gz to extract the file to the current folder. This simple command instantly unpacks all of the files and folders in the GZ file into the same folder.
    • If you want to extract the files to a different folder, you can specify a destination folder with the -C flag like this: tar -xvzf filename.gz -C destinationfolder
      • Replace destinationfolder with the full path to the folder to which you want your extract files to appear.
      • For example, to extract a file called documents.tar.gz to your desktop, you'd use tar -xvzf documents.tar.gz -C C:\Windows\Users\yourusername\Desktop
  4. Advertisement
Method 3
Method 3 of 7:

Using Mac Archive Utility

  1. 1
  2. 2
    Open the folder that contains your GZ file. For example, if the file is in your Downloads folder, click Downloads now.
  3. 3
    Double-click the GZ file to extract the files. This unpacks the files and folders to the current folder.
    • If this doesn't work, press Ctrl as you click the file, select Open with, and then choose Archive Utility.
  4. Advertisement
Method 4
Method 4 of 7:

Using Mac Terminal

  1. 1
    Open the Terminal app on your Mac. If you want to use a command-line tool to extract the files, it's easy to do in Terminal.
    • To open Terminal, click the magnifying glass at the top-right corner of your menu bar (or press Command + Spacebar), type terminal, and double-click Terminal in the search results.
    • You can also open Terminal in Finder by selecting Go > Utilities > Terminal.
  2. 2
    Use the cd command to enter the folder that contains your GZ file. For example, if your file is in your downloads, type cd ~/Downloads and press Return.
  3. 3
    Use the command gunzip filename.gz to extract the files. For example, if your GZ file is called documents.gz, type gunzip documents.gz and press Return. The files will be extracted to the current folder.
  4. Advertisement
Method 5
Method 5 of 7:

Using Linux

  1. 1
    Open a Terminal window. If you're using any version of Linux, including Ubuntu, you can use the gzip utility to unzip a GZ file. To open a Terminal, press Ctrl + Alt + T on your keyboard.
    • This method will also work for TGZ files.
  2. 2
    Use the cd command to enter the directory that contains your GZ file. For example, if you downloaded the file, type cd Downloads and press Enter to go to the Downloads folder.
    • To make sure you're in the right directory, use the command ls -a to list the files.
  3. 3
    Use gzip -d filename.gz to extract the files. This command instantly unpacks the files from the GZ archive into the current directory.
    • This command will also remove the original GZ file. If you want to keep the GZ file while still extracting the files inside, use gzip -dk filename.gz instead.
    • If the file ends with tar.gz instead of just gz, use tar -xvf filename.tar.gz instead.
  4. Advertisement
Method 6
Method 6 of 7:

Using an iPhone or iPad

  1. 1
    Download iZip onto your iPhone or iPad. If the GZ file is on your iOS device, you can install the free app iZip from the App Store. Just open the App Store, search for iZip, and tap Get.
  2. 2
    Select the location of your GZ file. For example, if the GZ file is saved to your iPhone, select Files at the top, then navigate to the folder that contains your file.
    • If the file is in your Google Drive, Dropbox, Box, or OneDrive, select the service and follow the on-screen instructions to log in. Then, you'll be able to navigate to the file.
  3. 3
    Tap the GZ file and select Yes. This displays the contents of the file and asks if you'd like to unzip them.
  4. 4
    Tap OK to confirm. This final step extracts the files from the GZ archive to the current folder.
  5. Advertisement
Method 7
Method 7 of 7:

Using an Android

  1. 1
    Download Zarchiver on your Android. You'll find this free app in the Play Store. Just search the Play Store for zarchiver and tap Install. You can also go straight to the app's details page in your browser.
  2. 2
    Open Zarchiver. Once installed, you can tap Open in the Play Store or tap the new folder icon in your app list.
  3. 3
    Navigate to your GZ file. Browse to the folder that contains your GZ file. You can also search for the file by tapping the magnifying glass at the top of Zarchiver.
  4. 4
    Tap the GZ file. Several options will appear at the bottom of the screen.
  5. 5
    Tap one of the two Extract options. The first option, Extract here, extracts the files to the current folder. If you'd rather Zarchiver create a new folder for the extracted files, select Extract to ./<Archive name>/ instead. This will extract the files to the selected folder.
  6. Advertisement

Community Q&A

  • Question
    How do I open gz files in Adobe as PDF?
    Community Answer
    Community Answer
    Download 7z extractor and then extract your file to a folder. The extracted file will have the extension of .TAR. Extract the .TAR file and you'll have a folder containing a PDF, .epub, .mobi and other versions of the file. You can now use any version of the file.
  • Question
    How do I open a zip file on Windows 10?
    Community Answer
    Community Answer
    You can open a zip file by extracting it using file explorer. You can do this by right clicking on the zip file and selecting "Extract all" to the destination where you want it to be.
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 1,243,501 times.
How helpful is this?
Co-authors: 17
Updated: March 24, 2023
Views: 1,243,501
Categories: File Manipulation
Article SummaryX

1. Install 7-Zip for Windows.
2. Open the File Explorer.
3. Select the folder that contains the GZ.
4. Click the Home tab.
5. Click Copy path.
6. Open 7-Zip.
7. Paste the copied path into the address bar.
8. Click the folder icon.
9. Click Extract.
10. Select a destination and click OK.

Did this summary help you?
Advertisement