ブロトリー圧縮エンコーダー/デコーダー
ガイド
ブロトリー圧縮エンコーダー/デコーダー
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.
使い方
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.
特徴
- 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
- ファイルのアップロード – Process binary files with drag-and-drop support
- 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
- クライアント側処理 – All compression runs in your browser via WebAssembly, no data leaves your device
よくある質問
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.
恵 スコアボードが到着しました!
スコアボード ゲームを追跡する楽しい方法です。すべてのデータはブラウザに保存されます。さらに多くの機能がまもなく登場します!
