BinaryCon Binary Converter

Right Shift

Result

Right Shift

Right shift calculator for binary/decimal inputs.

Example: 1010, 2

Definition: Shifts the input right by the specified number of bit positions, discarding shifted-off bits.

Conversion formula

Right shift (logical/arithmetic):
Logical right shift (zero-fill): x >> n  → floor(x / 2^n) with zeros shifted in.
Arithmetic right shift (sign-extend): preserves sign bit for signed values.

Example (logical, 8-bit): 11010010 >> 2 = 00110100