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.

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 2^{n}. Simple and easy!

Click to try

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

Specify the number of bits (n)

to shift binary to the left.

to shift binary to the left.

Add n zeros at the end of

the binary number.

the binary number.

Pad shifted binary to this length.

(Use 0 to disable padding.)

(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.

beginning or a binary postfix

at the end of the number.

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

Specify the number of bits (n)

to shift binary to the left.

to shift binary to the left.

Add n zeros at the end and

remove n bits from the

beginning of the number.

remove n bits from the

beginning of the number.

Pad shifted binary to this length.

(Use 0 to disable padding.)

(Use 0 to disable padding.)

Add a binary prefix at the

beginning or a binary postfix

at the end of the number.

beginning or a binary postfix

at the end of the number.

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

Specify the number of bits (n)

to shift binary to the left.

to shift binary to the left.

Add n zeros at the end and

truncate the binary number

from the left to k digits.

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.)

(Use 0 to disable padding.)

Add a binary prefix at the

beginning or a binary postfix

at the end of the number.

beginning or a binary postfix

at the end of the number.

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

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

Convert ASCII to Binary

Quickly convert ASCII characters to binary numbers.

Convert Binary to ASCII

Quickly convert binary numbers to ASCII characters.

Convert UTF8 to Binary

Quickly convert UTF8 characters to binary bits.

Convert Binary to UTF8

Quickly convert binary bits to UTF8 characters.

Generate a Random Binary

Quickly generate random binary values.

Convert Binary to an Image

Quickly create an image from a binary number.

Convert Binary to Octal

Quickly convert binary numbers to octal numbers.

Convert Octal to Binary

Quickly convert octal numbers to binary numbers.

Convert Binary to Decimal

Quickly convert binary numbers to decimal numbers.

Convert Decimal to Binary

Quickly convert decimal numbers to binary numbers.

Convert Binary to Hexadecimal

Quickly convert binary numbers to hexadecimal numbers.

Convert Hexadecimal to Binary

Quickly convert hexadecimal numbers to binary numbers.

Convert Octal to Binary Coded Decimal

Quickly convert octal values to BCD values.

Convert Binary Coded Decimal to Octal

Quickly convert BCD values to octal values.

Convert Decimal to Binary Coded Decimal

Quickly convert decimal values to BCD values.

Convert Binary Coded Decimal to Decimal

Quickly convert BCD values to decimal values.

Convert Hexadecimal to Binary Coded Decimal

Quickly convert hex values to BCD values.

Convert Binary Coded Decimal to Hexadecimal

Quickly convert BCD values to hex values.

Convert an IP Address to Binary

Quickly convert an IP address to a binary IP address.

Convert Binary to an IP Address

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

Convert an IPv6 Address to Binary

Quickly convert an IPv6 address to a binary IPv6 address.

Convert Binary to an IPv6 Address

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

Convert a String to Binary

Quickly convert a string to binary values.

Convert Binary to a String

Quickly convert binary values to a string.

Convert Binary to Gray Code

Quickly convert binary numbers to reflected binary numbers.

Convert Gray Code to Binary

Quickly convert reflected binary numbers to binary numbers.

Convert Octal to Gray Code

Quickly convert octal numbers to reflected binary numbers.

Convert Gray Code to Octal

Quickly convert reflected binary numbers to octal numbers.

Convert Decimal to Gray Code

Quickly convert decimal numbers to reflected binary numbers.

Convert Gray Code to Decimal

Quickly convert reflected binary numbers to decimal numbers.

Convert Hex to Gray Code

Quickly convert hexadecimal numbers to Gray code.

Convert Gray Code to Hex

Quickly convert Gray code to hexadecimal numbers.

Add Binary Numbers

Quickly calculate the sum of a bunch of binary values.

Subtract Binary Numbers

Quickly calculate the difference of a bunch of binary values.

Multiply Binary Numbers

Quickly calculate the product of a bunch of binary values.

Encode a Negative Binary

Quickly convert a negative number to a binary representation.

Decode a Negative Binary

Quickly convert a negative binary number to a decimal number.

Convert Binary to Negabinary

Quickly convert base 2 numbers to base -2.

AND Binary Values

Quickly calculate bitwise AND of a bunch of binary values.

NAND Binary Values

Quickly calculate bitwise NAND of a bunch of binary values.

OR Binary Values

Quickly calculate bitwise OR of a bunch of binary values.

NOR Binary Values

Quickly calculate bitwise NOR of a bunch of binary values.

XOR Binary Values

Quickly calculate bitwise XOR of a bunch of binary values.

XNOR Binary Values

Quickly calculate bitwise XNOR of a bunch of binary values.

NOT Binary Values

Quickly calculate bitwise NOT of a bunch of binary values.

Count Number of Ones

Quickly find the number of high bits in binary values.

Count Number of Zeros

Quickly find the number of low bits in binary values.

Invert Binary Values

Quickly invert bits of binary numbers.

Reverse Binary Numbers

Quickly reverse the order of bits in binary numbers.

Convert Text to Binary

Quickly convert plain text to binary values.

Convert Binary to Text

Quickly convert binary numbers to plain text.

Shuffle Bits in Binary Numbers

Quickly randomize the order of bits in binary numbers.

Rotate Bits in Binary Numbers

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

Shift a Binary Left

Quickly shift bits of a binary number to the left.

Shift a Binary Right

Quickly shift bits of a binary number to the right.

Created with love by

51K

@browserling

51K

@browserling

We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling we love to make people's lives easier, so we created this collection of binary tools. Our tools have the simplest user interface that doesn't require advanced computer skills and they are used by millions of people every month. Our binary tools are actually powered by our programmer tools that we created over the last couple of years. Check them out!

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 to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here

Click to reveal a secret

Secret message

If you love our tools, then we love you, too! Use coupon code BINARYLING to get a discount for our premium plans.