Signed Magnitude to Binary Converter
Decode a signed-magnitude bit pattern instantly. Enter a value such as 10001011 to separate the sign bit from the magnitude, recover the ordinary binary magnitude, and see the corresponding signed decimal value.
How Signed-Magnitude Decoding Works
Signed-magnitude binary uses the leftmost bit to indicate the sign of the number. Every remaining bit represents the magnitude, or absolute value.
Example: Decode 00001011
Example: Decode 10001011
How to Convert Signed Magnitude to Binary
1. Read the first bit
The leftmost bit is the sign bit.
2. Determine the sign
A sign bit of 0 means positive; a sign bit of 1 means negative.
3. Remove the sign bit
All remaining bits form the magnitude field.
4. Normalize the magnitude
Leading zeros may be removed without changing the unsigned value.
5. Convert magnitude if needed
The remaining binary value can be interpreted as an ordinary unsigned binary integer.
6. Apply the sign
Use the sign bit to interpret the final positive or negative numerical value.
Signed-Magnitude Examples
| Signed Magnitude | Sign | Binary Magnitude | Decimal |
|---|---|---|---|
00000001 |
Positive | 1 |
+1 |
10000001 |
Negative | 1 |
−1 |
00000101 |
Positive | 101 |
+5 |
10000101 |
Negative | 101 |
−5 |
00001011 |
Positive | 1011 |
+11 |
10001011 |
Negative | 1011 |
−11 |
01111111 |
Positive | 1111111 |
+127 |
11111111 |
Negative | 1111111 |
−127 |
Positive and Negative Zero
Signed magnitude has two different bit patterns for zero because the magnitude bits can all be zero with either possible sign bit.
The calculator identifies the second form as negative zero rather than treating the pattern as an ordinary negative non-zero number.
Why the First Bit Is Not Part of the Magnitude
In signed-magnitude encoding, the first position has a special meaning: it stores sign information rather than a normal binary place value.
For an 8-bit pattern, only seven bits contribute to the absolute magnitude.
Signed Magnitude vs Unsigned Binary
| Bit Pattern | Unsigned Interpretation | Signed-Magnitude Interpretation |
|---|---|---|
00001011 |
11 | +11 |
10001011 |
139 | −11 |
The same bits can represent very different values depending on the encoding rule.
Signed Magnitude vs Two’s Complement
A signed-magnitude pattern must not be decoded using two’s complement rules. The two systems interpret negative bit patterns differently.
Why Bit Width Matters
The width tells you how many total bits belong to the representation. The leftmost one is always the sign bit, leaving all others for magnitude.
| Total Width | Sign Bits | Magnitude Bits |
|---|---|---|
| 4 | 1 | 3 |
| 8 | 1 | 7 |
| 16 | 1 | 15 |
| 32 | 1 | 31 |
Common Signed-Magnitude Decoding Mistakes
Treating all bits as magnitude
The first bit represents the sign and must be separated before interpreting magnitude.
Using two’s complement rules
Signed magnitude does not invert or complement the magnitude for negative numbers.
Ignoring negative zero
A sign bit of 1 with all magnitude bits zero represents negative zero.
Using only one bit
A signed-magnitude representation needs at least one sign bit and one magnitude bit.
Related BinaryCon Tools
Signed Magnitude to Binary Converter FAQs
How do you decode signed-magnitude binary?
What does sign bit 0 mean?
What does sign bit 1 mean?
What does 00001011 mean in signed magnitude?
1011, so the value is +11.
What does 10001011 mean in signed magnitude?
1011, so the value is −11.
What does 1111 mean in 4-bit signed magnitude?
111,
so the value is −7.
What is negative zero in signed magnitude?
10000000.
Can signed magnitude have positive zero?
00000000 in 8-bit form.