How to Open a GZ File on Any Device or Operating System

A .gz file is a compressed archive created using the GNU zip (gzip) format — one of the oldest and most widely used compression standards in computing. You'll encounter them most often when downloading software packages, log files, database backups, or data from Linux-based systems. Opening one isn't complicated, but the right approach depends on your operating system, the tools you already have installed, and what you're actually trying to do with the contents.

What Is a GZ File, Exactly?

Gzip compression works by reducing file size using the DEFLATE algorithm — the same algorithm behind ZIP files, though the formats themselves are different. A key distinction: gzip typically compresses a single file, not a folder. When you see a .tar.gz or .tgz file, that's a tarball — a TAR archive (which bundles multiple files) that has then been gzip-compressed on top. These are two separate operations layered together.

Understanding this matters because extracting a .gz file gives you the uncompressed version of that single file, while extracting a .tar.gz gives you an entire directory of files.

Opening GZ Files on Windows

Windows doesn't natively support .gz files in older versions, though Windows 11 has expanded built-in support for more archive formats. On most Windows systems, you'll rely on third-party tools.

Common options:

  • 7-Zip — Free, open-source, and widely trusted. Right-click the .gz file and choose Extract Here or Extract to [folder name].
  • WinRAR — Handles .gz and .tar.gz with a familiar interface.
  • PeaZip — Another free option with a clean UI and broad format support.

With any of these installed, the process is consistent: right-click the file, select the extraction option from the context menu, and choose a destination folder. For .tar.gz files, some tools extract in two steps — first removing the gzip layer to get the .tar, then extracting the TAR. Others handle both in a single operation.

🪟 On Windows 11, you can try right-clicking a .gz file and selecting Extract All directly, though third-party tools tend to offer more control and reliability for complex archives.

Opening GZ Files on macOS

macOS has solid built-in support for .gz files. Double-clicking a .gz file in Finder will typically launch Archive Utility and extract the contents automatically to the same folder.

For .tar.gz files, the same double-click approach usually works — macOS handles both layers in one step, depositing the extracted folder alongside the original archive.

If you need more control — preserving file permissions, extracting to a specific path, or handling unusual archive structures — the Terminal is the cleaner route: