Shuffle Binary Bits

Randomly reorder the bits in a non-negative number

Last updated: October 14, 2026

Result actions

Copy or download the tool output, or share a link to Shuffle Binary Bits.

Get new tools in your inbox

An occasional email when we ship new free tools. No spam, unsubscribe anytime.

Related tools

Randomly reorder a binary value

Choose decimal, binary, or hexadecimal input and enter a non-negative value. Decimal and hexadecimal input are converted to binary; binary input is shuffled as entered. The tool randomly reorders the bits, then displays the original and shuffled binary strings along with the shuffled result in decimal and hexadecimal.

A shuffle changes bit positions but keeps the number of zero bits, one bits, and total bit positions. Decimal and hexadecimal values are converted through JavaScript numbers, so use values within JavaScript’s safe integer range for reliable results. Leading zeroes are removed when numeric input is converted to binary, while leading zeroes in binary input are retained.

The result is a simple random rearrangement, not encryption or a source of cryptographic randomness. Processing happens in your browser.