Bit Shift Calculator
Shift an integer's bits left or right.
Shifting bits left or right is a fast way to multiply or divide by powers of two.
The math behind it
A left shift by n multiplies by 2ⁿ; a right shift by n divides by 2ⁿ (discarding remainder bits).
Worked example
5 (101) << 2 = 20 (10100).
FAQ
Why use bit shifts?
They are much faster than multiplication or division on most processors.