Web Tools
Run-Length Encoding (RLE) Tool
Encode text using Run-Length Encoding or decode RLE-encoded strings. Visualize runs, compression ratio, and space savings. Runs entirely in your browser — your data never leaves your machine.
encoding compression rle data algorithm
Published May 31, 2026
All interactive tools run entirely in your browser. Your data never leaves your device.
How It Works
Enter text to encode it using Run-Length Encoding (RLE), which replaces consecutive repeated characters with a count followed by the character. Or switch to decode mode to expand an RLE-encoded string back to its original form.
Features
- Encode mode: convert text to RLE format (e.g., “AAABBC” becomes “3A2B1C”)
- Decode mode: expand RLE strings back to original text
- Run visualization: see each run broken down with count and character
- Compression stats: original size, encoded size, and space saved percentage
- 5 examples: simple repeats, pixel rows, worst case, decode sample, binary runs
- Private: runs entirely in the browser — your data never leaves your machine
Use Cases
- Understanding compression fundamentals
- Encoding bitmap/pixel data with repetitive values
- Data compression education and visualization
- Comparing RLE efficiency across different data patterns