Math & Number Utilities100% Client-Side

Reverse the Order of Bits

Paste a binary string to read its bits in the opposite order. The rightmost input bit becomes the first result bit, and the sequence continues backward. Zeroes keep their values and can appear at the front or end after the reversal. This is useful when checking a fixture whose bit order should change but whose count and individual bit values should stay the same.

Input
4 chars•1 lines
Output

How to Use the Reverse Binary Bit Order Online

  1. 1Paste one unsigned binary value and keep the leading zeroes that are part of its field.
  2. 2Use only binary digits in the magnitude, with an optional 0b prefix and single underscores between digit groups.
  3. 3Compare the positions in your output with the original field to check how the transformation treated them.
  4. 4Copy the complete bit string, including any leading zeroes. Record the input width alongside its expected result.

Input & Output Examples

The last two zeroes move to the start and keep the result four bits wide.

Input Sample
1100
Expected Output
0011

The first bit moves to the final position, and the output retains all five digits.

Input Sample
0b10_000
Expected Output
00001

Practical Developer Workflows

  • Create an expected result for a simple bit-order test.
  • Check a pattern with trailing zeroes that move to the front.
  • Compare a value before and after two reversals to see whether the original positions return.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The output keeps the same digits in the opposite positions. Their place values can change if you read the result as an ordinary binary integer. A symmetric bit pattern can stay the same after reversal.

Explore Other Tools

12 suggested tools

View all tools