Signed Binary Decoder

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.

✓ Sign Bit Detection ✓ Binary Magnitude ✓ Decimal Interpretation ✓ Negative Zero Detection ✓ Free Unlimited Use
±→01
Signed Magnitude Decoder
● Ready
The first bit is interpreted as the sign bit. At least 2 bits are required.
Try:
✓ Binary Magnitude
Ordinary unsigned binary magnitude
Sign Positive
Sign Bit 0
Decimal Value 0
Decoding Breakdown

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.

Rule: 0xxxxxxx = positive 1xxxxxxx = negative The sign bit is not part of the magnitude itself.

Example: Decode 00001011

Signed-magnitude pattern: 00001011 Separate the first bit: Sign bit = 0 Magnitude = 0001011 Remove unnecessary leading zeros: Magnitude = 1011 Since the sign bit is 0: Decimal value = +11

Example: Decode 10001011

Input: 10001011 Separate the fields: Sign bit = 1 Magnitude bits = 0001011 Binary magnitude: 1011 Decimal magnitude: 11 Because sign bit 1 means negative: Value = −11

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.

8-bit positive zero: 00000000 8-bit negative zero: 10000000

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.

10001011 │└─────── magnitude bits └ sign bit

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.

For example, 8-bit: 10001011 Signed magnitude: −11 The same bit pattern has a different value if interpreted as two’s complement.

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.

Important: always know which signed-binary encoding is being used before interpreting a bit pattern. Signed magnitude, one’s complement, and two’s complement can assign different values to the same bits.

Related BinaryCon Tools

Signed Magnitude to Binary Converter FAQs

How do you decode signed-magnitude binary?
Read the first bit as the sign, then treat all remaining bits as an unsigned binary magnitude.
What does sign bit 0 mean?
It means the value is positive.
What does sign bit 1 mean?
It means the value is negative, except that an all-zero magnitude represents negative zero.
What does 00001011 mean in signed magnitude?
The sign bit is 0 and the magnitude is 1011, so the value is +11.
What does 10001011 mean in signed magnitude?
The sign bit is 1 and the magnitude is 1011, so the value is −11.
What does 1111 mean in 4-bit signed magnitude?
The first bit indicates negative and the remaining magnitude is 111, so the value is −7.
What is negative zero in signed magnitude?
Negative zero has sign bit 1 and all magnitude bits equal to 0. In 8-bit form, that is 10000000.
Can signed magnitude have positive zero?
Yes. Positive zero uses sign bit 0 with all magnitude bits zero, such as 00000000 in 8-bit form.
Is signed magnitude the same as ordinary binary?
No. Ordinary unsigned binary treats every bit as part of the numeric magnitude, while signed magnitude reserves the first bit for the sign.
Is signed magnitude the same as two’s complement?
No. They use different rules for representing negative numbers.
Can I enter any bit width?
Yes. The calculator determines the width directly from the number of bits you enter. At least two bits are required.
Does BinaryCon require registration?
No. The Signed Magnitude to Binary Converter can be used directly without signup.
Scroll to Top