Compression Simulator
One text per line (or the whole input as one block); pick Huffman / LZ77 / both, adjust the window parameters, then run to see bit counts, ratio and entropy.
Algorithm:      
        Separator:
Calculation Result Download CSV
No. Text Algorithm Original (bit) Compressed (bit) Ratio Entropy (bit/char) Detail
Huffman code table Download CSV
Char Frequency Code Code length
LZ77 triples table Download CSV
No. Triple (offset, length, next char) Matched piece

Introduction to the tool and how to use it

Online data compression simulator for the two classic lossless algorithms, Huffman coding and LZ77. Enter one or more lines of text to compare original vs compressed bit counts, compression ratio and Shannon entropy, with a full Huffman code table and an LZ77 triple breakdown. Split input per line or as one block, adjust the sliding window and max match length, and overly long texts are trimmed automatically to keep things fast.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?