Neuralzip

Lossless neural text compression.

Compress a text file or restore the exact original. Everything runs in your browser.

On your device

Your text

UTF-8 text

Drop a text file

Files stay on your device.

Your model archive

MODEL + STREAM

A model of your words.

Add text on the left. Your download will include the learned weights and lossless stream.

Exact bytes. Verified before download.
Lossless, with SHA-256 verificationClient-side processing · No file uploads

THE SAME MODEL, IN YOUR TERMINAL

Encode. Decode.
Every byte, back.

One Python package. Every original byte verified.
Decode uses the model saved in your archive.

Download wheel v0.3.1
Python 3.10+

# Install Neuralzip

python -m pip install neuralzip

# Make a lossless model archive

neuralzip encode notes.txt

# Restore the exact original file

neuralzip decode notes.txt.nzip
Use the Python API
from neuralzip import encode, decode

original = b"Keep every byte."
archive = encode(original)
assert decode(archive) == original
First-time setup: a virtual environment

macOS or Linux:

python3 -m venv .venv
source .venv/bin/activate

Windows PowerShell:

py -m venv .venv
.\.venv\Scripts\Activate.ps1

Then run the install command above. The package installs the training dependencies for you.