Huffman Coding

Optimal prefix-free compression — frequent symbols get shorter codes
← type any text, then build
--
Original bits (ASCII)
--
Huffman bits
--
Compression ratio
--
Shannon entropy (bits/sym)
--
Avg code length
SymFreqProbCodeBits
Enter text and click "Build Huffman Tree"