Prefix code workshopMessage → tree → bits

Compression Club

Follow a letter through the forks. Its route becomes its code.

Huffman tree

Branch 0 goes left · 1 goes right
Trace

Encoded bit ribbon

Huffman bits
Fixed-width bits

Payload only; codebook overhead excluded.

Frequent symbols can take shorter routes. Each code stops at a leaf, so the next symbol can start immediately. The fixed-width baseline gives every symbol the same number of bits.

Up to 80 Unicode code points. Spaces count as symbols.

Frequency and code table
SymbolCountCodeBits used