0xFF in decimal is 255: 15×16^1 + 15×16^0. Paste hex here (0x and mixed case are fine) and read the unsigned integer, plus a signed two’s complement readout at Auto/8/16/32/64 bits. BigInt keeps values exact past 2^53.
Going back? Decimal to hex writes leftovers of ÷16 as A–F. The four-base box is the binary converter hub.
0xFF is 255 unsigned. At 8 bits the same pattern is −1 signed — FF is eight 1s, so the sign bit weighs −128. 0x7FFFFFFF is 2147483647, the 32-bit signed maximum (MSB clear). Short pastes pad on the left: A at 8 bits is 00001010 = 10, not a nibble of −6.
A positional check writes each digit times its power of 16. F×16 + F = 255. 7×16^7 + F×16^6 + … + F×16^0 = 2147483647. Open Step-by-step working for those terms and the signed sign-bit note.
Patterns longer than the chosen width, or digits other than 0–9/A–F, show a red alert. Letters in a colour such as #FF8800 are hex digits, not a colour picker — 16746496 unsigned. Close the tab when you are done.
How to convert hex to decimal
- Paste hex digits. A 0x prefix, spaces and underscores are allowed. # at the start of a colour is stripped.
- Read the unsigned decimal. Also read the signed value at Auto/8/16/32/64 bits (sign bit = −2^(n−1)).
- Open Step-by-step working for the digit×16^n sum and the two’s complement readout.
- Copy the decimal. Use the reverse link when you started from a decimal instead.
Key Features
- Hex → decimal with 0x prefix and mixed case
- Unsigned value plus signed two’s complement readout at width
- Powers-of-16 working and BigInt past 2^53
- Examples 0xFF = 255 and 0x7FFFFFFF = 2147483647
- Local, no upload
digit × 16^n
- FF = 15×16 + 15 = 255. Write only the places; A is 10, B 11, C 12, D 13, E 14, F 15.
- 7FFFFFFF = 7×268435456 + 15×16777216 + 15×1048576 + 15×65536 + 15×4096 + 15×256 + 15×16 + 15 = 2147483647.
- DEADBEEF unsigned is 3735928559. That 32-bit filler is the same bits hex to binary expands.
- A leading 0 never changes the unsigned integer. It only matters when you later interpret a fixed width as signed.
Signed bits at a width
- At 8 bits the MSB weighs −128. FF = 11111111 = −1 signed and 255 unsigned. 7F = 127. 80 = −128.
- At 16 bits FFFF is −1 signed and 65535 unsigned. At 32 bits FFFFFFFF is −1; 7FFFFFFF is +2147483647.
- If the pattern is longer than the width, this page errors instead of silently truncating from the left. 1FF does not fit in 8 bits.
- Digits that are not hex belong on decimal to hex. Binary 0/1 strings belong on binary to decimal.
Common mistakes
- Reading FF at 8-bit signed as 255 only. Unsigned it is 255; signed it is −1. Both cards are shown.
- Treating 7FFFFFFF as “seven F’s plus a 7” in the wrong order. The 7 is the high nibble, so the sign bit is 0.
- Using JS Number for 20-digit hex. This page uses BigInt, so values past 2^53 stay exact.
- Pasting UTF-8 text hex. Bytes of a string are the text-hex converter, not a number-base spoke.
- Assuming Auto width will warn on FF in 8-bit signed. Auto picks 8 bits and signed FF is a valid −1.
Powers of 16 (16^0 through 16^7)
- Place values used in the positional sum. 16^2 = 256, 16^4 = 65536, 16^7 = 268435456.
| Exponent | Decimal | Hex |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 16 | 10 |
| 2 | 256 | 100 |
| 3 | 4096 | 1000 |
| 4 | 65536 | 10000 |
| 5 | 1048576 | 100000 |
| 6 | 16777216 | 1000000 |
| 7 | 268435456 | 10000000 |
Frequently Asked Questions
What is 0xFF in decimal?
255 unsigned. At 8 bits signed the same bits are −1. Hex FF is eight 1s.
What is 0x7FFFFFFF in decimal?
2147483647. That is the maximum signed 32-bit integer. Unsigned the same bits are also 2147483647.
What is FF as a signed 8-bit value?
−1. The sign bit weighs −128; plus 127 is −1. Unsigned it is 255.
Does a 0x prefix matter?
It is stripped. 0xFF, FF and ff are the same integer.
Why did 1FF fail at 8 bits?
Nine bits do not fit in 8. Switch to 16-bit or Auto. This page does not drop the high 1.
Is this the same as hex to binary?
Same engine, different card. Hex to binary expands nibbles. This page sums powers of 16.