Initializing... drag & drop files here
Supports: ZIP
.tgz, or Individual Archives to produce one .tgz per input ZIP (the default for archive-to-archive jobs). The defaults match a typical tar -czf run..tgz — byte-for-byte identical to a .tar.gz produced by GNU tar with gzip. If you need the longer extension explicitly, use the sibling ZIP to TAR.GZ page; the file is otherwise the same.tar -xzf on any Linux, macOS, or WSL system.ZIP is the lingua franca of Windows and consumer file sharing — it ships in Windows Explorer, Finder, and every email client. TGZ (also written .tar.gz) is the lingua franca of Unix software distribution: it is the format Linux source releases, npm package tarballs, Homebrew bottles, and Docker image layers all rely on. The two formats compress reasonably similarly (DEFLATE vs gzip both descend from the LZ77 family) but they package metadata very differently, and that's why a conversion step matters when you cross the Windows/Unix boundary.
tar -xzf release.tgz. Handing them a ZIP forces an extra unzip dependency that minimal container images often lack.npm pack emits a <name>-<version>.tgz tarball; if a colleague sent you a ZIP of a package, converting to .tgz lets npm install ./pkg.tgz work without re-archiving by hand..tar.gz/.tgz. Converting a ZIP release to TGZ aligns with ./configure && make && make install muscle memory.| Property | ZIP | TGZ (tar.gz) |
|---|---|---|
| Container | ZIP central directory | POSIX tar (ustar/pax) |
| Compression | DEFLATE per file | gzip over the whole tar stream |
| Compression default | DEFLATE level 6 (most tools) | gzip level 6 (gzip(1) default) |
| Random access | Yes — central directory at end | No — must stream-decompress to reach a file |
| Preserves Unix mode/owner | Partial; varies by tool | Yes (uid, gid, mode, mtime) |
| Preserves symlinks | Limited / tool-dependent | Yes |
| Built-in OS support | Windows, macOS, most Linux GUIs | Linux, macOS, WSL native; Windows 11 added native tar.gz support in 2023 |
| Typical use | Cross-platform sharing, Office docs (DOCX/XLSX) | Linux source releases, npm tarballs, Docker layers |
| Encryption | ZipCrypto (weak) and AES-256 in ZIP 6.3 | None built in (use gpg or age separately) |
| Filename length | 65,535 bytes | 100 bytes (ustar) or unlimited (pax) |
.tgz vs .tar.gz — Are They Different?| Aspect | .tgz |
.tar.gz |
|---|---|---|
| File contents | Identical (tar archive piped through gzip) | Identical (tar archive piped through gzip) |
| Origin | 8.3 filename shorthand from MS-DOS / FAT era | Modern long-filename convention |
| Tool support | Recognized by tar, file(1), most extractors | Recognized by tar, file(1), most extractors |
| When to prefer | Cross-platform compatibility, shorter URLs, npm convention | Pipelines that read the double extension to detect compression |
The two are interchangeable: rename archive.tgz to archive.tar.gz and every Unix tool will still extract it. The dual naming is a vestige of the FAT 8.3 filename limit; today the choice is purely cosmetic.
.tgz and .tar.gz actually the same file?Yes. Both are a tar archive that has been gzip-compressed in a single step (tar -czf). The two extensions describe the exact same byte layout — the magic bytes start with the gzip header 1F 8B, and inside is a standard POSIX tar stream. You can rename one to the other and extraction tools won't notice. The split exists only because early MS-DOS and Windows filesystems limited extensions to three characters, so .tar.gz was contracted to .tgz.
Renaming doesn't change the container format — the bytes of a ZIP are not a tar stream, so renaming file.zip to file.tgz produces a corrupt file that tar will refuse to open. Conversion actually unpacks the ZIP, repacks the contents as a tar archive, then gzip-compresses the result. Only a real conversion produces a tarball Unix tools accept.
The tar container preserves owner, group, mode bits, and modification time. However, ZIP files created on Windows often don't store a Unix mode in the first place, so when we convert we fall back to sensible defaults (typically 0644 for files, 0755 for directories). If the original ZIP was made on macOS or Linux with a tool that wrote external file attributes, those Unix permissions are read and copied to the tar entry. The executable bit specifically is preserved when present in the ZIP's external attributes.
Often yes for archives with many small, similar files (source code, config, JSON, logs) because gzip compresses across file boundaries while ZIP compresses each file independently. For archives of already-compressed media (JPEG, MP4, MP3, PDF) the difference is marginal — both will produce a file roughly the size of the originals plus a few percent overhead. Don't expect dramatic savings on photo or video collections.
The output uses gzip's default compression level, which is -6 per the gzip(1) man page — a balance of speed and ratio used by tar -czf, gzip with no flags, and most distro packaging scripts. This matches what you'd get on a stock Linux system, so the resulting .tgz is interchangeable with one produced by tar -czf archive.tgz dir/ locally.
Yes. Upload all your ZIPs and pick Single Archive under "Combine?" — every file across every input ZIP is gathered into one tar stream and gzip-compressed together. Pick Individual Archives instead if you want one .tgz per input ZIP (useful when the originals represent distinct projects).
Windows 11 added native tar/tar.gz support via the built-in tar.exe in 2023, so tar -xzf archive.tgz works in PowerShell or Command Prompt out of the box. On older Windows, use 7-Zip, WinRAR, or PeaZip — all extract .tgz natively. WSL gives you the full GNU tar.
No — and this is intentional. ZIP supports password protection (ZipCrypto or AES-256), but the .tgz format itself has no built-in encryption. If your input ZIP is encrypted we cannot read it without the password. For an encrypted Unix-friendly equivalent, convert to plain TGZ first, then run gpg --symmetric archive.tgz or age -p over the result.
.tar.gz vs .tar.bz2 vs .tar.xz?Pick TGZ for the broadest compatibility and fastest extraction — every Unix system has gzip. Pick TAR.BZ2 for ~10–15% better compression at the cost of slower compress/decompress speed. Pick TAR.XZ for the smallest size on text-heavy archives, with noticeably slower compression but extraction speed close to gzip on modern CPUs. Most Linux distros now ship sources as .tar.xz; npm and Homebrew still default to .tgz.
Use the reverse page — TGZ to ZIP — to repack the tarball into a ZIP container. Note that the round trip ZIP → TGZ → ZIP isn't bit-identical because the two containers store metadata differently, but the file contents will be intact.