Home / Developer Tools / Bit Shift Calculator
Developer Tools

Bit Shift Calculator

Fixed width matters: bits shifted out are discarded. Arithmetic right uses signed two’s-complement interpretation; logical right fills with zeros.

Before
After
Unsigned
Signed
Hex pattern
Set bits
ReadyLogical right fills with zero bits; arithmetic right copies the sign bit. Fixed-width left shifts discard bits beyond the selected register width.

Fixed representations, explicit assumptions

Logical and arithmetic right shifts are different operations. The selected bit width controls sign interpretation and which shifted-out bits are discarded.

Browser-local integer math

Compare left shift, logical right shift, arithmetic right shift and bit rotation at explicit 8/16/32/64-bit widths. Inputs are processed locally with BigInt where integer precision matters.

Search by task, tool name, or category. Press Esc to close.
Start typing to find a tool.