Shift Binary Right screenshot

Shift Binary Right

Move the bits of a binary value right, dropping the low bits.

Privacy First
0 Runs
Updated 2026-11-06
No upload

What this page computes

Enter a binary value and a shift count, and the page moves every bit right, discarding the bits that fall off the low end, then prints the binary and the decimal value. A right shift divides by two raised to the count and truncates.

Where it stops

Dropping is truncation, not rounding: 1011 shifted right once is 101, whatever the discarded bit was. A negative count is refused because it belongs on the left-shift page, and a count above 4096 is refused because every bit would fall off.

Why the answer repeats

The shift is BigInt arithmetic in this tab, so the same input always prints the same bits and nothing is fetched or stored.

Right-shifts a binary value by a chosen number of positions, discarding the low bits and printing the binary and decimal value. Negative counts and counts above 4096 are refused; the drop is truncation, not rounding.

How to use it

Type the binary value and the shift count, then press Run. The second line notes how many bits were dropped.

The arithmetic

Each position halves the value and discards the remainder. BigInt keeps a wide value exact, which a 32-bit shift on a JavaScript number would not.

What to Expect

Best for

  • Truncates, never rounds
  • Dropped-bit count stated
  • BigInt, no 32-bit wrap

What this tool keeps

  • the shifted bits, the decimal value and the dropped count

Sample input

101000 with a shift of 2

Sample output

101000 >> 2 = 1010 Decimal = 10 (the 2 low bit(s) were dropped)

Frequently asked questions

How do I use the shift binary right page?

Type the binary value and the shift count, then press Run.

Is anything uploaded?

No. The whole calculation runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once it has loaded.

What are its limits or bounds?

The count must be from 0 to 4096 and the value must contain only 0 and 1. A negative count must be refused, because shifting the other way is a different page.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.