Brotli encode/decode tool

Encode/decode (a.k.a. compress/decompress) data in Brotli format locally in browser. All processing is literally done locally with WebAssembly to keep data safe.

Readme: Input & output

Text input should be in Python byte string format (e.g. 0\xff\\ = [48, 255, 92], which can omit surrounded quotes and b prefix). Text output will also be in that format. When both text and file input exist, file input will be selected. Click the refresh button aside to abort the uploaded file.


Decoding is provided by brotli-dec-wasm initially due to its small size. After loading encoder, both decoding and encoding would be provided by brotli-wasm.

Data to be decoded:



Encoding is disabled by default due to its large size. Click To load button below to load encoder before encoding. Select Load encoder by default checkbox below to change the default loading strategy of encoder (by setting/removing a key mylmoe-brotli-dec-load-by-default in localStorage).

Data to be encoded:


Copyright (C) 2020, 2021, 2022 myl7
The posts are licensed under CC BY-SA 4.0 by default unless otherwise explicitly stated.
The posts with different licenses would contain a section named License to indicate their respective licenses.
The website source code and raw post text/image files are available on myl7/mylmoe
The website favicon is made and authorized for the use by Freepik from