Free Online Utility • Binary Studio • Base-2 Engine

RLE Decode a Binary Number

Decode Run-Length Encoded (RLE) binary tokens (8:0 5:1, 8x0 5x1, Fax lengths, or JSON) back into the exact original bitstream.

Formula & Quick Reference Base-2 Engine
Expand each (count, bit) -> bit.repeat(count)
8:0 5:1 -> 0000000011111
8:0 5:10000000011111
0, 8, 5 (Fax)0000000011111
Safety CapUp to 100,000 bits
RUN-LENGTH DECODER (RLE)
Restored Binary Output

        
100% client-side exact Binary Engine Instant

Session Calculation Log

No entries recorded in this session yet.

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

InputOutputStep / Bit Note
8:0 5:1000000001111113 bits restored
0, 8, 5 (Fax)0000000011111Alternating polarity expansion
4x1 4x0111100001 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.

Frequently Asked Questions

Which RLE formats can this decoder understand?
It auto-detects `8:0 5:1`, `8x0 5x1`, Fax alternating lengths (`0, 8, 5, 12`), and JSON arrays `[{"bit":"0","count":8}]`.
Can I format the decompressed bits into 8-bit bytes?
Yes — choose 8-bit Bytes or 4-bit Nibbles in Output Grouping.
Does decoding lose any bits?
Never — RLE decoding is 100% lossless.