Bit Shift Calculator

Perform bitwise left and right shifts on integers. Enter a decimal number and the shift amount to see the binary representation and result.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

This guide explains how to use the Bit Shift Calculator to perform left and right bit shifts on decimal numbers.

  1. Enter a Decimal Number – Input any integer between -2,147,483,648 and 2,147,483,647 (e.g., 8).
  2. Set the Shift Amount – Enter a number from 0 to 31 (e.g., 2) to specify how many bits to shift.
  3. Choose the Direction – Select either Left Shift (<<) or Right Shift (>>) from the dropdown.
  4. Click "Calculate" – The result appears below, showing:
    • The resulting decimal value.
    • The 32-bit binary representation before and after the shift.
    • The formula used (e.g., 8 << 2 = 32).

Note: All numbers are treated as 32-bit signed integers. Left shifts multiply the number by 2shift; right shifts perform integer division by 2shift (truncating toward negative infinity).

Previous Results

Generate Charts
Result Inputs Date

Frequently Asked Questions

A bit shift moves the bits of a number left or right, effectively multiplying or dividing the number by powers of two.

Left shift (<<) multiplies the number by 2^shift, while right shift (>>) divides by 2^shift (floor division for integers).

The shift amount must be between 0 and 31 for 32-bit integers.

Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0