Signed Binary to Decimal Converter

2

Conversion Result

2's Complement Support

Convert signed binary numbers to decimal using 2's complement interpretation. Understand how computers represent negative numbers — with automatic sign detection and step-by-step breakdowns.

5Number Systems
Precision
0msLatency

What is Signed Binary to Decimal Converter?

The Signed Binary to Decimal Converter is a tool that interprets binary numbers as signed integers using the 2's complement system — the same method used by virtually all modern computers to represent negative numbers. While unsigned binary can only represent positive values, signed binary uses the most significant bit (MSB) as a sign indicator.

This tool exists because interpreting signed binary values manually requires understanding 2's complement arithmetic, which can be confusing for beginners. When the MSB is 1, the number is negative, and calculating its decimal value involves inverting bits and adding 1. Our converter automates this process and shows every step, making it an essential resource for computer science students, embedded systems developers, and anyone working with low-level data.

Understanding signed binary is critical for debugging overflow errors, working with hardware registers, analyzing network protocols, and mastering how CPUs perform arithmetic at the hardware level.

Interactive Demo

Signed Binary to Decimal Converter Formula

Click any bit to toggle it. Use the buttons to perform 1's complement (invert) and 2's complement (invert + add 1) operations.

8-Bit Signed Register
MSB 2⁶ 2⁵ 2⁴ 2⁰
Signed: 40 ₁₀
unsigned: 40 | signed: 40
Visualizer

8-Bit Signed Number Line

In 2's complement, the 8-bit signed range goes from -128 to +127. The number line wraps around — incrementing past 127 wraps to -128 (overflow).

The most significant bit (MSB) acts as the sign bit: 0 = positive, 1 = negative. This gives an asymmetric range because zero uses one of the positive bit patterns.

Key Values 00000000 = 0 | 01111111 = +127 | 10000000 = -128 | 11111111 = -1
Position Indicator
-128-640+64+127
Current Value
40
Quick Reference

Unsigned vs Signed Interpretation

The same bit pattern can mean different things depending on whether it's interpreted as unsigned or signed (2's complement).

Binary (8-bit)UnsignedSigned (2's Comp)Notes
0000000000Zero
000000011+1Same for both
01111111127+127Max positive signed
10000000128-128Min negative signed
10000001129-127MSB flips meaning
11111110254-2Near max unsigned
11111111255-1Max unsigned / -1 signed
11000000192-64Halfway negative
FAQ

Frequently Asked Questions

What is signed binary?
Signed binary is a way of representing both positive and negative integers in binary. The most common method is 2's complement, where the most significant bit (MSB) acts as the sign bit: 0 for positive, 1 for negative. For example, in 8-bit signed binary, 11111110₂ = -2₁₀.
What is 2's complement?
2's complement is the standard method computers use to represent signed integers. To find the 2's complement (negative) of a binary number: invert all bits (1's complement), then add 1. For example, to represent -5 in 8 bits: 5 = 00000101, invert → 11111010, add 1 → 11111011₂ = -5₁₀.
How do you convert signed binary to decimal?
If the MSB is 0, convert normally (it's positive). If the MSB is 1, the number is negative: either (a) invert all bits, add 1, convert to decimal, then negate; or (b) use the formula: value = -(2ⁿ) + (unsigned value), where n is the bit width. Example: 11111011₂ (8-bit) = -128 + 123 = -5₁₀.
What is the range of signed binary numbers?
For an n-bit signed binary number in 2's complement, the range is from -2ⁿ⁻¹ to 2ⁿ⁻¹ - 1. For 8 bits: -128 to 127. For 16 bits: -32,768 to 32,767. For 32 bits: -2,147,483,648 to 2,147,483,647. The negative range has one extra value because zero uses a positive bit pattern.
Why do computers use 2's complement?
2's complement simplifies hardware design because addition and subtraction use the same circuit. There is only one representation of zero (unlike sign-magnitude or 1's complement). The overflow behavior is also predictable, making arithmetic simpler for CPU designers.
What is the difference between signed and unsigned binary?
In unsigned binary, all bits represent magnitude, so values range from 0 to 2ⁿ-1. In signed binary (2's complement), the MSB represents the sign, giving a range of -2ⁿ⁻¹ to 2ⁿ⁻¹-1. For example, the 8-bit pattern 11111111 is 255 unsigned but -1 signed.
How does sign extension work?
Sign extension is the process of increasing the number of bits while preserving the sign and value. You copy the sign bit (MSB) into all new higher-order bits. For example, extending 1011₂ (-5 in 4-bit) to 8 bits gives 11111011₂, which is still -5. Positive numbers get padded with 0s.
Copied to clipboard!