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 name | Compression | Can TAR to ZIP read it? |
|---|---|---|
| .tar | None | Yes |
| .tar.gz, .tgz | GZIP | Yes |
| .tar.bz2 | BZIP2 | Yes |
| .tar.xz | XZ | Yes, except XZ files that use BCJ executable filters |
| .tar.zst | Zstandard | Yes, except streams that need a dictionary; checksums are not verified |
| .gz on a single file, not an archive | GZIP | No; 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
- Open the TAR to ZIP tool and choose your
.tar,.tar.gz,.tgz,.tar.bz2,.tar.xzor.tar.zstfile. Drag and drop works too. - Check the list of entries. Folders, file times, permissions and symbolic links are read from the TAR headers and carried into the result.
- Start the conversion. Decompression and ZIP writing happen in a browser Web Worker, so the page stays responsive and you can cancel.
- 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
.taror.tar.gzand uses standard pax headers for long and non-English names.
What to check after converting
- Compare the file count with the original listing. A different count usually means a folder was skipped or a filter failed.
- Spot-check a text file and a binary file by extracting them from the new ZIP.
- 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.
| Symptom | Likely reason | What to try |
|---|---|---|
| The tool reports an unsupported filter | The TAR uses XZ with BCJ filters or Zstandard with a dictionary | Decompress with the tool that created it, then convert the plain TAR |
| The entry list is shorter than expected | The archive was cut short during transfer | Download again and compare the byte count with the source |
| Names look garbled | The TAR used a legacy encoding instead of UTF-8 | Repair the names after conversion; TAR headers do not always declare a charset |
| Symbolic links turn into plain files | The destination cannot represent links, or the ZIP consumer ignores them | Keep the archive in TAR if Unix metadata matters |
| The ZIP opens but some files are empty | The source really contained zero-byte entries | This is expected; empty files stay empty |
- Verify the source with
tar -tzf archive.tar.gzon Linux or macOS, or open it in Extract TAR. If the listing fails there too, the file itself is damaged. - Check the file size against the source. A TAR.GZ that stops early often still has a perfectly valid-looking header.
- If you control the source, try producing an uncompressed
.tarfirst and convert that; it removes one layer where damage can hide. - 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.