Skip to content
Aback ZIP

Formats · 10 min read · Updated

Archive Formats Explained: ZIP, TAR, 7z and More

A clear map of archive and compression formats: what a container does, how ZIP, TAR, 7z and RAR differ, and where gzip, bzip2, xz and Zstandard fit.

An archive format bundles many files into one; a compression format shrinks bytes. ZIP and 7z are archives that also compress. TAR is an archive that usually does not, and gzip, bzip2, xz and Zstandard are compressors typically applied to TAR. Keeping those ideas separate makes every file extension easier to understand.

Containers and compressors are different things

A container records a list of files with names, sizes, timestamps and other metadata, then stores their bytes in one stream. A compressor transforms bytes so they take less space, using an algorithm that can be reversed later. Many formats do both jobs, but they are conceptually distinct.

FormatContainerCompressionExtension you usually see
ZIPYesBuilt in, usually Deflate.zip
7zYesBuilt in, often LZMA or LZMA2.7z
RARYesBuilt in, RAR codecs.rar
TARYesNone by itself.tar
TAR + gzipTARgzip applied to the whole TAR.tar.gz, .tgz
TAR + xzTARxz applied to the whole TAR.tar.xz, .txz
TAR + ZstandardTARZstandard applied to the whole TAR.tar.zst
gzip aloneNo file listDEFLATE with a small header.gz
xz aloneNo file listLZMA2 with a container header.xz

That table explains the most common confusion: .tar.gz is two formats stacked together, while .zip is one format doing both jobs. It also explains why a .gz file has no useful list of file names inside it beyond a single stored name in its header.

ZIP: the exchange format

ZIP is documented in PKWARE's APPNOTE and is supported natively by Windows, macOS and most Linux desktops. Each entry has its own header and can use its own compression method. A central directory at the end of the file lists every entry, which is why an archive can be inspected without decompressing it.

  • Strengths: universal compatibility, per-entry metadata, optional AES password protection, ZIP64 for large files and high entry counts.
  • Weaknesses: no solid compression by default, limited preservation of Unix permissions compared with TAR, and legacy filename encodings that can produce garbled names.
  • Typical use: sending folders, distributing downloads, packaging files for people you do not know.

Aback ZIP's native format is ZIP, so Create ZIP and Extract ZIP work directly with it. The what is a ZIP file guide describes the structure in plain language.

TAR: the packaging format

TAR comes from tape archives. It stores a sequence of file headers and data blocks, preserving Unix features such as permissions, ownership and symbolic links. On its own, TAR does not compress: a .tar file is usually about the same size as the files inside it plus padding.

In practice TAR is paired with a compressor. .tar.gz uses gzip, .tar.bz2 uses bzip2, .tar.xz uses xz, and .tar.zst uses Zstandard. That layering is why a tool must support both the TAR container and the outer compressor to open one of these files. Aback ZIP's Extract TAR handles plain and compressed TAR, and its creator writes TAR and TAR.GZ.

TAR is the usual choice for source releases, server backups and anything where Unix metadata matters. It is less convenient for a mixed audience, since Windows needs extra software for TAR-based files. The ZIP versus TAR guide compares the two in detail.

Single-file compressors: gzip, bzip2, xz and Zstandard

These formats compress one stream. They keep little or no information about multiple file names, which is why they are normally wrapped around a TAR archive when several files are involved.

  • gzip uses DEFLATE and stores a CRC-32. It is defined in RFC 1952, is fast and is supported almost everywhere. It is also the format used inside HTTP compression and many log-rotation workflows.
  • bzip2 uses the Burrows-Wheeler transform and generally compresses better than gzip on text, at a cost in speed and memory.
  • xz uses LZMA2, often achieves strong compression ratios, and stores integrity checks. The format is documented by the XZ project. Decoder memory depends on the dictionary size.
  • Zstandard is designed for fast compression with a wide speed-to-ratio range. It supports frames, optional checksums and dictionaries, and is specified in RFC 8478.

The detailed comparison of Zstandard, gzip and xz covers the trade-offs. In Aback ZIP, GZIP Compress & Extract can both encode and decode gzip, while XZ, BZ2 & ZST Extractor decodes the other streams. Creating new .xz, .bz2 or .zst files is not supported.

7z and RAR

7z and RAR are full archive formats with their own compression methods. Both support solid compression, where several files are compressed as one stream to exploit shared patterns, and both have AES-based encryption. 7z has published format documentation from the 7-Zip project; RAR is proprietary to RARLAB.

The trade-off is compatibility. ZIP opens almost everywhere; 7z and RAR need a capable application on the receiving machine. That is why many workflows use 7z or RAR for storage and ZIP for exchange. Aback ZIP does not create or extract either format, but it can identify them so that the limitation is clear.

For a closer look at those differences, read the format-level and application-level comparisons elsewhere on this blog.

Choosing a format for the job

JobGood defaultReason
Send a folder to someoneZIPOpens natively on Windows and macOS
Publish a source releaseTAR.GZPreserves Unix metadata and is a familiar ecosystem format
Compress a single log fileGZIPFast, simple, widely supported
Long-term archive of text-heavy dataTAR.XZ or 7zStrong compression; keep a hash alongside it
Fast compression in an applicationZstandardTunable speed with good ratios
Receive a file from a Windows colleagueWhatever they sentConvert to ZIP if your tools need ZIP

The format decision is rarely about which method is theoretically best. It is about who needs to open the result, what metadata must survive and how the file will be verified later.

What browsers can realistically handle

Browser tools work well with ZIP and TAR because the structures are well documented and can be parsed locally. Single-file compressors are also practical to decode. Some ZIP entries use less common methods such as Deflate64 or PPMd: Aback ZIP lists and copies those entries but does not decompress them. Strong PKWARE encryption, RAR and 7z are outside its scope.

A format being listed in a tool does not mean every feature of that format is supported. Check the support matrix for the exact operations you need. This matters most for archives produced by another operating system or an unfamiliar application: the extension alone cannot tell you which compression methods, extra fields or encryption scheme are inside. A quick inspection that reads only the index usually reveals those details, and it is much cheaper than attempting a full extraction that cannot succeed.

Tools for this

Frequently asked questions

An archive bundles several files and their metadata into one stream. A compressed file has had its bytes transformed to take less space. ZIP and 7z do both; TAR only bundles, and gzip only compresses.

More posts