PB
Available
tune
lock Free · Private · In-Browser

Bit Shift Visualizer

See the binary before and after a left or right bit shift, with the new value.

Watch the bits move

Bit shifts are among the fastest operations a CPU can do, and they double or halve a number by sliding its bits. This visualiser shows the binary before and after the shift so the effect is obvious rather than abstract.

Shifting 13 (00001101) left by 2 gives 52 (00110100) — each left step multiplies by two. A right shift does the reverse, dividing by two and discarding the bits that fall off the end.

Clear and private

It renders the 32-bit patterns before and after and computes the new value in your browser, with nothing uploaded.

Frequently Asked Questions

What does a left shift do?

It moves every bit left by the given amount, filling with zeros, which multiplies the value by 2 for each position shifted.

And a right shift?

It moves bits right, dropping the low bits, which divides by 2 (rounding down) for each position — a fast alternative to division.

What width is shown?

32 bits, matching JavaScript and most languages’ int type, with the shifted-out bits simply lost.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward