Binary Right Shifter
Shift each binary number to the right. Logical or arithmetic shift, with unlimited / self-length / truncated length modes and optional signed padding.
Binary Bit Right-shifter Examples
Click any card to tryHow to Use Binary Right Shift Calculator
To perform a binary right shift, enter one or more binary numbers into the input field (one per line) and set the shift amount. The tool shifts each binary number's bits to the right by the specified number of positions, filling the vacated left bits with zeros. Results are shown in both binary and decimal.
The right shift operation is equivalent to integer division by powers of 2. Shifting right by 1 is the same as dividing by 2, shifting right by 2 divides by 4, and so on. This tool is useful for learning binary arithmetic, debugging bitwise operations, and performing fast integer division in low-level programming contexts.
Frequently Asked Questions
What is a binary right shift? expand_more
A binary right shift moves all bits in a binary number one or more positions to the right. Bits shifted off the right end are discarded, and the leftmost positions are filled with zeros (for logical right shift).
What is the difference between a logical and arithmetic right shift? expand_more
A logical right shift always fills the leftmost bits with zeros. An arithmetic right shift fills with the sign bit (0 for positive, 1 for negative), preserving the sign of signed integers. This tool performs logical right shifts.
What is right shift used for in programming? expand_more
Right shifting is used for fast integer division by powers of 2, bit manipulation, extracting bit fields from registers, and optimising performance-critical code. In most languages the >> operator performs right shift.
What happens to bits shifted off the right end? expand_more
Bits that fall off the right end of the number are lost. They are not carried over or stored. This is why right shifting divides (with truncation) rather than giving an exact fractional result.
What is 1010 in binary right-shifted by 1? expand_more
1010 (decimal 10) right-shifted by 1 gives 0101 (decimal 5), demonstrating that right shifting by 1 halves the integer value.
Related Tools
All Developer Toolsarrow_forwardJSON Formatter
Pretty-print, validate and minify JSON with syntax highlighting.
Base64 Encode / Decode
Encode strings or files to Base64 or decode Base64 back to text.
URL Encode / Decode
Percent-encode URLs or decode percent-encoded strings.
HTML Encode / Decode
Escape HTML entities or unescape them back to characters.