Bit Shift Calculator

Apply logical and arithmetic left and right shifts to a binary value and see exactly which bits leave the window.

Shift a binary value

Result: —
Decimal: —
Enter a binary value to shift it.

How to use the Bit Shift Calculator

  1. Choose the shift direction, shift type and bit width.
  2. Type the binary value and how many places to shift.
  3. Read the shifted value with the overflow and sign notes.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online bit shift calculator.

A left shift moves every bit towards the more significant end and fills the low bits with zeros, multiplying the value by two each step.
A right shift moves bits towards the least significant end and drops the low bits, which divides the value by two each step.
A logical shift fills with zeros, while an arithmetic right shift copies the sign bit so a negative number stays negative.
They leave the chosen window and are lost. The tool lists the bits that were shifted out for you.
Overflow is reported when a left shift pushes a value past the chosen width, so some high bits are discarded.
No. Left shifts always fill with zeros, so logical and arithmetic left shifts give the same answer.
The most significant bit of the chosen width is the sign bit when the value is read as a signed number.
On an arithmetic right shift of a negative value, the vacated high bits are filled with ones so the value keeps its sign.
Yes. A shift count of zero leaves the value unchanged and shifts no bits out of the window.
No. The shifting is done locally in your browser and nothing is sent to a server.

Last updated: October 10, 2026