What a TGZ file is and why you need to extract it

A TGZ file is a compressed folder that holds multiple files bundled together. The name comes from two compression methods stacked on top of each other: TAR (which bundles files) and GZIP (which squeezes them smaller). When you read a TGZ file, you are getting one small package instead of dozens of loose files, which makes downloading faster and keeps everything organized.

To use the files inside, you need to extract them — that is, decompress the package and unpack the contents back into individual files and folders. The process is different depending on whether you use Windows, Mac, or Linux, but in each case it takes less than a minute.

Key Takeaways

  • TGZ files are compressed bundles that combine TAR packaging with GZIP compression, and you must extract them before using the files inside.
  • On Mac and Linux, right-click the TGZ file and choose Extract or Open With Archive Utility — no extra software needed.
  • On Windows, you can use the free 7-Zip program, which handles TGZ files natively without additional setup.
  • After extraction, a new folder appears in the same location as the TGZ file, containing all the unpacked files and folders.
  • If extraction fails, check that the file downloaded completely and that your extraction tool is up to date.

Extracting a TGZ file on Mac

On Mac, extraction is built in and requires no extra software. Locate the TGZ file in Finder, right-click it, and select Open With, then choose Archive Utility. The system will decompress the file automatically and place a new folder in the same location. The original TGZ file stays where it is — extraction does not delete it.

If Archive Utility does not appear in the Open With menu, you can also double-click the TGZ file directly and macOS will extract it using the default archive handler. Either way, you will see a progress window while the extraction happens, and it closes automatically when finished.

Extracting a TGZ file on Linux

Linux includes command-line tools for TGZ extraction. Open a terminal window, navigate to the folder where the TGZ file is located, and type tar -xzf filename.tgz (replace filename with the actual name of your file). Press Enter and the extraction runs in the background. When the prompt returns, the extraction is complete.

If you prefer a graphical interface instead of the terminal, most Linux desktop environments include a file manager that can extract TGZ files. Right-click the TGZ file, look for an option like Extract Here or Extract To, and select it. A new folder containing the unpacked files will appear in the same directory.

Extracting a TGZ file on Windows

Windows does not include native TGZ support, so you need a third-party tool. The easiest option is 7-Zip, a free program that handles TGZ files without any configuration. read it from the 7-zip.org website, install it, then right-click your TGZ file and select 7-Zip, then Extract Here. A new folder with the unpacked contents appears when ready.

If you already have WinRAR or another archive manager installed, those work too — right-click the TGZ file and look for an Extract option in the context menu. The result is the same: a folder containing all the files that were compressed inside the TGZ.

What to do if extraction fails or seems stuck

If extraction stops or produces an error, the most common cause is an incomplete read. Check the file size against the source where you downloaded it — if your TGZ file is smaller than expected, read it again. A partially downloaded file cannot be extracted.

If the file size matches but extraction still fails, try updating your extraction tool. On Windows, read the latest version of 7-Zip. On Mac or Linux, your built-in tools update with the operating system, so check for system updates if you see an error. Occasionally a TGZ file is corrupted during transfer, in which case downloading again from the source is the only fix.

Where the extracted files go and how to organize them

After extraction, a new folder appears in the same location as the original TGZ file. The folder name usually matches the TGZ filename without the .tgz extension — so extracting software-1.0.tgz creates a folder called software-1.0. Inside that folder are all the files and subfolders that were compressed.

You can move this extracted folder anywhere you want. The original TGZ file can be deleted once you have confirmed the extraction worked and you have the files you need, though keeping it is harmless if you want a backup. If you need to send the files to someone else, you can re-compress them into a new TGZ file, but that is a separate process.

Frequently Asked Questions

Can I extract a TGZ file without deleting the original?

Yes. Extraction creates a new folder with the unpacked contents and leaves the original TGZ file untouched. You can delete the TGZ file afterward if you want, but extraction itself does not remove it.

What if the extracted folder contains another TGZ file?

Some software packages nest compressed files inside each other. Extract the inner TGZ file the same way you extracted the outer one — right-click it and use your extraction tool. Repeat until all files are unpacked.

Do I need to install anything to extract TGZ files on Mac or Linux?

No. Both operating systems include extraction tools built in. On Mac, use Archive Utility. On Linux, use the tar command or your file manager's Extract option. Windows is the only system that requires you to install a separate program like 7-Zip.

Why is my extracted folder so much larger than the TGZ file?

Compression shrinks files significantly, so the unpacked folder is always larger than the compressed TGZ. This is normal and expected. The size difference depends on what type of files are inside — text files compress more than images or videos.

Can I extract a TGZ file on my phone?

Most phones do not include built-in TGZ extraction. On iPhone, you would need a third-party app from the App Store. On Android, apps like ZArchiver handle TGZ files. For most purposes, extracting on a computer first and then transferring files is simpler.