Skip to content
🔧

Shoco Text Compressor

Compression · Free Online Tool

Shoco algorithm for lightweight English text compression.

By EZ4Code Team

Implementation note:Educational implementation. This is a compact, readable version intended to illustrate how the algorithm works. Its output is not byte-compatible with standard implementations, so do not use it to compress or decompress real data.

This is a simplified Shoco that maps 50 common bigrams (th, he, in, ...) to bytes 0x80..0xB1. Real Shoco uses a more elaborate model with multiple codewords — install shoco for byte-compatible output.
226 chars
0 chars
Click "Compress" to run...

Bigram Packing

Replaces 50 common English bigrams with single high bytes (0x80..0xB1).

English Optimized

Best on lowercase English prose; loses efficiency on uppercase or non-Latin text.

Pure JS

Tiny, dependency-free implementation for learning the bigram-packing trick.

How to Use Shoco Text Compressor

  1. 1Enter or paste the text you want to compress.
  2. 2Select the compression algorithm (gzip, deflate, or brotli).
  3. 3Click compress to reduce the data size.
  4. 4Copy or download the compressed output.

Features

  • ✓100% free — no signup, no subscription, no ads
  • ✓Runs entirely in your browser — data never leaves your device
  • ✓Fast and lightweight — instant results
  • ✓Cross-platform — works on desktop, tablet, and mobile

Frequently Asked Questions

What compression algorithms are supported?

We support gzip, deflate, and brotli compression algorithms for text data.

Is there a file size limit?

Since tools run in your browser, the limit depends on your device memory. Most tools handle several megabytes without issues.

Can I decompress data produced by other software?

Yes. The decompression tools accept standard gzip, deflate, and brotli streams from any compliant source — command-line tools, web servers, or other libraries.

Why does the compressed output look unreadable?

Compressed data is binary, not text. Use Copy as Base64 or download it as a file — pasting raw compressed bytes into a text field will show garbled characters.

Related Tools