Most of us are conversant in ZIP recordsdata, and those that’ve used Home windows would acknowledge RAR recordsdata as effectively. Each of these are common archiving codecs, regularly used to compress recordsdata and folders, and simply ship them out with out compromising their integrity.
Naturally, .zip and .rar usually are not the one archives obtainable. For those who use Mac or Linux, ultimately you’ll encounter .z or .gz recordsdata as effectively.
What’s a GZ file? The GZ (or GZIP) archive format was created by Jean-loup Gailly and Mark Adler, two software program builders, again in 1992 who used the GNU Gzip compression algorithm to enhance on the default compression course of in UNIX. That’s why you most frequently see .gz recordsdata in macOS and Linux techniques.
A singular characteristic of .gz recordsdata is that they will solely comprise one merchandise every (not like .zip or .rar). To mix a number of recordsdata underneath .gz format, it is advisable to first use an archive utility like TAR, which might create a particular .tar.gz or .tgz file format.
|
The place to unzip |
Right here’s how |
|
On Mac |
Double-click on the .gz file > Open With > Archive Utility. |
|
On Terminal (Mac) |
Drag and drop your file onto the Terminal’s window.
|
|
In Archiver |
Set up and open the app > drag/ and drop your archive > Preview with House > Extract. |
|
In BetterZip |
Set up and open the app > drag and drop your file > Preview with House > Extract. |
Let’s see why you may wish to use .gz recordsdata, methods to open gz recordsdata on Mac, and methods to extract .gz archives in addition to create your personal.
Why Use GZ Archives?
GZ or GZIP continues to be a extensively used compression algorithm as a result of it helps scale back the dimensions of a file significantly whereas defending its integrity. Importantly, GZIP compression doesn’t strip out the unique file title, possession, or timestamp. The latter is particularly helpful when working with recordsdata that may simply get truncated in switch.
Right now, you additionally typically see .gz recordsdata being utilized in internet improvement to compress internet parts and make webpages load quicker.
So how do you create and extract .gz archives in your Mac? You’ve a number of choices to try this.
The right way to open GZ recordsdata on Mac
Whereas Home windows customers have to put in further apps and extensions to open GZ recordsdata, Mac customers can accomplish that by default.
Archive Utility, for instance, which is Mac’s default archiving app (with no consumer interface) can simply extract .gz archives at any time. To take action, simply double-click on the .gz file or right-click, go to Open With, and choose Archive Utility.

Sadly, whereas Archive Utility can unzip GZ recordsdata, it may’t zip them again into archives. For that, it is advisable to both use Terminal or third-party software program.
The right way to unzip GZ recordsdata with Terminal
Since .gz file format was initially created to make archiving higher on UNIX techniques, it may also be managed by Mac’s command line — Terminal.
Terminal could be very highly effective, letting you do any motion in your Mac with out the graphical consumer interface. But it surely’s additionally fairly unforgiving, because it’s very straightforward to do one thing very mistaken. That’s why most individuals attempt to keep away from it.
To soundly extract .gz recordsdata, you should utilize Terminal’s gzip or gunzip instructions. However, first, be sure that your terminal state is in the identical folder and the recordsdata about to be zipped. You need to use the ls -la command to print the recordsdata within the present folder after which navigate inside folders with the cd command or step again with the cd – command.
Alternatively, you may simply additionally drag and drop your file onto the Terminal’s window.
To unzip GZ recordsdata, use: gzip -d file.gz (the place file.gz is the trail to your file). For easier syntax, you too can use gunzip to exchange gzip -d, so kind: gunzip file.gz

These instructions will even take away the unique file. To unzip GZ and hold the unique file, use: gzip -dk file.gz
For those who’re truly attempting to extract a folder archive like .tar.gz, the Terminal command is a bit totally different: tar -xf file.tar.gz

All the instructions above will extract recordsdata in the identical listing as the unique archive. You can even now see why most individuals keep away from utilizing Terminal, it really works like magic however, on the similar time, it’s arduous to grasp how. Fortunately, there are a number of extra highly effective and user-friendly choices you may flip to.
The right way to extract .gz archives with third-party apps
For those who’re searching for quick and simple choices to unzip GZ recordsdata, it is best to begin with Archiver.
Archiver is a light-weight archiving utility that’s blazing quick and helps all of the archiving codecs you’ll ever meet in your life. Its interface is so intuitive that you just barely should do something, simply observe a number of prompts to both create or unpack an archive at any time.
Furthermore, you may extract recordsdata out of the identical archived folder selectively and preview them with Fast Look. You can even set passwords, mix a number of archives collectively, or break up massive archives into equal components.
To unzip GZ file with Archiver:
- Launch Archiver
- Drag and drop your archive onto the app
- Use House to preview your file in Fast Look
- Click on Extract

Equally, to create an archive like .tar.gz, you should utilize the Convert characteristic in Archiver and select TAR.GZ among the many choices. Then click on Convert.

The right way to extract a selected file from a tar archive?
BetterZip is one other highly effective archive supervisor. It permits you to browse and handle archives with out even unarchiving them within the first place! So you may preview, rename, edit, and delete recordsdata proper inside the app.
As well as, BetterZip is a breeze to zip and extract greater than 30 archive codecs, set up passwords, and even automate any archiving performance with AppleScript.
To extract a selected file from a gzip-compressed archive with BetterZip:
- Launch BetterZip
- Drag and drop your file onto the app
- Preview with House to launch Fast Look, if wanted
- Click on Extract within the high menu

As you may see, there’s no scarcity of how to create and open GZ recordsdata. For essentially the most primary performance, the default Archive Utility will suffice. For essentially the most superior customers, studying a number of Terminal instructions might be useful. However most individuals ought to in all probability strive Archiver as the best technique to unarchive recordsdata or BetterZip as essentially the most versatile archiving answer in the marketplace.
Better of all, Archiver and BetterZip are each obtainable to you completely free for seven days via the trial of Setapp, a platform with greater than 210 best-in-class Mac apps that cowl any app class attainable, from managing your every day duties (2Do) to creating textual content templates for repeating messages (Rocket Typist). Strive each Setapp app for gratis right this moment and obtain dozens of fantastic apps to skyrocket your productiveness.
FAQ
What’s a .gz file on Mac?
A .gz file, or GZIP file, is a compressed file format primarily used on UNIX techniques to cut back file measurement. It sometimes compresses a single file, not like ZIP archives, which may comprise a number of recordsdata. On macOS, .gz recordsdata are sometimes used for knowledge compression and software program distribution.
What software program do I have to unzip .gz recordsdata?
You need to use the built-in Archive Utility on macOS for primary extraction of .gz recordsdata. For extra superior options or help for extra codecs, contemplate third-party apps like Archiver and BetterZip. These functions present a extra user-friendly interface and additional performance.
Does tar.gz work on Mac?
Sure, this format makes use of TAR to bundle a number of recordsdata right into a single archive after which applies GZIP compression. You possibly can extract .tar.gz recordsdata utilizing Terminal instructions like tar -xf file.tar.gz or via third-party instruments akin to Archiver and BetterZip.
How can I open a .gz file without spending a dime?
You possibly can open .gz recordsdata without spending a dime utilizing macOS’s built-in Archive Utility. Merely double-click the .gz file and select Open With > Archive Utility. Moreover, use third-party apps like Archiver to extract .gz recordsdata simply.