Shift left 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.
Multiplication by powers of two
Shifting left by one position doubles the value, provided no bits overflow the word. Shifting left by n positions multiplies the value by 2ⁿ as long as the result fits within 32 bits. Compilers and CPUs often substitute a left shift for multiplication when the multiplier is an exact power of two.
Fixed 32-bit word
The shift runs on a 32-bit unsigned word. Bits shifted past position 31 are lost and the low end fills with zeroes. 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 or signed output, use the full Bitwise Calculator.