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: enter one or more text blocks to simulate two lossless algorithms, Huffman coding and LZ77. It outputs the bit counts before and after compression, the compression ratio, and information entropy, and can expand the Huffman code table and the LZ77 triplet details. Two splitting styles are supported (one item per line, or one whole block); the sliding window and maximum match length are adjustable, and overly long text is truncated automatically to keep it fast.

How to use

  1. Paste the text to compress into the input box.
  2. Choose the algorithm, splitting style, window size, and other parameters.
  3. Click Run.
  4. Copy the compressed result or export the detail table.

Message board

All messages →
0/200

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