Ad Space
Math Calculators
Bit Shift Calculator
Shift the binary bits of an integer left or right by a given number of positions.
Result (decimal)
—
Result in binary
—
Ad Space — 300×250
About the Bit Shift Calculator
A bit shift moves every bit in a binary number a fixed number of positions left or right. Shifting left multiplies the value by 2 for every position shifted; shifting right divides it by 2 (rounding toward negative infinity), discarding bits that fall off the end.
Formula: left shift by n = value × 2n · right shift by n = ⌊value ÷ 2n⌋
Bit shifts are widely used in programming as a fast alternative to multiplication or division by powers of two.
Ad Space