Brotli Compress

Compress text or encoded binary data to Brotli online and output the result as Hex or Base64. Read more

What is Brotli compress?

Brotli is the lossless compressed-data format specified in RFC 7932. It combines LZ77-style matching, Huffman coding, context modeling, and a static dictionary, and is widely used for web assets. This tool creates a raw Brotli stream from text or encoded bytes; it does not create a multi-file archive.

How to use this tool

Enter text or encoded bytes, choose the input encoding, select compression level 1–11, and output the compressed bytes as Hex or Base64. UTF-8 converts visible text to bytes; Hex and Base64 first decode their textual representation. Use Brotli Decompress to reverse the result.

Choosing the right format

Hex is convenient for byte-level inspection; Base64 is more compact for APIs and configuration. Higher levels spend more CPU and memory searching for a smaller representation, but do not guarantee a smaller result for every short input. Compression changes representation without losing the original bytes.

Important limitations

Compression is not encryption and does not hide sensitive input. Very short or already-compressed data may grow because of stream overhead. Browser memory limits make native streaming tools more suitable for large inputs. This page produces an RFC 7932 stream without filename, media type, or folder metadata.

Frequently asked questions

Why can another program not open the result?

Decode the Hex or Base64 output to bytes before passing it to a Brotli decoder. Also confirm the program expects a raw .br stream rather than HTTP content encoding, tar.br, or another container.

Are my files uploaded?

No. Compression runs locally in your browser. For actual files or folders, use Brotli Create.

Input
Output
Share Link
Settings