DevToolsHub Free · Fast · 100% in your browser

Bitwise Puzzle

Reach the target 8-bit value using AND, OR, XOR, NOT and shift operations in as few moves as possible.

Moves0
Par2
Solved0
Current0101110193 (0x5D)
Target10100100164 (0xA4)

About this bitwise operations puzzle

Practise AND, OR, XOR, NOT and bit shifts by reaching a target value from a starting number in as few operations as possible. Each move shows the binary result, making it easy to see how flags, masks and shifts change individual bits.

How to use the Bitwise Puzzle

  1. Read the start and target values.
  2. Apply bitwise operations to transform the number.
  3. Reach the target in the fewest moves.

Example

5 (0101) XOR 3 (0011)  →  6 (0110)

Frequently asked questions

What does XOR do?

XOR sets a bit to 1 when exactly one of the two input bits is 1. XOR with the same value twice returns the original.

What is a left shift equivalent to?

Shifting left by n multiplies by 2ⁿ; shifting right by n divides by 2ⁿ and discards the remainder.

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕