ハフマンエンコーダ
圧縮 · 無料オンラインツール
出現頻度に基づく Huffman 符号化による圧縮/展開。
Click "Encode" to run...頻度ツリー
シンボル頻度から最適な接頭辞なし符号を構築。
ビットパック本体
符号はビットごとにパックされ、ツリーはラウンドトリップ用に JSON ヘッダとして格納。
純粋な JS
依存関係なし — どこでも動作、deflate のエントロピー段がどう動くか学ぶのに有用。
ハフマンエンコーダの使い方
- 1Enter or paste the text you want to compress.
- 2Select the compression algorithm (gzip, deflate, or brotli).
- 3Click compress to reduce the data size.
- 4Copy or download the compressed output.
機能と特徴
- ✓完全無料 — 登録不要、サブスクリプションなし、広告なし
- ✓ブラウザ上で完全に動作 — データは端末から送信されません
- ✓高速・軽量 — 即座に結果を表示
- ✓クロスプラットフォーム — デスクトップ・タブレット・モバイル対応
よくある質問
What compression algorithms are supported?
We support gzip, deflate, and brotli compression algorithms for text data.
Is there a file size limit?
Since tools run in your browser, the limit depends on your device memory. Most tools handle several megabytes without issues.
Can I decompress data produced by other software?
Yes. The decompression tools accept standard gzip, deflate, and brotli streams from any compliant source — command-line tools, web servers, or other libraries.
Why does the compressed output look unreadable?
Compressed data is binary, not text. Use Copy as Base64 or download it as a file — pasting raw compressed bytes into a text field will show garbled characters.
関連ツール
Brotli デコンプレッサー
DecompressionStream を使用して Brotli ストリームを展開。
Gzip デコンプレッサー
DecompressionStream を使用して Gzip ストリームを展開。
GZ ファイルクリエイター
ファイルを単一の .gz アーカイブにパッケージ化。
TAR.GZ アーカイブクリエイター
複数ファイルをパッケージ化し gzip 圧縮して .tar.gz を生成。
TAR.GZ アーカイブエクストラクター
.tar.gz を展開し内部ファイルを一覧/ダウンロード。
Brotli ファイルクリエイター
Brotli でデータを .br ファイルに圧縮。
ZIP アーカイブクリエイター
複数ファイルを選択して .zip アーカイブを生成。
ZIP アーカイブエクストラクター
.zip をアップロードして展開しファイルを一覧/ダウンロード。