Codificador/Decodificador de Compressão Brotli
Guia
Codificador/Decodificador de Compressão Brotli
Compress and decompress data using Google’s Brotli algorithm directly in your browser. Brotli delivers significantly better compression ratios than Gzip — often 20-30% smaller output — making it the preferred choice for web content delivery via HTTP Content-Encoding.
Como usar
Choose between Compress or Decompress mode. Enter your text in the input area or upload a file. Adjust the compression level using the slider (0 for fastest, 11 for best compression). Click Process to run the Brotli algorithm. View detailed compression statistics and download the result or copy it from the output area.
Características
- Brotli Compression – Google’s modern compression algorithm with superior ratios for text content
- Compression Level Control – Adjustable slider from 0 (fastest) to 11 (best compression), default 6
- Decompress Mode – Decode Brotli-compressed data back to its original form
- Upload de arquivo – Process binary files with drag-and-drop support
- Saída Base64 – Toggle base64 encoding for safe text representation of compressed data
- Compression Stats – Real-time metrics showing ratio, original/compressed sizes, and processing time
- Download Output – Save compressed results as .br files
- Processamento do lado do cliente – All compression runs in your browser via WebAssembly, no data leaves your device
Perguntas frequentes
What is Brotli compression and how does it compare to Gzip?
Brotli is a lossless compression algorithm developed by Google that combines LZ77 encoding, Huffman coding, and a predefined dictionary of common web content patterns. It typically achieves 20-30% better compression ratios than Gzip for text-based content like HTML, CSS, and JavaScript. Most modern browsers support Brotli via the Content-Encoding: br header.
What do the Brotli compression levels mean?
Brotli supports compression levels from 0 to 11. Level 0 prioritizes speed with minimal compression, suitable for real-time applications. Levels 4-6 offer a balanced tradeoff between speed and file size. Levels 9-11 achieve maximum compression but take significantly longer — level 11 can be 100x slower than level 0. For web serving, most servers use level 4-6 for dynamic content and level 11 for pre-compressed static assets.
Is Brotli supported by all web browsers?
Brotli is supported by all major modern browsers including Chrome, Firefox, Safari, Edge, and Opera. It is only available over HTTPS connections — browsers will not accept Brotli-compressed responses over plain HTTP. For legacy browser compatibility, servers typically implement fallback to Gzip compression.
When should Brotli be used instead of other compression algorithms?
Brotli excels at compressing text-based web content — HTML, CSS, JavaScript, JSON, and SVG files. Its built-in dictionary of common web patterns gives it an edge over general-purpose algorithms for these file types. For binary data, images, or real-time streaming where speed matters more than ratio, algorithms like LZ4 or Zstandard may be more appropriate.
Instale nossas extensões
Adicione ferramentas de IO ao seu navegador favorito para acesso instantâneo e pesquisa mais rápida
恵 O placar chegou!
Placar é uma forma divertida de acompanhar seus jogos, todos os dados são armazenados em seu navegador. Mais recursos serão lançados em breve!
Ferramentas essenciais
Ver tudo Novas chegadas
Ver tudoAtualizar: Nosso ferramenta mais recente foi adicionado em 16 de março de 2026
