← All comparisons

gzip vs Zstandard

A side-by-side feature comparison.

Summary

gzip has been the universal Unix compressor since 1992. Zstandard, from 2016, beats it on every axis at moderate levels — speed, ratio, and tunability — but lacks gzip's thirty years of universal support.

Bottom line: Zstandard for new pipelines. gzip when you cannot guarantee zstd is installed.

Feature comparison

Feature GZIP Zstandard
Algorithm DEFLATE Zstandard
Speed Fast Faster (especially decompression)
Ratio Baseline 15-25% smaller at default
HTTP support Universal Modern browsers only
Levels 1-9 1-22
Dictionary mode No Yes — huge wins on tiny similar files

About GZIP

GZIP is a single-file compressor based on DEFLATE, written by Jean-loup Gailly and Mark Adler in 1992 as a free replacement for the patented Unix compress utility. It compresses one file at a time and is almost always paired with TAR (.tar.gz) when you need to bundle a directory. GZIP is the default Content-Encoding of the web — every browser and HTTP client speaks it natively.

Read the full GZIP guide →

About Zstandard

Zstandard, or zstd, is a modern compression algorithm released by Facebook in 2016. It targets a wide range of compression levels (1-22), giving developers the choice between gzip-class speed and xz-class ratios from a single tool. Zstd has become the default compression for Arch Linux packages, Btrfs, ZFS, and the Linux kernel.

Read the full Zstandard guide →

More comparisons