Signed Binary to Hex Converter
Convert a signed binary bit pattern to hexadecimal using two’s-complement interpretation. Enter a fixed-width binary value and get the exact hexadecimal bit pattern, signed decimal value, detected sign, bit width, and any required sign extension.
Signed Binary to Hex Converter
The Signed Binary to Hex Converter converts a fixed-width binary bit pattern into hexadecimal while interpreting the original binary value as a signed two’s-complement integer. The leftmost bit is treated as the sign bit, so a leading 0 represents a non-negative value and a leading 1 represents a negative value.
Unlike an ordinary unsigned binary converter, leading bits cannot simply be removed because the bit width is part of the signed interpretation. For example, 8-bit binary 11110110 represents decimal -10 and its raw hexadecimal bit pattern is F6.
How to Convert Signed Binary to Hexadecimal
First preserve the complete binary width and inspect the leftmost bit. If the number of bits is already divisible by four, divide the pattern directly into 4-bit groups. If not, extend the left side using the sign bit until the width reaches the next multiple of four.
Width = 8 bits
Sign bit = 1 → negative
Group into nibbles:
1111 0110
1111 = F
0110 = 6
Hex bit pattern = F6
Signed decimal value = -10
What Is Signed Binary?
Signed binary is a binary representation that can encode both positive and negative integers. The most common modern representation is two’s complement, where the most significant bit contributes to the sign as well as the numeric value.
For an n-bit two’s-complement number, values with a leading 0 fall in the non-negative half of the range, while values beginning with 1 fall in the negative half.
Minimum = -2^(n-1)
Maximum = 2^(n-1) – 1
8-bit signed range:
-128 through +127
Example: Convert Signed Binary 11110110 to Hex
The bit pattern 11110110 is eight bits wide. Because its first bit is 1, it represents a negative two’s-complement value. The width is already a multiple of four, so no sign extension is required.
1111 | 0110
1111 = F
0110 = 6
Hex pattern = F6
Unsigned bit-pattern value = 246
2^8 = 256
246 – 256 = -10
Example: Signed Binary 10000000 to Hex
Eight-bit binary 10000000 has a leading sign bit of 1 and therefore represents a negative value. In 8-bit two’s-complement notation, it is the minimum possible signed value.
1000 | 0000
1000 = 8
0000 = 0
Hex = 80
Signed decimal = -128
Example: Signed Binary 01111111 to Hex
The leading bit of 01111111 is 0, so the bit pattern is non-negative. It represents the largest positive value available in an 8-bit signed two’s-complement integer.
0111 | 1111
0111 = 7
1111 = F
Hex = 7F
Signed decimal = 127
Signed Binary Hex Conversion Examples
The same hexadecimal bit pattern can represent different signed meanings when the bit width changes, which is why preserving the original width is important. These examples use two’s-complement interpretation.
| Signed Binary | Width | Sign | Signed Decimal | Hex |
|---|---|---|---|---|
00000000 |
8-bit | Non-negative | 0 | 00 |
00000001 |
8-bit | Positive | 1 | 01 |
01111111 |
8-bit | Positive | 127 | 7F |
10000000 |
8-bit | Negative | -128 | 80 |
11110110 |
8-bit | Negative | -10 | F6 |
11111110 |
8-bit | Negative | -2 | FE |
11111111 |
8-bit | Negative | -1 | FF |
1010 |
4-bit | Negative | -6 | A |
Why Signed Binary Width Matters
The width of a two’s-complement binary value is part of its meaning. Leading bits cannot always be discarded because changing the width without preserving the sign may change the represented integer.
1010₂ = -6
8-bit sign extension:
11111010₂ = -6
Hex:
4-bit 1010 = A
8-bit 11111010 = FA
Both bit patterns represent decimal -6 when interpreted at their respective signed widths, but their raw hexadecimal bit patterns differ because their storage widths differ.
Sign Extension When Converting Signed Binary to Hex
Hexadecimal groups require four bits. If a signed binary input does not have a width divisible by four, it must be extended on the left using copies of its sign bit. Positive values are extended with 0, while negative values are extended with 1.
101₂
Sign bit = 1
3-bit value = -3
Sign-extend to 4 bits:
1101
1101 = D
Positive and Negative Sign Extension
Sign extension preserves the numeric value while increasing the storage width. The extension bit is always copied from the existing most significant bit.
| Original | Meaning | Extension | Extended Binary | Hex |
|---|---|---|---|---|
011 |
+3 | 0 | 0011 |
3 |
101 |
-3 | 1 | 1101 |
D |
00101 |
+5 | 0 | 00000101 |
05 |
11011 |
-5 | 1 | 11111011 |
FB |
Signed Binary vs Negative Binary with a Minus Sign
Signed two’s-complement binary should not be confused with explicit negative magnitude notation. The two formats can represent the same mathematical integer but encode it differently.
| Format | Example for -10 | Hex Result | Interpretation |
|---|---|---|---|
| Explicit negative binary | -1010 |
-A |
Minus sign + magnitude |
| 8-bit signed binary | 11110110 |
F6 |
Two’s-complement bit pattern |
How the Signed Decimal Value Is Calculated
When the sign bit is 0, the binary pattern can be read as an ordinary non-negative integer. When the sign bit is 1, the unsigned bit-pattern value is reduced by 2 raised to the bit width.
Signed value = Unsigned value – 2^n
Example:
11110110₂ unsigned = 246
Width = 8 bits
2^8 = 256
246 – 256 = -10
8-Bit Signed Binary to Hex Reference
Eight-bit signed values are especially common because exactly two hexadecimal digits represent one byte. The signed range is -128 through 127 while the raw hex patterns run from 00 through FF.
| Binary | Hex | Signed Decimal |
|---|---|---|
00000000 |
00 |
0 |
00000001 |
01 |
1 |
01111110 |
7E |
126 |
01111111 |
7F |
127 |
10000000 |
80 |
-128 |
10000001 |
81 |
-127 |
11111110 |
FE |
-2 |
11111111 |
FF |
-1 |
16-Bit Signed Binary to Hexadecimal
A 16-bit two’s-complement integer has a signed decimal range from -32768 through 32767. Because sixteen bits divide exactly into four groups of four, every 16-bit bit pattern maps directly to four hexadecimal digits.
1000000000000000₂ = 8000₁₆ = -32768
1111111111111111₂ = FFFF₁₆ = -1
Common Signed Binary to Hex Conversion Mistakes
Signed binary conversion requires more care than ordinary unsigned binary-to-hex conversion because the sign and bit width must be preserved.
- Removing leading bits even though they are significant to the signed width.
- Treating a leading 1 as ordinary magnitude instead of a two’s-complement sign bit.
- Using zero padding instead of sign extension for a negative value.
- Entering an explicit minus sign on a two’s-complement converter.
- Assuming hexadecimal F6 means positive 246 when the original 8-bit pattern is signed.
- Changing the binary width without extending the sign correctly.
- Confusing signed decimal meaning with the raw hexadecimal bit pattern.
- Forgetting that the most negative n-bit value is -2^(n-1).
Where Signed Binary to Hex Conversion Is Used
Signed two’s-complement binary values are common in software and hardware systems where negative integers must be stored directly in fixed-width bit fields.
- CPU registers containing signed integer values.
- Microcontrollers and embedded systems using signed sensor readings.
- Binary file formats containing signed numeric fields.
- Network protocols with fixed-width signed values.
- Debuggers displaying register or memory contents in hexadecimal.
- Digital signal processing and signed sample data.
- Reverse engineering and low-level data inspection.
- Computer architecture and two’s-complement education.
Signed Binary to Hex Converter FAQs
These FAQs cover two’s-complement interpretation, sign bits, hexadecimal output, bit widths, sign extension, signed decimal values, and common edge cases.
How do I convert signed binary to hexadecimal?
What is 11110110 signed binary in hex?
What is 11111111 signed binary in hexadecimal?
What is 10000000 signed binary in hex?
What is the sign bit in signed binary?
Does a signed binary value beginning with 1 always mean negative?
Why should leading bits not be removed?
What is sign extension?
Why is negative signed binary extended with 1 instead of 0?
Is F6 hexadecimal equal to -10?
Is FF hexadecimal always -1?
Can I enter a minus sign such as -1010?
Can this converter handle very long signed binary values?
Convert Signed Binary to Hex Online
Enter a fixed-width signed binary bit pattern and select Convert Signed Binary to Hex. The calculator preserves the original width, identifies the sign bit, calculates the exact signed two’s-complement decimal value, performs any required sign extension, groups the binary pattern into nibbles, and displays the corresponding hexadecimal bit pattern.
The result area also shows whether the input is positive or negative, the original bit width, the sign-extension behavior, and the signed decimal meaning of the hexadecimal bit pattern.