Free Online Utility • Binary Studio • Base-2 Engine

Reverse Binary Numbers

Reverse bit order of binary numbers (MSB ↔ LSB mirror) per value, per 8-bit byte, or across the full bitstream.

Formula & Quick Reference Base-2 Engine
rev(b_{n-1}...b_1 b_0) = b_0 b_1...b_{n-1}
11010010 (210) -> 01001011 (75)
1000000000000001 (128 -> 1)
1101001001001011 (210 -> 75)
1010010110100101 (Palindrome)
MSB ↔ LSB MIRROR
Reversed Binary Output

        
100% client-side exact Binary Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Reverse Binary Numbers Works

Reverse Binary Numbers mirrors bit significance from Most Significant Bit (MSB) to Least Significant Bit (LSB), supporting full-number, per-byte, and full-stream reversal.

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.

Bit-Order Permutation (FFT / LSB-First)

output[i] = input[W - 1 - i]  for i = 0 .. W - 1

Bit reversal is a core operation in Cooley-Tukey Fast Fourier Transforms (FFT), CRC-32 polynomial reflection, and SPI/UART LSB-first serial wire order.

Worked Reference Examples

InputOutputStep / Bit Note
1101001001001011210 -> 75
1000000000000001Bit 7 moves to Bit 0
1010010110100101Binary palindrome

Practical Engineering Applications

FFT Index Bit-Reversal

Generate bit-reversed array indices for radix-2 Cooley-Tukey DSP butterflies.

CRC & Serial Communication

Reflect byte bit-order for LSB-first UART, SPI, and IEEE 802.3 CRC-32 frames.

Precision, Edge Cases & Best Practices

Preserves exact bit lengths including leading and trailing zeros.

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

Is bit reversal the same as byte-order endianness swap?
No — bit reversal flips the order of individual bits (MSB ↔ LSB), whereas endianness swaps whole 8-bit bytes without flipping bits inside each byte.
Where is per-byte bit reversal used?
Serial buses like UART transmit the least significant bit first, and standards like Ethernet CRC-32 reflect every byte bit-for-bit.
Does this detect binary palindromes?
Yes — it automatically reports whether your binary string reads identically forwards and backwards.