Signed Binary Tool

Binary to Signed Magnitude Converter

Convert an unsigned binary magnitude into signed-magnitude representation. Enter a binary value, choose positive or negative, and select the total bit width to generate the sign bit and padded magnitude instantly.

✓ Positive & Negative ✓ Adjustable Bit Width ✓ Sign Bit Breakdown ✓ Range Validation ✓ Free Unlimited Use
±01
Signed Magnitude Conversion
● Ready
The selected width includes one sign bit. An 8-bit signed-magnitude value therefore has 7 magnitude bits.
Try:
✓ Signed Magnitude Result
Sign bit followed by magnitude bits
Sign Bit 0
Magnitude Bits 0
Decimal Value 0
Encoding Breakdown

What Is Signed-Magnitude Binary?

Signed-magnitude representation stores the sign of a number separately from its binary magnitude. The leftmost bit is the sign bit, while all remaining bits represent the absolute value.

Sign-bit rule: 0 = positive 1 = negative For an 8-bit value: [sign][7 magnitude bits]

Example: Positive 1011 in 8-Bit Signed Magnitude

The binary magnitude 1011 equals decimal 11.

Pad the magnitude to 7 bits: 0001011 Positive sign bit: 0 Combine: 0 0001011 Final 8-bit result: 00001011

Example: Negative 1011 in 8-Bit Signed Magnitude

The magnitude remains exactly the same. Only the sign bit changes.

Magnitude: 0001011 Negative sign bit: 1 Final result: 10001011 This represents signed-magnitude decimal −11.

How to Convert Binary to Signed Magnitude

1. Start with the magnitude

Use the unsigned binary digits representing the absolute value.

2. Select a total width

The total width must include one extra bit for the sign.

3. Reserve the sign bit

The leftmost bit is reserved for positive or negative status.

4. Pad the magnitude

Add leading zeros until the magnitude fills the remaining positions.

5. Choose the sign

Use 0 for positive and 1 for negative.

6. Combine the fields

Place the sign bit before the padded magnitude bits.

Signed-Magnitude Bit Layout

Total Width Sign Bits Magnitude Bits Maximum Magnitude
4-bit 1 3 7
8-bit 1 7 127
16-bit 1 15 32,767
32-bit 1 31 2,147,483,647

8-Bit Signed-Magnitude Examples

Decimal Value Magnitude 8-Bit Signed Magnitude
+1 1 00000001
−1 1 10000001
+5 101 00000101
−5 101 10000101
+11 1011 00001011
−11 1011 10001011
+127 1111111 01111111
−127 1111111 11111111

Signed-Magnitude Range

With a total width of n bits, one bit is reserved for the sign. That leaves n − 1 magnitude bits.

Maximum magnitude: 2^(n−1) − 1 For 8 bits: 2⁷ − 1 = 127 So the ordinary non-zero range is: −127 through +127

Why Signed Magnitude Has Positive and Negative Zero

One unusual property of signed-magnitude representation is that zero can have two different encodings because the sign bit can be either 0 or 1 while all magnitude bits remain zero.

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

Both represent a magnitude of zero, which is one reason signed magnitude is less common for general integer arithmetic than two’s complement.

Signed Magnitude vs Two’s Complement

Feature Signed Magnitude Two’s Complement
Sign indication Separate sign bit Encoded across bit pattern
Positive values Same basic magnitude Same as ordinary binary
Negative zero Exists Does not exist
8-bit negative minimum −127 −128
Common integer use Less common Very common

Signed Magnitude vs One’s Complement

Both signed magnitude and one’s complement can represent positive and negative zero, but they encode negative values differently.

Signed magnitude changes the sign bit while keeping magnitude bits unchanged. One’s complement forms a negative value by inverting every bit of the positive representation for a fixed width.

Why Bit Width Matters

The same magnitude can have different signed-magnitude bit strings depending on the chosen width because additional zeros are inserted before the magnitude.

Positive binary magnitude 101: 4-bit → 0101 8-bit → 00000101 16-bit → 0000000000000101

The numerical value is unchanged; only the storage width differs.

What Happens If the Magnitude Is Too Large?

A signed-magnitude value has only width − 1 positions available for magnitude bits.

For example, a 4-bit representation contains only three magnitude bits, so 111 is the largest possible magnitude.

Important: this calculator rejects magnitudes that do not fit inside the selected bit width instead of silently removing significant bits.

Signed-Magnitude Uses

Signed magnitude is easy to understand because the sign and absolute value are visually separate. The same general sign-plus-magnitude concept also appears in some numerical representations, although modern integer processors typically use two’s complement for signed integer arithmetic.

Common Signed-Magnitude Mistakes

Counting the sign bit as magnitude

The total width includes the sign bit, leaving one fewer bit for magnitude.

Inverting negative values

Signed magnitude does not invert the magnitude bits. Only the sign bit changes.

Confusing it with two’s complement

Signed magnitude and two’s complement use different rules for negative numbers.

Ignoring overflow

A magnitude must fit within the available width minus one sign bit.

Related BinaryCon Tools

Binary to Signed Magnitude Converter FAQs

What is signed-magnitude binary?
Signed magnitude uses the leftmost bit as the sign and the remaining bits as the absolute binary magnitude.
What does a sign bit of 0 mean?
A sign bit of 0 represents a positive value.
What does a sign bit of 1 mean?
A sign bit of 1 represents a negative value.
How do I represent +11 in 8-bit signed magnitude?
Binary 11 is 1011. Pad it to seven magnitude bits as 0001011, then add sign bit 0: 00001011.
How do I represent −11 in 8-bit signed magnitude?
Use the seven-bit magnitude 0001011 with sign bit 1, giving 10001011.
What is the 8-bit signed-magnitude range?
The numerical magnitude range is −127 through +127, with separate encodings for positive and negative zero.
Why does signed magnitude have two zeros?
All magnitude bits can be zero while the sign bit is either 0 or 1, producing positive zero and negative zero representations.
Is signed magnitude the same as two’s complement?
No. Signed magnitude stores the sign separately, whereas two’s complement uses a different encoding for negative values.
Do I invert bits for a negative signed-magnitude number?
No. The magnitude bits stay unchanged. Only the sign bit changes from 0 to 1.
How many magnitude bits are available in an 8-bit value?
Seven bits are available for the magnitude because one of the eight bits is reserved for the sign.
What happens if my binary magnitude is too large?
The calculator displays an error because the value cannot fit into the selected signed-magnitude width without losing significant bits.
Can the converter represent binary zero?
Yes. Choosing positive produces positive zero, while choosing negative produces the negative-zero signed-magnitude encoding.
Does BinaryCon require registration?
No. The Binary to Signed Magnitude Converter can be used directly without signup.
Scroll to Top