How RLE Decode a Binary Number Works
RLE Decode a Binary Number reconstructs exact uncompressed binary bitstreams from colon pairs (8:0 5:1), compact notation (8x0 5x1), Fax alternating lengths (0, 8, 5), or JSON run arrays.
Binary arithmetic and base-2 encoding form the physical foundation of digital microprocessors, network packets, memory buffers, and cryptographic primitives. Every calculation in this utility runs directly inside your browser using exact JavaScript BigInt and typed-array pipelines, so arbitrary-length bitstreams, 128-bit addresses, and raw byte buffers never suffer from 53-bit IEEE floating-point truncation or server latency.
Lossless Run Expansion
For each pair (count_i, bit_i): append bit_i repeated count_i times
Auto-detection parses all four standard binary RLE notations cleanly without manual mode switching.
Worked Reference Examples
| Input | Output | Step / Bit Note |
|---|---|---|
| 8:0 5:1 | 0000000011111 | 13 bits restored |
| 0, 8, 5 (Fax) | 0000000011111 | Alternating polarity expansion |
| 4x1 4x0 | 11110000 | 1 byte restored |
Practical Engineering Applications
Decompression Verification
Validate round-trip integrity against RLE-compressed monochrome scanlines or firmware masks.
Data Recovery
Expand archived binary RLE payloads back into spaced 8-bit bytes.
Precision, Edge Cases & Best Practices
Includes a 100,000-bit safety guard so accidental million-bit run counts never freeze your browser tab.
All input parsing strips harmless formatting whitespace, underscores, or common prefixes such as 0b where applicable, while preserving exact bit order and padding width so outputs drop straight into C/C++, Rust, Verilog, VHDL, Python, and embedded firmware test harnesses.