Skip to content
Inside a grand train station hall with arched windows
Back to blog
Explained

What is a TAR or TAR.GZ file and how to open it

Someone sent you a file ending in .tar.gz or .tgz and you do not know what to do with it. Here is what it is and how to open it on Windows, Mac and Linux.

Eric Rada · Founder · · 3 min read

In short

TAR is short for tape archive. It was made to put many files and folders into one single file. The bundle is often called a tarball.

TAR does not make files smaller. For that, another tool is used on top. When the bundle is compressed with gzip, you get a file that ends in .tar.gz or .tgz.

What TAR means

TAR comes from tape archive, because it was first built for magnetic tape. It collects files and their details, like names and folders, into one archive.

On its own it only bundles. A file called archive.tar is about as big as all the files inside it put together.

What the .gz part adds

gzip is a compression program. It uses an algorithm called Deflate and works on one file at a time. That is why the files are first put in a TAR, and then the TAR is compressed.

The result is named archive.tar.gz. The short form .tgz means exactly the same thing. You may also see .tar.bz2 or .tar.xz, which use other compression tools.

Open it on Windows

Windows 10 version 1803 and later include the tar command. Open a terminal in the folder, type tar -xf and the file name, and the files appear next to it.

If you prefer clicks, a free app like 7-Zip can open it. Many people have to open it twice, once for the .gz and once for the .tar inside.

Open it on Mac and Linux

On a Mac you can usually double click the file and it unpacks into a folder. The tar command is also built in, so the same command from the terminal works.

Most Linux systems use GNU tar. The command tar -zxf and the file name unpacks a .tar.gz.

TAR.GZ or ZIP

Both do the same job for you, many files in one. ZIP compresses each file on its own and opens with a double click on most computers. TAR.GZ bundles first and compresses after, and it is more common on Linux.

If you are the one sending, ZIP is the easier choice for people who are not technical. If the receiver asked for a TAR.GZ, send exactly that.

Sending a TAR.GZ to someone

Email and chat apps often block or limit archives, so a big .tar.gz may not arrive. Do not unpack it and send the files one by one, you may lose folders and names.

Put the archive in a Room. The other person opens one link in the browser, with no account, and downloads the file as it is. Nothing is compressed or converted again.

Never compressed or converted, one link, no account needed. Free up to 10 GB.

Send the archive without changing it →

Questions

Does TAR make a file smaller?

No. TAR only bundles files. The compression comes from gzip, which gives you .tar.gz.

Is .tgz the same as .tar.gz?

Yes. It is just a shorter way to write the same thing.

Can Windows open a TAR.GZ without extra software?

Windows 10 version 1803 and later include the tar command, so yes, from the terminal.

Should I send TAR.GZ or ZIP?

ZIP is easier for most people. Use TAR.GZ when the receiver asks for it.

One link. Everyone’s photos.
Free up to 10 GB. Guests never need an account.
Create a Room