Arithmetic 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. The operation preserves the sign bit of the 32-bit input.
Sign extension
Unlike a logical shift, an arithmetic right shift copies the original sign bit into each vacated high position. If operand A is negative (bit 31 is 1), the new high bits are all 1s and the value remains negative. If operand A is positive, the new bits are 0s and the value halves normally. This makes arithmetic shift right the correct operation for signed two’s complement division.
Unsigned display on a signed operation
This page fixes the word at 32 bits and shows the result as unsigned decimal by default. A value like -1 (0xFFFFFFFF) displays as 4294967295. To read the signed decimal interpretation, use the full Bitwise Calculator with the signed output toggle on. Operand A accepts decimal, hexadecimal (0xFF), binary (0b10110010), and octal (0o377) automatically. Operand B must be a non-negative integer.