How to extract a .tar file on Windows: a complete guide

Last update: 17/11/2025
Author Isaac
  • Tar aggregates and gzip compresses: .tar.gz offers a better ratio than .zip in many cases.
  • En Windows You can use tar in the console, 7-Zip/PeaZip, or native support for Windows 11.
  • Typical errors are resolved by listing the contents (-t) and using -z when reading .tar.gz.
  • Online converters (ezyZip, Convertio) convert to .zip without installing anything.

Unzip tar file on Windows

Have you downloaded a package with the .tar or .tar.gz extension and you're on Windows and you're not sure how to open it? Don't worry, it's more common than you think. These files are common in the UNIX and free software world, but nowadays they appear in all kinds of environments, including Windows PCs.

Before getting bogged down with tools, commands , or converters, it's helpful to have a basic understanding of what you're opening. .tar is an archive format that groups files, and .tar.gz is that same file compressed with gzip . In this article, I'll explain, step by step and with several methods, how to decompress .tar, .tar.gz, and their variants on Windows, along with tips , shortcuts, and how to resolve the most common errors.

What are .tar, .gz and .tar.gz (and how do they differ from .zip)

A .tar file (Tape Archive) is essentially a container that packages multiple files and folders into a single file, preserving structure, permissions, and dates. It doesn't compress itself , it only groups them; hence, its size can be similar to the sum of the original files.

When that .tar file is compressed with a utility like gzip , you get a .tar.gz (or its short form .tgz). This format reduces the size using lossless compression algorithms, which is why it's the most common format used in software distributions and backups.

And what about .zip? ZIP compresses each file separately within the container , while .tar.gz compresses the entire set as a single block. This subtle difference has two practical effects: ZIP is more accessible (you can read a file without decompressing everything), while .tar.gz usually achieves a better compression ratio when the files in the set share similar patterns.

Besides gzip, there are other utilities: bzip2 (.tar.bz2/.tbz2), xz (.tar.xz/.txz), lzip (.tar.lz), lzma (.tar.lzma), compress (.tar.Z) , and even Brotli (.tar.br) or zstd (.tar.zst). The .tar filename acts as the base , and the second extension indicates the algorithm.

“There is a solution: unity, propaganda, and action.” — Unite, Skalariak

Real advantages of TAR and why you'll see it in Windows

The TAR format was standardized by POSIX (POSIX.1-1998 and POSIX.1-2001) and is deeply ingrained in UNIX and Linux . Its greatest strength is its faithful preservation of metadata (permissions, ownership, timestamps), which is crucial when distributing software or moving entire directories.

Their appearance in Windows is not surprising: we're moving increasingly larger packages (from source code to multimedia), and formats like .tar.gz help send everything in one piece with excellent compression. Size matters , especially when uploading/downloading to servers or cloud storage.

In case you're wondering, not every .gz file is a .tar file . Gzip is a generic compressor: it can compress a single file of any type. Every .tar.gz file contains a .tar file inside , but a standalone .gz file could be, for example, a backup .sql.gz file.

.tar vs .zip: when to use one or the other

ZIP : easy access to individual files, broad native support on Windows and macOS, and manageable for non-technical users. Ideal for everyday file sharing and when you don't need UNIX metadata.

  How to create shortcuts and macros in Windows with Keypirinha, Launchy and mechanical keyboards

.tar.gz : packages first and compresses the entire set; it compresses better when there are similarities between files , maintains permissions/ownership, and is the de facto standard in UNIX environments. Perfect for software, backups, and deployments.

In summary: ZIP is more accessible and .tar.gz is more efficient . It's not that one is universally "better": it depends on your use case.

Method 1: Unzip .tar and .tar.gz files on Windows using the command line (tar)

Since Windows 10, the system includes a tar utility accessible from the Command Prompt or PowerShell . It's very similar to the Linux version, so if you've used tar in UNIX, you'll feel right at home.

Open the command prompt : search for "cmd" or "Command Prompt," and if necessary, run it as administrator. Navigate to the file's folder using the `cd` command, or use full paths in the command.

Extract to current directory (shows progress):

tar -xvzf filename.tar.gz

To extract specifying both source and destination in a single command, use -C to change the output folder:

tar -xvzf C:\RUTA\ORIGEN\archivo.tar.gz -C C:\RUTA\DESTINO

The syntax is analogous to Linux: -x (extract), -v (verbose), -z (gzip), and -f (archive) . If the file is not compressed (only .tar), omit the z: tar -xvf archive.tar.

Method 2: Open .tar and .tar.gz files with free tools on Windows

If you prefer a graphical interface or work with these formats frequently, there are several free and highly reliable utilities for Windows. They will save you time and allow you to compress and decompress with just a couple of clicks.

7-Zip: fast, open, and lightweight

7-Zip is a classic. It supports .tar, .gz, .tgz, .tar.gz, and many other formats. To extract a .tar.gz file, you'll typically see two steps : first, decompress the .gz layer (you'll get a .tar file), and then extract the .tar file to obtain the folders and files.

From Explorer: right-click > 7-Zip > Extract here or “Extract to…”. If you only want to inspect the contents, choose “Open as archive” to browse inside without extracting yet.

To compress, you can create .tar and .gz files directly. If you're looking for a .tar.gz file, first generate the .tar file and then compress it as a .gz file using 7-Zip.

PeaZip: supports almost 200 formats

PeaZip stands out for its compatibility with a huge variety of formats . To archive to TAR or compress to GZip, drag the files to the program window or use the "Add" button. Choose GZip for .tar.gz or TAR if you only want to bundle without compressing.

To extract, simply right-click on the compressed file > PeaZip > Extract here , or "Extract…" to choose the destination path. You can also open it as a file to preview its contents.

WinRAR and WinZip: veterans with advanced features

WinRAR and WinZip open .tar, .gz, .tgz, and many other file types. In WinRAR, check the Integration tab under Options > Settings to associate file extensions. They allow encryption, volume splitting , and other useful features.

Beware of WinRAR: it's shareware . You can use it for free during a trial period, but then it requires a license . If you only need it occasionally, it might be sufficient.

B1 Free Archiver: a free and multi-platform alternative

B1 Free Archiver handles formats such as ZIP, RAR, 7Z, GZIP, TGZ, TAR, and many more. It runs smoothly on Windows and is also available for Linux and macOS. It includes support for password-protected archives and AES-256 encryption.

  When does Windows 11 support end? Dates and complete guide

Windows 11 and native support for more formats

With Windows 11 (especially from version 24H2 onwards), the system can natively compress and decompress most common formats such as .tar, .7z, .rar, and .gz using the Explorer right-click function.

There is one major limitation: it doesn't handle encrypted files . If you need to create or open encrypted containers, use 7-Zip or WinRAR , which do offer that capability.

If you're using Windows 10, you can still work without installing anything extra by using `tar` from the command line . You also have 7-Zip or PeaZip as free and established alternatives.

Method 3: Convert .tar.gz to .zip with online tools

When you don't want to install anything or struggle with the console, you can convert a .tar.gz file to .zip using your browser . Keep in mind the file size, your internet connection, and the privacy of your data.

easyZip

ezyZip runs in your browser as an HTML5/JavaScript application and does not upload files to external servers. You can open .tar and .tar.gz files and convert them to .zip for manipulation with any common tool.

Convertio

With Convertio you can quickly convert .tgz/.tar.gz files to .zip from local files, Google Drive, or Dropbox. They support files up to 100 MB without registration ; the files are stored temporarily (24 hours) and you can delete them manually.

Izarc (online)

Izarc offers an online utility for compressing and decompressing many formats (TAR, ZIP, RAR, CAB, etc.). Easy to use for beginners, it allows you to repair damaged files and change formats without complications.

extract.me

Extract.me is a comprehensive website that supports dozens of formats (7z, rar, tar, gz, iso, dmg, cab, zipx, and more). It allows drag and drop , as well as importing from Google Drive, Dropbox, or URLs.

How to open tar.gz files in Windows

Quick guide to commands: Linux and macOS (also useful as a reference)

If you work with Linux/macOS environments or simply want to understand the commands, here are the essentials. The tar utility usually comes pre-installed and automatically detects the compression type.

Extract .tar.gz to current directory

This is the most commonly used basic command. It also works with .tar.bz2 or .tar.xz files , automatically changing the detected algorithm.

tar -xf archivo.tar.gz

If you want to see what is being extracted, add -v (verbous mode):

tar -xvf archivo.tar.gz

Extract to another folder

To extract to a specific path, -C changes the destination directory :

tar -xf archivo.tar.gz -C /ruta/de/destino

Extract only some files or directories

Specify the exact filenames (case-sensitive) after the filename. You can use wildcards with `--wildcards` if needed.

tar -xf archivo.tar.gz fichero1 directorio1

tar -xf archivo.tar.gz --wildcards '*.txt'

List the contents of a .tar.gz file

Viewing the contents without extracting is very useful for avoiding naming errors. -t lists, -v adds details (permissions, sizes, dates).

tar -tf archivo.tar.gz

tar -tvf archivo.tar.gz

Unzip by reading from stdin (e.g., download with wget)

When chaining download and extraction in a single pipe, add -z for gzip if you're dealing with .tar.gz:

wget -c https://ejemplo.com/archivo.tar.gz -O - | sudo tar -xz

Compress and decompress with gzip

gzip is included in almost all Linux distributions. Compressing a .tar file and extracting a .tar.gz file is straightforward:

gzip archivo.tar        # crea archivo.tar.gz
gzip -d archivo.tar.gz  # deja archivo.tar

If you want to keep the original when compressing, use -k, or redirect the output with -c to create a different name:

gzip -k archivo.tar

gzip -c archivo.tar > nuevo-archivo.tar.gz

You can also compress/decompress multiple files at once or entire directories recursively:

gzip fichero1 fichero2

gzip -d fichero1.gz fichero2.gz

gzip -r carpeta

gzip -dr carpeta

Typical errors and how to solve them

Working via the command line is very efficient, but a single misplaced character can break the process. These are the most common issues and how to fix them.

  How to free up disk space in Linux step by step

“tar: NAME: Not found in archive”

You are trying to extract a specific file, but the name does not match (pay attention to uppercase/lowercase) or it simply does not exist within the tar file.

tar -xf archivo.tar.gz README

tar: README: Not found in archive
 tar: Exiting with failure status due to previous errors

Solution: List the contents with `tar -tf file.tar.gz`, copy the name exactly as it appears, and run the command again.

“tar: Archive is compressed. Use -z option”

You have read the compressed file via stdin or you are opening a .tar.gz without indicating that it is compressed with gzip.

wget -c https://ejemplo.com/archivo.tar.gz -O - | sudo tar -x

tar: Archive is compressed. Use -z option
 tar: Error is not recoverable: exiting now

Solution: add -z (gzip), or use -j for bzip2, -J for xz, as appropriate.

“gzip: stdin: not in gzip format”

The file claims to be a .gz extension, but it is not actually compressed with gzip (manually renamed, corrupt download...).

gzip: stdin: not in gzip format
 tar: Child returned status 1
 tar: Error exit delayed from previous errors

Solution: Try treating it like a normal .tar file (tar -xf file.tar). If that fails, find another copy of the file that is properly compressed.

“tar: Unrecognized archive format”

The file is not a genuine tar file even though it has the extension. It may be corrupted or of another type.

tar: Unrecognized archive format
 tar: Error exit delayed from previous errors

Solution: Try gunzip if necessary, check with tar -tvf to see if a specific culprit appears, or better yet, download the file again from its source.

Isaac

Isaac

Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.