Archive formats guide
Understand the difference between ZIP and TAR, when to use each, and how to convert between archive formats for Windows and Linux workflows.
| Format | Compression | OS support | Preserves permissions |
|---|---|---|---|
| ZIP | DEFLATE (per file) | Windows (native), macOS, Linux | No |
| TAR | None (archive only) | Linux, macOS (native) | Yes |
| TAR.GZ | GZIP (whole archive) | Linux, macOS (native) | Yes |
ZIP and TAR solve the same problem — bundling multiple files — but with different approaches. ZIP compresses each file individually using DEFLATE compression, then bundles them. TAR (Tape Archive) bundles files without compressing them, then optionally compresses the whole bundle (TAR.GZ, TAR.BZ2).
Use ZIP when: you're sharing files with Windows users (ZIP opens with a double-click in Windows 10/11), you need random access to individual files without decompressing the whole archive, or you're preparing downloads for general audiences.
Use TAR when: you're working on Linux or macOS servers, you need to preserve Unix file permissions and symlinks (which ZIP cannot store), you're creating Docker build contexts or deployment packages, or you're following the convention of the open-source community where TAR.GZ is standard.
The key distinction: TAR preserves Unix metadata (permissions, ownership, symlinks) that matter for server deployments. ZIP doesn't — but ZIP opens natively on Windows without any additional software.
Ready to convert?
Start converting your files for free — no signup required.
transform Convert a file