ZipToolView zip files online — 100% private

How to open a tar.gz file

The fastest way to open a .tar.gz file (also .tgz) is in your browser: drop it onto ZipTool and the file tree appears instantly, with nothing installed and nothing uploaded. A .tar.gz is a compressed archive — two layers, tar and gzip, wrapped together — so opening (extracting) it means reversing both layers. On Linux and macOS that is built in; on Windows it usually needs a tool.

In ZipTool, drop the .tar.gz onto the page or paste a direct URL to it. Both layers are decoded entirely on your device — nothing is uploaded — and you can browse the contents, search by name, and preview text, images, audio, video, and PDFs without extracting anything to disk. For background on the format, see what is a tar.gz file. For the focused browser workflow, see extracting a tar.gz online.

Method 1 — open a tar.gz in your browser (no install, no upload)

This is the quickest path when you just want to see what is in a tarball, or preview a file inside it, without installing anything. Everything runs locally in the tab.

  • Go to ZipTool and drag the .tar.gz onto the page (or use the file picker, or paste a URL).
  • The file tree opens on the left. Search to jump to any entry by name.
  • Click a file to preview it inline — code with syntax highlighting, images, audio, video, and PDFs render in the viewer.
  • A single entry can be downloaded straight from the file tree without unpacking the whole archive.
  • Nothing is uploaded: close the tab and the data is gone. You can confirm it by opening a tar.gz and then turning off your internet — browsing and previewing keep working.

Method 2 — Linux and macOS: the tar command

tar.gz is native on Unix. Open a terminal in the folder holding the archive and extract the full tree with:

tar -xzf archive.tar.gz — the flags mean extract, gzip (decompress), file. The result appears in a folder beside the archive (add -C /target/dir to extract elsewhere). To only list contents — the terminal equivalent of a file tree — use tar -tzf archive.tar.gz. For a single file without unpacking everything, tar -xzf archive.tar.gz path/to/file pulls just that entry.

On macOS, double-clicking a .tar.gz in Finder also extracts it via Archive Utility, the same one-step flow as a ZIP. For browsing without extracting, use an in-browser viewer.

Method 3 — Windows: built-in tar, 7-Zip, or WinRAR

Windows 10 (build 17063+) ships a tar command (a BSD tar) that handles .tar.gz natively: open PowerShell or cmd and run tar -xzf archive.tar.gz, exactly like on Linux. No install needed.

For a GUI, 7-Zip and WinRAR both open tar.gz. 7-Zip usually takes two clicks — extract the gzip layer to get a .tar, then open that .tar — though recent versions handle it in one step. Right-click the file and choose 7-Zip → Extract here.

Method 4 — macOS GUI: Keka or The Unarchiver

macOS handles .tar.gz natively with Archive Utility (double-click), but it is basic. For better-behaved extraction — correct permissions, handling of .tar.xz and .tar.bz2 too, and large archives — install Keka or The Unarchiver (free, from the App Store) and set it as the default for tarballs.

If your tar.gz will not open

A few common causes, and what to do about them:

The file is actually a different tar-compression combo. .tar.xz and .tar.bz2 look similar but use different compressors (LZMA2 and bzip2). Modern tar auto-detects these with tar -xf archive.tar.xz (no z); older tools and basic viewers may not. Check the extension and use tar -xf or a capable tool like 7-Zip.

The download is incomplete or corrupt. A truncated tar.gz is missing the end of the gzip stream or the tar’s final blocks and fails to extract fully. Re-download it. gzip and tar have no recovery record, so a damaged file cannot be repaired — only re-fetched.

A path with absolute or .. segments. A crafted tarball can contain entry paths that escape the extract directory (the “tarball slip” attack, analogous to Zip Slip). Extract with tar -xf (modern tar strips leading / by default) or preview safely in a browser viewer that sanitises paths.

Privacy: where your tar.gz is processed

When you open a tar.gz in a terminal or desktop tool, the file is read from disk on your own machine — private by default. The same is true of the in-browser viewer: the archive is decoded inside your tab (gzip via the platform decompression stream, tar via a local parser), so the contents never travel to a server. There is no upload step, which is the whole point of doing it client-side.

That is a privacy improvement, not a security guarantee. Opening a tarball to inspect it is low-risk; running an executable you extracted from an untrusted source is not. Keep the same caution you would with any download, and see security and privacy for the fuller picture.

Frequently asked questions

How do I open a tar.gz file for free?

Open it in a browser with ZipTool — no install and no upload. On Linux and macOS, tar -xzf archive.tar.gz is built in. On Windows 10+, the built-in tar command and 7-Zip (free) both open tar.gz.

How do I extract a tar.gz on Windows?

On Windows 10 build 17063 or later, open PowerShell or cmd and run tar -xzf archive.tar.gz — it is built in. For a GUI, install 7-Zip or WinRAR and right-click → Extract. Or open the tar.gz in a browser with ZipTool to preview contents with no install and no upload.

How do I open a tar.gz file online without uploading it?

Use a client-side viewer like ZipTool. You drag the .tar.gz onto the page and both layers are decoded in your browser — gzip through the decompression stream, tar through a local parser — so the file never goes to a server. That is what makes it safe to inspect a tarball you do not fully trust.

What is the difference between tar -xzf and tar -xf?

tar -xzf tells tar the input is gzip-compressed (the z). tar -xf lets modern GNU/BSD tar auto-detect the compression, so it works for .tar.gz, .tar.xz, and .tar.bz2 without specifying. On very old tar versions, use z for gzip, j for bzip2, and J for xz explicitly.

How do I extract just one file from a tar.gz?

In a browser, open the tar.gz in ZipTool and preview the file inline, or download that single entry from the file tree. On the command line, tar -xzf archive.tar.gz path/to/file extracts only that entry (modern tar still decompresses the stream up to it, but writes out just the named file).