TXT · Text & Data tools

Logical Shift Right Calculator

Operand A
Operand B / shift count
expression

0x000000F0 SHR 0x0000000F = 0x00000000

32-bit result

0000 0000 0000 0000 0000 0000 0000 0000

Unsigned decimal
0
Hexadecimal
0x00000000
Octal
0o00000000000
Go to the full Bitwise Calculator

Logical shift right calculator

Enter the base value as operand A and the shift count as operand B. The result shows as unsigned decimal, hexadecimal, octal, and 32-bit padded binary. Both values are treated as 32-bit words.

Unsigned division by powers of two

A logical right shift by n positions divides an unsigned integer by 2ⁿ, discarding the remainder. The high bits always fill with zeroes, so the sign bit is never preserved. For negative two’s complement values this produces a large positive result rather than a smaller negative one. Use arithmetic shift right when the sign must be preserved.

Fixed 32-bit word

The shift runs on a 32-bit unsigned word. Operand A accepts decimal, hexadecimal (0xFF), binary (0b10110010), and octal (0o377) automatically. Operand B must be a non-negative integer. For a different word size, use the full Bitwise Calculator.

Frequently Asked Questions

A logical shift right always fills the vacated high bits with zeroes, regardless of whether the original number was negative. It treats the value as an unsigned bit sequence.

Because JavaScript's `>>` operator performs an arithmetic (sign-preserving) shift. The `>>>` operator forces a logical shift that fills the highest bits with zeroes regardless of the original sign.

For unsigned positive integers, yes. For negative two's complement values, the sign bit is replaced by zero, which completely changes the interpretation. Use arithmetic shift right (SAR) when working with signed values.

Specific bitwise operations

Full Bitwise Calculator tool

Explore Our Tools

Browse all tools