spacer

A Massively Spiffy Yet Delicately Unobtrusive Compression Library
(Also Free, Not to Mention Unencumbered by Patents)

(Not Related to the Linux zlibc Compressing File-I/O Library)


Welcome to the zlib home page, web pages originally created by Greg Roelofs and maintained by Mark Adler. If this page seems suspiciously similar to the PNG Home Page, rest assured that the similarity is completely coincidental. No, really.

zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression).

Current release:

zlib 1.2.3

July 18, 2005

Version 1.2.3 eliminates potential security vulnerabilities in zlib 1.2.1 and 1.2.2, so all users of those versions should upgrade immediately. The following important fixes are provided in zlib 1.2.3 over 1.2.1 and 1.2.2:

Version 1.2.x adds many improvements and features to zlib. Here are some highlights:

You can also look at the complete Change Log.

Versions 1.1.4 and later eliminate an earlier potential security vulnerability, see details here. Any software that is linked against or derived from an earlier version of zlib should be upgraded immediately. A partial list of over 500 applications using zlib is given here (uncompressed).


Canonical URL: zlib.net/ (US)

Mirror sites:


spacer zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1) and in the GIF image format, the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression. A more precise, technical discussion of both points is available on another page.

zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression). Jean-loup is also the primary author/maintainer of gzip(1), the author of the comp.compression FAQ list and the former maintainer of Info-ZIP's Zip; Mark is also the author of gzip's and UnZip's main decompression routines and was the original author of Zip. Not surprisingly, the compression algorithm used in zlib is essentially the same as that in gzip and Zip, namely, the `deflate' method that originated in PKWARE's PKZIP 2.x.

Mark and Jean-loup can be reached by e-mail at spacer . Please read the FAQ and the manual before asking us for help. We are getting too many questions which already have an answer in the zlib documentation.

Greg, Mark and/or Jean-loup will add some more stuff here when they think of something to add. For now this page is mainly a pointer to zlib itself and to the official zlib and deflate documentation. Note that the specifications both achieved official Internet RFC status in May 1996, and zlib itself was adopted in version 1.1 of the Java Development Kit (JDK), both as a raw class and as a component of the JAR archive format.

The lovely zlib-vise image above was provided courtesy of Bruce Gardner, art director of Dr. Dobb's Journal. It appears in Mark Nelson's article in the January 1997 issue (see below).


The current release is publicly available here:

spacer zlib source code, version 1.2.3, tar.gz format (485K, MD5 checksum debc62758716a169df9f62e6ab2bc634):

spacer US (www.zlib.net)
spacer France (www.gzip.org)
spacer Pick a mirror (prdownloads.sourceforge.net)
spacer zlib source code, version 1.2.3, tar.bz2 format (415K, MD5 checksum dee233bf288ee795ac96a98cc2e369b6):

spacer US (www.zlib.net)
spacer France (www.gzip.org)
spacer Pick a mirror (prdownloads.sourceforge.net)
spacer zlib source code, version 1.2.3, zipfile format (570K, MD5 checksum abbd0f2b456206da5e3ffd179324413a):

spacer US (www.zlib.net)
spacer France (www.gzip.org)
spacer Pick a mirror (prdownloads.sourceforge.net)
spacer zlib compiled DLL, version 1.2.3, zipfile format (79K, MD5 checksum cc7fa97f9c19386bb701acc79d0abbca):

spacer US (www.zlib.net)
spacer France (www.gzip.org)
spacer Pick a mirror (prdownloads.sourceforge.net)

NOTE: zlib does not currently support window sizes of 256 bytes (windowBits == 8). A 512-byte window is the smallest the encoder can use. (Most applications use the default 32,768-byte window size for best compression.)

Note that zlib is an integral part of libpng and has been tested extensively as part of many PNG-supporting applications.


zlib Information

spacer zlib Frequently Asked Questions
spacer Zlib-announce mailing list
New versions of zlib are announced on this list.
spacer Zlib-devel mailing list
Please do not send questions or comments about zlib to this mailing list. Send those directly to the authors at spacer after checking the FAQ and the manual, of course. The zlib-devel list is for the development of zlib—members are contributors to and testers of new versions of zlib.
spacer zlib Manual
spacer zlib Usage Example
spacer zlib Technical Details
spacer zlib-Related Specifications
spacer zlib's Deflate Algorithm
spacer zlib's deflate flush modes
spacer zlib License


Related External Links

spacer unofficial (contributed) patches and binaries (not tested by zlib team)
spacer zlib for Linux, both shared and static plus headers (RPM format, many architectures)
spacer zlib for HP-UX 10.20 and 11.00 (shared library and headers)
(alternatively here: HP-UX 10.20 and HP-UX 11.00)
spacer zlib for SGI Irix 6.x (shared library and headers)
spacer zlib for Solaris
spacer zlib for Solaris (alternate)
spacer zlib for Digital Unix 4.0
spacer zlib for SCO Open Server 5.0
spacer zlib for BeOS R5
spacer zlib for Mac OS X: zlib is already included as part of Mac OS X
spacer zlib for Mac OS
spacer zlib for OS/2 (DLL and static version for emx 0.9c, 46k)
(click here if link breaks)
spacer zlib for Palm Pilot
spacer zlib for Newton OS
spacer zlib for Windows CE
spacer zlib for RIM BlackBerry
spacer zlib for Windows 9x/NT/2000/XP/2003 (DLL version, plus related utilities)
spacer zlib for Windows 9x/NT (DLL and static version)
spacer zlib for .NET in C#
spacer zlib DLL wrapper for .NET in VB
spacer Zip for .NET
spacer zip file manipulation for .NET
spacer Mark Nelson's ZlibTool article and Win32 source code for Dr. Dobb's Journal (January 1997)
spacer zlib C++ wrapper for the gz* functions.
spacer C++ zlib and gzip filters in an iostream framework.
spacer zlib 32-bit OCX and 16-bit DLL (Visual Basic interface, source code and binaries, 84k)
spacer zlib 32-bit OCX (C++ source and binaries for use with Visual Basic 4.x or Delphi 2.0)
(unsupported VB5 binary also available)
spacer zlib Pascal port (Pascal source, tested with Turbo Pascal 7.0 and Delphi 3.02)
(not tested by us, but looks complete and well-maintained)
spacer zlib Delphi 5 interface
(includes compiled object files and corresponding C++ Builder 5 project files)
spacer zlib Perl interface (source code; look for Compress-Zlib*.tar.gz)
spacer zlib Python interface (online manual; part of the standard library as of Python 1.5)
spacer zlib Tcl interface mkZiplib
spacer zlib Java interface (see also JAR format)
spacer zlib reimplementation in pure Java
(not tested by us, but looks like a good alternative to java.util.zip)
spacer Mark Nelson's JavaZip article (with source code) for Dr. Dobb's Journal (December 1997)
spacer Gilles Vollant's zlib-based mini-zip and mini-unzip
(see also Info-ZIP's UnZip, which optionally can be compiled with zlib)
spacer Scott Ludwig's zlib-based CExe executable compressor for Win32
spacer zlib technical issues, including spec errors
spacer zlib information in Japanese
spacer zlib information in Russian
spacer Real World Scanning and Halftones (second edition includes a section on zlib)
spacer Markus Oberhumer's LZO `real-time' data compression library
(not tested by us, but looks like a good alternative if you need more speed and less compression)
spacer libbzip2
(not tested by us, but looks like a good alternative if you need more compression and less speed)
spacer PPP Deflate Protocol (RFC 1979)
spacer Info-ZIP Home Page
spacer Portable Network Graphics (PNG) Home Page
spacer gzip Home Page
spacer pigz (parallel gzip) Home Page
spacer DataCompression.info
spacer comp.compression Frequently Asked Questions list


Send comments or questions about zlib to the authors at spacer   after checking FAQ and manual.
Please report broken links to spacer (PGP key). Last updated August 7th, 2009.

Web page copyright © 1996-2009 Greg Roelofs, Jean-loup Gailly and Mark Adler.
zlib software copyright © 1995-2005 Jean-loup Gailly and Mark Adler.
Primary site hosted by FreeSoftware.com. --> Mirror site hosted by France Teaser.
zlib.org domain name donated by Andrew Green.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.