DEFLATE Compressor
Use compression levels 0–9 with UTF-8 text or exact file bytes. Review the stream as Base64, hex or decimal and download binary or encoded text.
DEFLATE Compressor: how to use it
- Enter UTF-8 text or switch to exact file bytes and choose a local file.
- Choose a compression level and compress. Compare the UTF-8 or file byte count with the raw stream size.
- Download the raw DEFLATE stream, or choose the Base64, hex or decimal encoding. For large results, prepare the full encoded text before downloading it.
Limits and notes
Accepts one file up to 30 MB or pasted text up to 200,000 UTF-16 code units. The encoded preview is capped at 1,536 compressed bytes. Download the full encoding when you need every byte.
How your privacy works →DEFLATE Compressor: common questions
Which decoder reads this output?
Use a raw DEFLATE decoder. In Python, open the downloaded bytes with zlib.decompress(data, -15).
Does level 0 return the original file directly?
It emits raw DEFLATE stored blocks. Their headers remain, so you still need a raw DEFLATE decoder.
Does switching between Base64 and hex recompress the source?
Both encodings represent the same compressed stream, as does the decimal byte list. The raw download is independent of the selected encoding.
Can I compress a file with invalid UTF-8?
Yes. Choose Exact file bytes to keep the file unchanged. Text mode encodes the entered text as UTF-8.