Your files stay on your device

# Brotli Compress and Decompress: In-Browser Wasm

Compress one file to a .br brotli stream or decode one back: quality 0-11, both sides capped before the wasm runs, no container metadata claimed.
Brotli file

Brotli has no magic signature: a truncated or non-brotli file is rejected by the decoder itself, and the message says exactly that. One stream per file: names and containers are gzip/zip territory, not brotli's.
Quality6File to compress

Higher quality compresses smaller and runs slower (11 is glacial on large files). The wasm encoder runs in the archive worker; the page never blocks on it.

## Next door in Files

- [Gzip compress/decompress](/files/gzip)
- [Zstandard Decompress](/files/zstd)
[All files tools](/files)

---

Canonical HTML: https://nutter.tools/files/brotli
Markdown version: https://nutter.tools/files/brotli/index.md
Plain-text version: https://nutter.tools/files/brotli/index.txt
Agent index: https://nutter.tools/llms.txt

