Next-Gen App & Browser
Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
This free tool allows you to quickly shift bits left or right on any binary, decimal, octal, or hex number - just enter your value, pick a shift, and hit Calculate for instant results.
Calculate
Binary Result
Decimal Result
Octal Result
Hex Result
A bit shift is a binary operation that moves bits left or right within a number. This operation is used frequently in low-level programming, embedded systems, cryptography, and performance optimizations.
Types of Bit Shifts:
Example:
Input:
Decimal: 6
Shift Type: Left Shift (<<)
Positions: 2
Binary: 00000110 << 2 → 00011000
Decimal Result: 24
Hex Result: 0x18
x << 3 // Equivalent to x * 8
x >> 2 // Equivalent to x / 4 (for unsigned integers)
Used in games, graphics, and embedded systems for speed.
Example: Turning on the 4th bit
flags |= (1 << 3);
Yes, it supports 32-bit and 64-bit signed and unsigned integers.
Absolutely! Use 0b for binary and 0x for hex input.
Yes. Arithmetic preserves the sign bit, logical doesn’t. Choose accordingly for signed or unsigned values.
100% free, with no login or signup required.
Did you find this page helpful?