Input
The token is an integer and may carry a + or − sign. No width is applied.
Digits are case-insensitive. Spaces and underscores are accepted as visual separators.
Digits are case-insensitive. Spaces and underscores are accepted as visual separators.
Result
Signed mathematical integer: “110101” is read as a base-2 integer and shown in base 16.
CS2100 Fixed-Width Signed Binary Interpretations (8-bit)
In digital hardware, registers have a strict bit width. The identical bit string can represent radically different numbers depending on the encoding scheme. Range and overflow must be evaluated against the chosen bit width.
Unsigned Fixed-Width
[0, 255]Range: 0 to 2^N - 1. Does not support negative values.
Sign-Magnitude
[-127, +127]Symmetric range with redundant zero representations: +0 (all 0s) and -0 (MSB 1, rest 0s).
1's Complement
[-127, +127]Symmetric range with redundant zeros: +0 (all 0s) and -0 (all 1s). Negation is bitwise NOT.
2's Complement
CS2100 STANDARDAsymmetric range: min = -2^7 (-128), max = +2^7 - 1 (+127). Unique zero (all 0s).
Excess-127
BIASEDBiased representation: code = value + 127. Valid word: 0 to 2^8-1. Representable range: -127 to +128.
Interactive Bit Pattern Decoder (8-bit)
Enter any 8-bit binary pattern to compare its decimal value across all five interpretations simultaneously:
| Representation | Interpreted Decimal Value | Decoding Explanation |
|---|---|---|
| Unsigned | 128 | Unsigned value computed from base 2: 128. |
| Sign-Magnitude | -0 | MSB is 1 and magnitude is 0: Negative Zero (-0). |
| 1's Complement | -127 | MSB is 1: bitwise inverted magnitude is 01111111 (127) → -127. |
| 2's Complement | -128 | MSB is 1: negative value = raw (128) - 2^8 (256) = -128. |
| Excess-127 (Biased) | 1 | Biased Excess-127: raw unsigned value 128 minus bias 127 (128 - 127) = 1. |