⚡ Free Bitwise Calculator

Binary Left Shift Calculator

Use the free Binary Left Shift Calculator to shift a binary number left by any number of positions. Each left shift moves the existing bits one place to the left and adds a 0 on the right. For ordinary unsigned values without fixed-width overflow, shifting left by n positions multiplies the value by 2ⁿ.

✓ Free Unlimited Use ✓ Instant Result ✓ Exact Binary Output ✓ No Signup
<<
Binary Left Shift
● Ready
0 and 1 only
Whole number
Enter a binary number and the number of positions to shift left.
Try:
✓ Left Shift Result
Binary logical left-shift result
Shift Positions 0
Original Bits 0
Result Bits 0

What Is a Binary Left Shift?

A binary left shift moves every bit in a binary number toward the left by a specified number of positions. For a logical left shift without a fixed-width limit, each shift adds one zero to the right side of the bit pattern.

The operator is commonly written as << in programming languages. For example, shifting 1011 left by two positions gives 101100.

Original: 1011 Shift left 2 positions: 1011 << 2 = 101100

Bits move left

Every existing bit moves toward a higher binary place value.

Zeros enter from the right

For each logical left shift, one zero is appended on the right side.

How to Calculate a Binary Left Shift

Write the original binary number

For example, start with 1011.

Choose the shift amount

Decide how many positions the value should move to the left.

Move every bit left

Each shift increases the place value represented by every existing bit.

Add zeros on the right

Append one zero for every position shifted.

Read the final result

The resulting bit pattern is the logical left-shift output.

Worked Example: 1011 << 2

Start with the binary value 1011.

Original: 1011 After one left shift: 10110 After the second left shift: 101100 Final result: 1011 << 2 = 101100

Binary Left Shift Examples

Binary Number Shift Result
1 1 10
1 5 100000
101 0 101
101 1 1010
1011 1 10110
1011 2 101100
1110 3 1110000
1111 4 11110000

Why Left Shift Multiplies by Powers of Two

In an unsigned binary value with no fixed-width overflow, shifting left by one position doubles the numerical value. Shifting left by two positions multiplies it by four, and shifting by three positions multiplies it by eight.

General rule: x << n = x × 2ⁿ

For example, binary 1011 equals decimal 11.

1011₂ = 11₁₀ Shift left 2 positions: 101100₂ = 44₁₀ Check using powers of two: 11 × 2² = 11 × 4 = 44
Rule: for an unbounded unsigned value, a left shift by n positions multiplies the numerical value by 2ⁿ.

Left Shift by One Position

A single left shift moves every bit one place to the left and adds one zero to the right.

1011 << 1 = 10110 Decimal check: 11 × 2 = 22 And: 10110₂ = 22₁₀

Left Shift by Two Positions

Shifting left twice adds two zeros to the right and multiplies the unsigned value by four when no overflow is imposed.

1011 << 2 = 101100 Decimal: 11 × 4 = 44

Left Shift by Three Positions

A three-position shift adds three zeros to the right and corresponds to multiplication by eight.

1110 << 3 = 1110000 Decimal check: 1110₂ = 14₁₀
14 × 8 = 112
1110000₂ = 112₁₀

What Happens When You Shift Left by 0?

A shift of zero positions leaves the bit pattern unchanged because no bits move and no zeros are appended.

101101 << 0 = 101101

How Binary Place Values Change

Every position in a binary number represents a power of two. Moving a 1 bit one position to the left doubles the value represented by that bit.

Binary Decimal Left Shift 1 New Decimal
0001 1 0010 2
0010 2 0100 4
0100 4 1000 8
1000 8 10000 16

Unbounded Left Shift vs Fixed-Width Left Shift

The BinaryCon calculator displays an unbounded logical left shift: the bit pattern grows as needed and zeros are appended to the right.

Real processors and programming-language integer types often use a fixed number of bits, such as 8, 16, 32, or 64 bits. In a fixed-width environment, bits that move beyond the available left boundary can be discarded.

Unbounded: 11110000 << 1 = 111100000 If restricted to only 8 bits: 11110000
↓ shift left 1
11100000
The leftmost bit that exceeds the 8-bit boundary is lost.
Important: this calculator shows the full logical result without automatically truncating it to a processor-specific integer width.

What Is Left-Shift Overflow?

Overflow occurs when a fixed-width system cannot store all bits produced by the shift. Bits that move beyond the most significant position may be lost.

8-bit example: Original: 11000001 Full unbounded shift: 110000010 Restricted to 8 bits: 10000010

The exact numerical behavior of overflow depends on the programming language, integer type, width, and signedness.

Do Leading Zeros Affect a Left Shift?

For an unsigned mathematical value, leading zeros do not change the numeric value. They may still be useful for showing a fixed-width representation.

1011₂ = 001011₂ As unbounded values: 1011 << 2 = 101100
001011 << 2 = 00101100

Both results have the same unsigned numerical value, although the displayed bit widths differ.

Binary Left Shift vs Multiplication

For unsigned integers without overflow, left shifting is mathematically equivalent to multiplication by a power of two.

Shift operation

1011 << 3 = 1011000

Arithmetic equivalent

11 × 2³ = 11 × 8 = 88

Binary 1011000 equals decimal 88, confirming the equivalence.

Left Shift vs Right Shift

Left Shift

Moves bits toward higher place values and introduces zeros on the right. For unsigned values without overflow, it multiplies by powers of two.

Right Shift

Moves bits toward lower place values. For an unsigned logical right shift, bits leaving the right side are discarded and zeros enter from the left.

Binary Left Shift in Programming

Many programming languages use the << operator for a left-shift operation.

Conceptually: 11 << 1 = 22
11 << 2 = 44
11 << 3 = 88

However, language-specific rules can affect signed values, integer widths, overflow, type conversion, and very large shift amounts. The BinaryCon tool focuses on the underlying binary movement rather than a particular language's integer implementation.

Where Is Binary Left Shift Used?

Fast powers-of-two scaling

Shift an integer when an operation corresponds to multiplication by 2, 4, 8, 16, or another power of two.

Bitmask construction

Move a 1 bit into a chosen position when creating masks and flags.

Embedded systems

Position control bits inside hardware registers and packed fields.

Binary encoding

Place values into specific bit ranges when constructing packed data structures.

Computer graphics

Shift component values or packed pixel fields when manipulating integer-based data.

Computer science learning

Study binary place values, powers of two, integer representation, and bitwise operators.

Using Left Shift to Create Bit Masks

A single 1 can be shifted into a target position to create a simple bit mask.

Start: 00000001 Shift left 3: 00001000

The result can be used as a mask for testing, setting, clearing, or toggling that specific bit position with other bitwise operators.

Common Binary Left Shift Mistakes

Adding zeros on the wrong side

A left shift adds zeros on the right, not on the left.

Moving bits in the wrong direction

The bits move toward more significant positions when shifting left.

Ignoring fixed-width overflow

A mathematical unbounded shift and a fixed-width processor operation can produce different stored results.

Assuming multiplication equivalence always holds

The ×2ⁿ rule is straightforward for unsigned values without overflow. Fixed-width or signed implementations can introduce additional behavior.

Using a negative shift amount

A standard left-shift count is treated as a non-negative number of positions in this calculator.

Related BinaryCon Tools

Binary Left Shift Calculator FAQs

What is a binary left shift?
A binary left shift moves every bit toward the left by a chosen number of positions. In an unbounded logical shift, zeros are added on the right.
What does << mean?
The symbol << commonly represents the left-shift operator in programming and bitwise notation.
What is 1011 << 1?
The result is 10110. One zero is appended on the right.
What is 1011 << 2?
The result is 101100.
What is 1110 << 3?
The result is 1110000.
What happens when I left shift by zero?
The original bit pattern is unchanged because no positions are moved.
Does left shifting multiply by 2?
A one-position left shift multiplies an unsigned value by 2 when the operation does not overflow a fixed-width representation.
What does left shift by 2 multiply by?
It multiplies an unsigned value by 4, because 2² = 4, assuming no fixed-width overflow.
What does left shift by 3 multiply by?
It multiplies an unsigned value by 8, because 2³ = 8, assuming no overflow.
What is the general left-shift formula?
For an unsigned value without overflow, x << n = x × 2ⁿ.
Which side gets zeros in a left shift?
Zeros are introduced on the right side as the existing bits move left.
Can a left shift cause overflow?
Yes. In fixed-width integers, bits shifted beyond the available most-significant position may be discarded.
Does BinaryCon truncate the result to 8, 16, or 32 bits?
No. This calculator displays the full logical result instead of automatically restricting it to a processor-specific integer width.
Do leading zeros change a left-shift value?
Leading zeros do not change an unsigned numerical value, although they can be important when displaying or working with fixed-width data.
Is left shift the opposite of right shift?
They move bits in opposite directions, but information lost because of a fixed-width shift or discarded bits cannot always be recovered simply by shifting back.
Why is left shift useful for bitmasks?
A single 1 can be shifted into a chosen position, producing a mask that can then be combined with AND, OR, XOR, or NOT operations.
Can BinaryCon shift very long binary values?
Yes. The calculator works directly with the binary string and appends the required zeros without converting the complete value into a normal floating-point number.

Understand Binary Left Shift Clearly

Use BinaryCon to shift binary values, explore powers of two, create bit masks, study fixed-width overflow, and verify left-shift calculations with practical examples and clear explanations.

Scroll to Top