Huffman & Hex Stream File Compressor

An interactive data compression pipeline based on peer-reviewed research by Erlando Aubrey Nathaniel. Demonstrates character frequency tree generation, variable-length bitstream packing, and hexadecimal nibble translation.

📄 Peer-Reviewed Paper: Geofandy, K., Aubrey, E. A., & Agung, H. (2019). JITTER, Vol. 5, Iss. 3, pp. 36-46. DOI: 10.33197/jitter.vol5.iss3.2019.295 →
1. RAW INPUT BUFFER
→
2. FREQUENCY HISTOGRAM
→
3. MIN-HEAP HUFFMAN TREE
→
4. VARIABLE BITSTREAM
→
5. HEX STREAM PACKING
Payload Input Text / Binary
Presets:
📁 Or click to upload a local file (.txt, .json, .log, etc.)
Raw Size
0 B
Bitstream
0 b
Packed Hex
0 B
Saved Space
0.0%
Lossless Verification: PASSED ✓
Decompressed payload matches original input byte-for-byte with zero entropy distortion.
Binary & Hex Stream Visualizer 0 Symbols
HUFFMAN VARIABLE-LENGTH BITSTREAM 0 bits
Waiting for input...
PACKED HEXADECIMAL STREAM (NIBBLE CHUNKS) 0 bytes
Waiting for input...
Symbol Dictionary / Canonical Codebook Freq & Bit Paths
Symbol Freq Probability Huffman Bit Code Bit Length
Run compression to generate codebook tree.

Academic Research & Engineering Rationale

Published in Jurnal Ilmiah Teknologi Informasi Terapan (JITTER), Vol. 5, Iss. 3 (2019). This research evaluated the real-world operational viability of combining prefix-free minimum redundancy codes (Huffman) with intermediate binary-to-hexadecimal byte-boundary packing across 50 distinct file types and 26 standard extensions.

1. Frequency-Sorted Min-Heap Tree

The compressor builds an optimal binary prefix tree where high-probability symbols gravitate toward the root (1-3 bits) and rare symbols receive deeper branch paths, breaking the static 8-bit ASCII barrier.

2. Nibble-Aligned Hexadecimal Packing

Continuous variable-length bitstreams are zero-padded to 4-bit boundaries and translated into clean hexadecimal byte sequences, eliminating binary serialization drift during distributed message transfer.

3. Cross-Format Empirical Results

The paper tested text, executables, archives, and multimedia files. Highly redundant structured data (.txt, .log, .json, .csv) achieved compression ratios between 35% and 58%, while pre-compressed formats (.zip, .mp4, .jpg) showed negligible gains due to maximum Shannon entropy.

4. Trade-off vs. Modern Sliding Dictionaries

While standalone Huffman encoding requires negligible memory and zero dictionary lookahead latency, multi-pass LZ77/Deflate algorithms (WinRAR, gzip) outperform it on large continuous texts with repetitive multicharacter substrings.

λ

Erlando Aubrey

Senior Backend & Distributed Systems Engineer

Author of peer-reviewed research in data compression & information systems. 8+ years building enterprise high-throughput services, fintech settlement ledgers, and deterministic engines.