libhuffman - An Open Source Huffman Coding Library in C

libhuffman is a Huffman coding library and a huffcode is a command line interface to the library. The encoder is a 2 pass encoder. The first pass generates a huffman tree and the second pass encodes the data. The decoder is one pass and uses a huffman code table at the beginning of the compressed file to decode the data.

libhuffman has functions for encoding and decoding both files and memory.

libhuffman and huffcode are released under a BSD license.

Visit the project home page if you would like to download Huffman.

PHP Extension

Markus Nix, from, wrote a PHP extension for libhuffman.

Tao of Programming

Check out The Tao of Programming. It is a modified version of The Tao of Programming taken from


Valid XHTML 1.0 Strict Valid CSS!