Skip to content
Aback ZIP

How-to · 6 min read · Updated

Convert TAR.GZ to ZIP

Convert .tar.gz, .tgz, .tar.bz2, .tar.xz or .tar.zst archives into ordinary ZIP files that open on Windows and macOS, with folders and timestamps kept.

A .tar.gz file is a TAR archive wrapped in GZIP compression, and Windows and macOS cannot open it as natively as they open a ZIP. TAR to ZIP converts it in your browser, keeping folders, modification times, permissions and symbolic links. If you only need to look inside, Extract TAR opens the original without converting anything, and the file is never uploaded.

What the file name tells you

TAR is an archive format: it gathers files and folders into one stream but does not compress them by itself. The suffix after .tar names the compression applied to that stream. .tar.gz and .tgz use GZIP, .tar.bz2 uses BZIP2, .tar.xz uses XZ, and .tar.zst uses Zstandard. A plain .tar file is uncompressed.

File nameCompressionCan TAR to ZIP read it?
.tarNoneYes
.tar.gz, .tgzGZIPYes
.tar.bz2BZIP2Yes
.tar.xzXZYes, except XZ files that use BCJ executable filters
.tar.zstZstandardYes, except streams that need a dictionary; checksums are not verified
.gz on a single file, not an archiveGZIPNo; use GZIP Compress & Extract instead

Aback ZIP can decompress these TAR filters but cannot create .xz, .bz2 or .zst files. Conversion always produces a standard ZIP.

Convert in your browser, step by step

  1. Open the TAR to ZIP tool and choose your .tar, .tar.gz, .tgz, .tar.bz2, .tar.xz or .tar.zst file. Drag and drop works too.
  2. Check the list of entries. Folders, file times, permissions and symbolic links are read from the TAR headers and carried into the result.
  3. Start the conversion. Decompression and ZIP writing happen in a browser Web Worker, so the page stays responsive and you can cancel.
  4. Download the new ZIP. It opens natively in Windows File Explorer, macOS Finder and Linux file managers.

Nothing is uploaded at any step. The original TAR file is read-only; the ZIP is a new file. If a source archive has an unsupported filter, the tool reports that instead of silently dropping entries.

Convert from the command line

On Linux and macOS you can do the same job without installing a browser tool. The classic approach unpacks the TAR stream into a folder and zips that folder:

mkdir project
tar -xzf project.tar.gz -C project
cd project && zip -r ../project.zip .

On Windows 10 and 11, File Explorer can open .tar.gz directly: choose Extract All, then select the extracted folder, right-click and choose Compress to > ZIP File. For older Windows versions, 7-Zip handles both formats.

The command-line route preserves less metadata by default: Unix permissions and symbolic links survive in TAR but are not represented the same way in a Windows ZIP. If those details matter, the browser converter is the more conservative choice.

When conversion is the wrong move

  • You only want one file: open the archive with Extract TAR, pick the entry and download it directly. Repacking the whole archive wastes time.
  • You need to keep the TAR semantics: Unix permissions, device files and symlinks are native to TAR. A ZIP is a different model, so anything that depends on those details should stay in TAR.
  • The input is a single `.gz` file: that is just one compressed file, not an archive. Use the GZIP tool to decompress it.
  • The other direction: if you already have a ZIP and need a TAR, ZIP to TAR writes .tar or .tar.gz and uses standard pax headers for long and non-English names.

What to check after converting

  1. Compare the file count with the original listing. A different count usually means a folder was skipped or a filter failed.
  2. Spot-check a text file and a binary file by extracting them from the new ZIP.
  3. If the archive matters, run Test ZIP Integrity to verify every CRC-32 before you send it.

The result is an equivalent archive, not a byte-identical one. Entry order, timestamps and extra fields may differ even when the files are identical, because the container was rebuilt.

How this fits with ZIP and TAR

TAR and ZIP solve the same problem in different ways: TAR stores a stream of file headers and data, ZIP stores an index at the end so individual entries can be reached without reading everything. That is why ZIP is the better sharing format and TAR is the better packaging format on Unix. ZIP vs TAR covers the trade-off in more detail, and archive formats explained puts GZIP, XZ and Zstandard in context.

When a conversion goes wrong

Most failures come from the input, not the ZIP writer. Because the source is compressed, a truncated download can still look like a plausible file while its final blocks are missing. A careful converter reports the problem rather than writing a ZIP with silently absent files. TAR.GZ is also less forgiving than ZIP: it is one continuous stream, so damage near the start can make everything after it unreadable.

SymptomLikely reasonWhat to try
The tool reports an unsupported filterThe TAR uses XZ with BCJ filters or Zstandard with a dictionaryDecompress with the tool that created it, then convert the plain TAR
The entry list is shorter than expectedThe archive was cut short during transferDownload again and compare the byte count with the source
Names look garbledThe TAR used a legacy encoding instead of UTF-8Repair the names after conversion; TAR headers do not always declare a charset
Symbolic links turn into plain filesThe destination cannot represent links, or the ZIP consumer ignores themKeep the archive in TAR if Unix metadata matters
The ZIP opens but some files are emptyThe source really contained zero-byte entriesThis is expected; empty files stay empty
  1. Verify the source with tar -tzf archive.tar.gz on Linux or macOS, or open it in Extract TAR. If the listing fails there too, the file itself is damaged.
  2. Check the file size against the source. A TAR.GZ that stops early often still has a perfectly valid-looking header.
  3. If you control the source, try producing an uncompressed .tar first and convert that; it removes one layer where damage can hide.
  4. If conversion keeps failing, extract the entries you actually need and build a fresh ZIP with Create ZIP instead of trying to save the whole archive.

Conversion is also a good moment to notice files you did not expect. TAR is often used for software builds, and a release bundle may include object files, test fixtures or build scripts next to the documentation. Listing the entries first avoids carrying that baggage into the ZIP you share.

A converted archive is equivalent, not byte-identical. Entry order, timestamps and extra fields can change even when every file's contents match exactly.

Tools for this

Frequently asked questions

No. TAR.GZ is a TAR archive compressed with GZIP; ZIP is its own archive format with built-in compression and an index. They need different tools, which is why conversion is sometimes necessary.

More guides