Signed decimal to 8-bit hex
Type a value in dec to get it in hex (8-bit) instantly.
FFhex (8-bit)
The smallest signed register that holds -1 is 1-bit.
Convert the other way: hex (8-bit) to dec
What it means
Where does it sit?
A dash means the value does not fit that width: an 8-bit register holds −128 to 127.
The math
How to convert dec to hex (8-bit)
For a negative n in a w-bit register, bits = 2^w + n: −42 in 8 bits is 256 − 42 = 214 = 1101 0110.
Example: -1 dec = FF hex (8-bit).
Every unit
That integer in every register
Tables
dec to hex (8-bit) conversion table
| dec | hex (8-bit) |
|---|---|
| -128 dec | 80 hex (8-bit) |
| -100 dec | 9C hex (8-bit) |
| -64 dec | C0 hex (8-bit) |
| -42 dec | D6 hex (8-bit) |
| -16 dec | F0 hex (8-bit) |
| -2 dec | FE hex (8-bit) |
| -1 dec | FF hex (8-bit) |
| 0 dec | 00 hex (8-bit) |
| 1 dec | 01 hex (8-bit) |
| 2 dec | 02 hex (8-bit) |
| 16 dec | 10 hex (8-bit) |
| 42 dec | 2A hex (8-bit) |
| 64 dec | 40 hex (8-bit) |
| 100 dec | 64 hex (8-bit) |
| 127 dec | 7F hex (8-bit) |
hex (8-bit) to dec conversion table
| hex (8-bit) | dec |
|---|---|
| 00 hex (8-bit) | 0 dec |
| 01 hex (8-bit) | 1 dec |
| 02 hex (8-bit) | 2 dec |
| 10 hex (8-bit) | 16 dec |
| 2A hex (8-bit) | 42 dec |
| 40 hex (8-bit) | 64 dec |
| 64 hex (8-bit) | 100 dec |
| 7F hex (8-bit) | 127 dec |
| 80 hex (8-bit) | -128 dec |
| 9C hex (8-bit) | -100 dec |
| C0 hex (8-bit) | -64 dec |
| D6 hex (8-bit) | -42 dec |
| F0 hex (8-bit) | -16 dec |
| FE hex (8-bit) | -2 dec |
| FF hex (8-bit) | -1 dec |
Quick answers
Quick answers
- How many hex (8-bit) is 1 dec?
- 1 dec is 01 hex (8-bit).
- How many hex (8-bit) is 10 dec?
- 10 dec is 0A hex (8-bit).
- How many hex (8-bit) is -1 dec?
- -1 dec is FF hex (8-bit).
The units
About these units
Signed decimal (dec)
The value as a signed integer.
8-bit hex (hex (8-bit))
A signed byte in two hex digits.
Keep going