Free online binary right-shifter. Just load your binary values and their bits will automatically get shifted to the right. There are no ads, popups or nonsense, just an awesome bit shifter. Load bits – get right-shifted bits. Created for developers by developers from team Browserling.
This tool shifts binary numbers to the right side. It moves bits of a binary number by a certain number of positions to the right and adds new bits on the left. There are two types of right bit shift: Logical Shift and Arithmetic Shift. In left-shift these operations are the same but in right-shift they are different. The logical right-shift always adds zeros at the beginning of a number. The arithmetic right-shift copies the most-significant bit (MSB) and adds it to the beginning of a number. The MSB can be either a zero or a one. For both types, you can also choose a shift mode that controls the shift behavior. The unlimited mode simply adds the given number of bits at the leaves the original bits unchanged. For example, if the input number is 11010 and shift-length is 2, then the output is 0011010 in logical shift and 1111010 in arithmetic shift. The self-length mode, also known as the constant-length mode keeps the original length of the input number. It deletes as many bits from the end of the binary as it adds at the start, leaving the total length unchanged. For example, if the input number is, again 11010 and the shift-length is, again 2, then the output is 00110 in logical shift and 11110 in arithmetic shift. The truncate mode shortens the binary numbers from the right side to the specified length (k). For example, if the input number is 11010, the shift width is 2, and cut length k is 4, then the output is 0011 in logical shift and 1111 in arithmetic shift. You can also extend the length of output binary numbers by using signed and unsigned padding. The signed padding will use 1-bits and the unsigned padding will use 0-bits. Additionally, you can decorate the shifted bytes with the binary base prefix or postfix. Something super cool about right-shifting is that shifting a number one position to the right is the same as dividing it by 2. Similarly, right-shift by n is the same as dividing it by 2n. Simple and easy!
In this example, we operate on six binary numbers using the logical right-shift type and unlimited shift mode. We set the shift width to 3 and as a result, all digits in each number are moved to the right by three positions and empty places at the beginning are filled with zeros. The word "unlimited" here means that you could shift the numbers by 900 positions and it would still work.
This example applies the arithmetic right shift method to several different six-digit binary numbers. As the shift length is set to 2, it moves the first two bits to the right and fills the empty positions on the left with copies of the most-significant bit (MSB). In the first, second, and fourth numbers, the MSB is equal to one, and in all other numbers, it's equal to zero. It also adds a lowercase binary number indicator "0b" to the output.
This example also performs an arithmetic shift but uses the truncation mode. In this case, the numbers are first shifted one position to the right, then the most-significant bit is duplicated at the beginning, and then numbers get truncated from the right side to 6 characters. After all this, the numbers are sign-padded to a full byte (8 positions) and the suffix "B" is added.
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!
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.
View and edit binary values in your browser.
Convert binary numbers to a binary file.
Create a binary dump of files in your browser.
Convert binary numbers to ternary numbers.
Convert ternary numbers to binary numbers.
Convert binary values to any base (up to base 64).
Convert binary numbers to Roman numerals.
Convert Roman numerals to binary values.
Find the sum of set bits in binary numbers.
Swap pairs of adjacent bits in a binary number.
Create a list of increasing of decreasing binary numbers.
Create a binary number with alternating bits.
Create a list of all binary choices of a specific length.
Calculate bitwise sheffer stroke operator of binary values.
Encode every binary bit as a binary coded decimal.
Decode binary coded decimals to binary bits.
Perform division operation on several binary numbers.
Rotate bits of a binary number to the right.
Rotate bits of a binary number to the left.
Extract n-th bit from a binary number.
Count parity of a binary number.
Convert EBCDIC characters to binary values.
Convert binary bits to EBCDIC symbols.
Change endianness of a binary number.
Convert a binary number from little endian to big endian.
Convert a binary number from big endian to little endian.
Find the binary representation of a floating point number.
Decode a binary number to a floating point number.
Convert any image to binary colors.
Convert a binary string to a bitmap image.
Convert a bitmap image to zeros and ones.
Replace each bit with two bits in each byte.
Group bits together to create bytes.
Expand bytes into individual bits.
Split a binary number into smaller binary numbers.
Join multiple smaller binary numbers into a single binary.
Extract a part of a binary number.
Substitute ones and zeros with any other values.
Add signed or unsigned padding to binary numbers.
Drop leading or trailing bits and make a binary value shorter.
Introduce random errors in binary values.
Print the same binary numbers in the same colors.
Use two different colors for binary zeros and ones.
See the difference between two binary blobs of bytes.
Create visualizations of and, or, xor, not binary ops.
Make binary bits go in a zigzag.
Make binary bits go in a spiral.
Make binary bits go in a circle.
Create a sqaure shape from binary bits.
Create a sequence of random binary bits.
Create a sequence of random binary nybbles.
Create a sequence of random binary octets.
Create a sequence of random binary words.
Create a sequence of random binary long words.
Create a look-and-say sequence in base-2.
Apply run length encoding algorithm on a binary sequence.
Decode a previously RLE-encoded binary sequence.
Spell a binary number in words.
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