Analyze signed and unsigned shifts with practical detail. Track bit patterns before and after moves. Export neat results and compare values across number systems.
Bitwise shifting moves binary digits left or right within a selected width. The calculator evaluates the pattern using these rules:
R = (U × 2^n) mod 2^wR = floor(U / 2^n)R = signed(U) >> nHere, U is the unsigned bit pattern, n is the shift count, and w is the selected bit width.
| Input | Base | Width | Operation | Shift | Result | Binary Result |
|---|---|---|---|---|---|---|
| 13 | Decimal | 8-bit | Left Shift | 2 | 52 | 0011 0100 |
| 240 | Decimal | 8-bit | Logical Right Shift | 3 | 30 | 0001 1110 |
| 0xF2 | Hexadecimal | 8-bit | Arithmetic Right Shift | 2 | -4 signed / 252 unsigned | 1111 1100 |
| 101101 | Binary | 8-bit | Left Shift | 1 | 90 | 0101 1010 |
A bitwise shift moves every binary digit left or right by a chosen number of positions. It changes the stored pattern and usually changes the decimal value too.
For values that stay within the selected width, a left shift by n is similar to multiplying by 2^n. Overflowed bits are dropped.
Logical right shift fills new left bits with zero. Arithmetic right shift repeats the sign bit, which helps preserve signed number behavior for negative values.
Bit width decides how many bits are kept. Any extra higher bits are discarded, and the same pattern can represent different signed values in different widths.
Yes. Negative decimal inputs are supported. The calculator converts them into the selected width, then shows both signed and unsigned interpretations after shifting.
If the shift count reaches or exceeds the selected width, the result becomes zero for left and logical right shifts. Arithmetic right shift becomes all zeros or all ones.
The same bit pattern can mean different decimal values. Showing both views makes the result clearer, especially when the sign bit is turned on.
After calculation, you can download a CSV summary for spreadsheets and a PDF summary for sharing, printing, or keeping as a quick reference.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.