Our Network


Coming Soon


Coming Later

Binary Bit Left-shifter

world's simplest binary tool

Free online binary left-shifter. Just load your binary values and their bits will automatically get shifted to the left. There are no ads, popups or nonsense, just an awesome bit shifter. Load bits – get left-shifted bits. Created for developers by developers from team Browserling.

᠎᠎᠎          Tool Options

Shift Length

Specify the number of bits (n)
to shift binary to the left.

Shift Mode

Add n zeros at the end of
the binary number.
Add n zeros at the end and
remove n bits from the
beginning of the number.
Add n zeros at the end and
truncate the binary number
from the left to k digits.
Truncation length (k bits).

Output Format

Pad shifted binary to this length.
(Use 0 to disable padding.)
Use 0's for padding.
Use 1's for padding.
Add a binary prefix at the
beginning or a binary postfix
at the end of the number.

What Is a Binary Bit Left-shifter?

This tool shifts binary numbers to the left side. It moves each digit (bit) in the number's binary representation by one or more positions to the left and adds zeros in the empty positions on the right. This mathematical operation is also known as logical left-shift, arithmetic left-shift, or bitwise left-shift. For the left-shift, all these operations are equivalent (but they are not equivalent in right-shift operation). We have implemented three main types of this operation: unlimited left-shift, self-length left-shift, and truncated left-shift (also known as constant-length left-shift). The unlimited left-shift adds n (shift length) zeros at the end of the binary number. For example, applying the unlimited shift to the binary number 10110 with a shifting width of 2, it becomes 1011000. The self-length shift preserves the bit-length of the number. It moves all bits n positions to the left, fills empty bits on the right with zeros, and truncates the number to its original length. In this case, the number 10110 becomes 11000 (with shift-width = 2). Truncated left-shift adds n zeros at the end of the binary number and truncates the number from the left side to k positions (k is truncation length). Given the same number 10110, shift length n = 2, and truncation length k = 4, the number shifts to 1000. You can also add binary prefix or postfix to the output values and perform signed and unsigned padding of the output values. Signed padding adds ones in front of the numbers and unsigned padding adds zeros. Also, a fun mathematical fact is that the left-shift operation by n positions is the same as multiplying the number by 2n. Simple and easy!


Binary Bit Left-shifter Examples

Click to try!

Regular Left Shift

This example applies the unlimited left shift algorithm to ten binary numbers listed in a column. This shift type adds as many zeros at the end of the number as you need and has no particular length limit. That's why we call it "unlimited". In this example, it appends two extra zeros and outputs the new binary numbers. It also enables unsigned padding to six positions so that all output numbers have the same length.

1 10 11 100 101 110 111 1000 1001 1010
000100 001000 001100 010000 010100 011000 011100 100000 100100 101000
Required options
These options will be used automatically if you select this example.
Specify the number of bits (n)
to shift binary to the left.
Add n zeros at the end of
the binary number.
Pad shifted binary to this length.
(Use 0 to disable padding.)
Use 0's for padding.
Add a binary prefix at the
beginning or a binary postfix
at the end of the number.

Constant Length Left Shift

In this example, we shift five 10-digit binary numbers to the left using the self-length shift method and set the shift-width equal to 3. This method removes the first 3 bits at the beginning of input numbers and adds 3 bits at the end of the input number. This operation leaves the numbers' bit-length unchanged and that's why we call it the "self-length" method (and sometimes the "constant-length" method).

1010101010 0101010101 1100110011 0011001100 1111111111
0101010000 1010101000 0110011000 1001100000 1111111000
Required options
These options will be used automatically if you select this example.
Specify the number of bits (n)
to shift binary to the left.
Add n zeros at the end and
remove n bits from the
beginning of the number.
Pad shifted binary to this length.
(Use 0 to disable padding.)
Add a binary prefix at the
beginning or a binary postfix
at the end of the number.

Truncated Left Shift

In this example, we use the "Truncated Left Shift" method on nine binary numbers. We set the shift length to 2 and truncation length to 6. In this case, the utility first expands the number by two zero bits and then truncates the numbers from the left side to 6 digits. It also adds a lowercase binary postfix "b" and disables padding by setting padding to 0.

1011 10110 100001 101100 110111 1000010 1001101 1011000 1100011
101100b 011000b 000100b 110000b 011100b 001000b 110100b 100000b 001100b
Required options
These options will be used automatically if you select this example.
Specify the number of bits (n)
to shift binary to the left.
Add n zeros at the end and
truncate the binary number
from the left to k digits.
Truncation length (k bits).
Pad shifted binary to this length.
(Use 0 to disable padding.)
Add a binary prefix at the
beginning or a binary postfix
at the end of the number.

Pro tips Master online binary tools

You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!

https://onlinetools.com/binary/shift-binary-left?input=1%0A10%0A11%0A100%0A101%0A110%0A111%0A1000%0A1001%0A1010&shift-length=2&unlimited-left-shift=true&padding-length=6&unsigned-padding=true&prefix=without-prefix

All Binary Tools

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!

Quickly convert ASCII characters to binary numbers.

Quickly convert binary numbers to ASCII characters.

Quickly convert UTF8 characters to binary bits.

Quickly convert binary bits to UTF8 characters.

Quickly generate random binary values.

Quickly create an image from a binary number.

Quickly convert binary numbers to octal numbers.

Quickly convert octal numbers to binary numbers.

Quickly convert binary numbers to decimal numbers.

Quickly convert decimal numbers to binary numbers.

Quickly convert binary numbers to hexadecimal numbers.

Quickly convert hexadecimal numbers to binary numbers.

Quickly convert octal values to BCD values.

Quickly convert BCD values to octal values.

Quickly convert decimal values to BCD values.

Quickly convert BCD values to decimal values.

Quickly convert hex values to BCD values.

Quickly convert BCD values to hex values.

Quickly convert an IP address to a binary IP address.

Quickly convert a binary IP address to a human readable IP.

Quickly convert an IPv6 address to a binary IPv6 address.

Quickly convert a binary IPv6 address to a human readable IPv6.

Quickly convert a string to binary values.

Quickly convert binary values to a string.

Quickly convert binary numbers to reflected binary numbers.

Quickly convert reflected binary numbers to binary numbers.

Quickly convert octal numbers to reflected binary numbers.

Quickly convert reflected binary numbers to octal numbers.

Quickly convert decimal numbers to reflected binary numbers.

Quickly convert reflected binary numbers to decimal numbers.

Quickly convert hexadecimal numbers to Gray code.

Quickly convert Gray code to hexadecimal numbers.

Quickly calculate the sum of a bunch of binary values.

Quickly calculate the difference of a bunch of binary values.

Quickly calculate the product of a bunch of binary values.

Quickly convert a negative number to a binary representation.

Quickly convert a negative binary number to a decimal number.

Quickly convert base 2 numbers to base -2.

Quickly calculate bitwise AND of a bunch of binary values.

Quickly calculate bitwise NAND of a bunch of binary values.

Quickly calculate bitwise OR of a bunch of binary values.

Quickly calculate bitwise NOR of a bunch of binary values.

Quickly calculate bitwise XOR of a bunch of binary values.

Quickly calculate bitwise XNOR of a bunch of binary values.

Quickly calculate bitwise NOT of a bunch of binary values.

Quickly find the number of high bits in binary values.

Quickly find the number of low bits in binary values.

Quickly invert bits of binary numbers.

Quickly reverse the order of bits in binary numbers.

Quickly convert plain text to binary values.

Quickly convert binary numbers to plain text.

Quickly randomize the order of bits in binary numbers.

Quickly rotate bits in binary numbers to the left or right.

Quickly shift bits of a binary number to the left.

Quickly shift bits of a binary number to the right.


Coming Soon

These binary tools are on the way!
Binary Editor

View and edit binary values in your browser.

Create a File from Binary Values

Convert binary numbers to a binary file.

Binary Dump a File

Create a binary dump of files in your browser.

Convert Binary to Ternary

Convert binary numbers to ternary numbers.

Convert Ternary to Binary

Convert ternary numbers to binary numbers.

Convert Binary to Arbitrary Base

Convert binary values to any base (up to base 64).

Convert Binary to Roman Number

Convert binary numbers to Roman numerals.

Convert Roman Number to Binary

Convert Roman numerals to binary values.

Add Binary Bits

Find the sum of set bits in binary numbers.

Swap Binary Bits

Swap pairs of adjacent bits in a binary number.

Generate a Binary Sequence

Create a list of increasing of decreasing binary numbers.

Generate an Alternating Binary Sequence

Create a binary number with alternating bits.

Generate Binary Choices

Create a list of all binary choices of a specific length.

Binary Sheffer Stroke

Calculate bitwise sheffer stroke operator of binary values.

Convert Binary to BCD

Encode every binary bit as a binary coded decimal.

Convert BCD to Binary

Decode binary coded decimals to binary bits.

Divide Binary Numbers

Perform division operation on several binary numbers.

Rotate a Binary Right

Rotate bits of a binary number to the right.

Rotate a Binary Left

Rotate bits of a binary number to the left.

Extract Bits from Binary Numbers

Extract n-th bit from a binary number.

Calculate Parity

Count parity of a binary number.

Convert EBCDIC to Binary

Convert EBCDIC characters to binary values.

Convert Binary to EBCDIC

Convert binary bits to EBCDIC symbols.

Swap Binary Endianness

Change endianness of a binary number.

Convert Little Endian Binary to Big Endian Binary

Convert a binary number from little endian to big endian.

Convert Big Endian Binary to Little Endian Binary

Convert a binary number from big endian to little endian.

Convert a Floating Point Number to Binary

Find the binary representation of a floating point number.

Convert a Binary Number to Floating Point

Decode a binary number to a floating point number.

Binarize an Image

Convert any image to binary colors.

Convert Binary Values to a Bitmap

Convert a binary string to a bitmap image.

Convert a Bitmap to Binary Numbers

Convert a bitmap image to zeros and ones.

Duplicate Bits in Bytes

Replace each bit with two bits in each byte.

Convert Bits to Bytes

Group bits together to create bytes.

Convert Bytes to Bits

Expand bytes into individual bits.

Split Binary Values

Split a binary number into smaller binary numbers.

Join Binary Values

Join multiple smaller binary numbers into a single binary.

Slice Binary Values

Extract a part of a binary number.

Replace Binary Values

Substitute ones and zeros with any other values.

Pad Binary Values

Add signed or unsigned padding to binary numbers.

Truncate Binary Values

Drop leading or trailing bits and make a binary value shorter.

Randomly Flip Binary Bits

Introduce random errors in binary values.

Color Binary Numbers

Print the same binary numbers in the same colors.

Color Binary Bits

Use two different colors for binary zeros and ones.

Compare Binary Streams

See the difference between two binary blobs of bytes.

Visualize Binary Operations

Create visualizations of and, or, xor, not binary ops.

Create a Binary ZigZag

Make binary bits go in a zigzag.

Create a Binary Spiral

Make binary bits go in a spiral.

Create a Binary Circle

Make binary bits go in a circle.

Create a Binary Square

Create a sqaure shape from binary bits.

Generate Random Bits

Create a sequence of random binary bits.

Generate Random Nibbles

Create a sequence of random binary nybbles.

Generate Random Bytes

Create a sequence of random binary octets.

Generate Random Words

Create a sequence of random binary words.

Generate Random Double Words

Create a sequence of random binary long words.

Generate Binary Look-and-Say

Create a look-and-say sequence in base-2.

RLE-encode a Binary Number

Apply run length encoding algorithm on a binary sequence.

RLE-decode a Binary Number

Decode a previously RLE-encoded binary sequence.

Spell a Binary Number

Spell a binary number in words.

Analyze Binary Data

Print statistics of the input binary values.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋