What is zlib?
zlib is made by Jean-loup Gailly and Mark Adler. A cross-platform C library for lossless data compression and decompression using the DEFLATE algorithm, providing APIs for in-memory buffers and streaming byte streams, commonly embedded in applications and used by other formats and protocols.
What zlib does
A cross-platform C library for lossless data compression and decompression using the DEFLATE algorithm, providing APIs for in-memory buffers and streaming byte streams, commonly embedded in applications and used by other formats and protocols.
- Lossless compression and decompression based on the DEFLATE algorithm
- Small, portable C API designed for cross-platform embedding
- Streaming compression/decompression support (incremental processing)
- Buffer-based (in-memory) compression/decompression routines
- Supports zlib-wrapped and raw DEFLATE streams; includes gzip-file convenience API (gz*)
Category: Vendor-Neutral Archives. zlib is open source and free to use.
What teams use it for
- Embedding compression in applications to reduce storage footprint
- Compressing data over network protocols to reduce bandwidth
- Providing DEFLATE/zlib compatibility for file formats and interoperability layers
- Resource-constrained/embedded environments needing a small compression library
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does zlib do?
A cross-platform C library for lossless data compression and decompression using the DEFLATE algorithm, providing APIs for in-memory buffers and streaming byte streams, commonly embedded in applications and used by other formats and protocols.
How common is zlib in large enterprises?
Samplify finds zlib in about 2 in 10 of the large enterprise software estates it has analysed.
Is zlib free?
zlib is open source and free to use.
What can replace zlib?
Other tools in the same category include Artifactory, Cpio, p7zip, libarchive.
Do we already own something that does what zlib does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Jean-loup Gailly and Mark Adler.