Convert hex to decimal: 0xFF, #FF8800 parts or a 64-digit hash, exact, with each step and signed 32 and 64-bit values
Paste a hex value, with or without 0x, and read it in decimal, exact for long values, with each digit times its power of 16 written out.
How to use it
Paste hex: 1F4, 0x1F4 and 1f4 read the same; spaces between bytes are fine. Read the decimal value on top and the sum by hand under it. Pick 32 or 64 in Bits to read the same value as a signed integer.
Examples
A short value
Input
0x1F4
Result
500
1×256 + 15×16 + 4×1
The largest signed 32-bit integer
Input
7FFFFFFF
Result
2,147,483,647
FFFFFFFF as signed 32-bit
Input
FFFFFFFF
Result
Unsigned 4294967295 Signed -1
Bits: 32.
How to convert hex to decimal by hand
| Hex | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
Decimal | 10 | 11 | 12 | 13 | 14 | 15 |
Colors, one byte a channel
Questions
- Is 0xFF the same as FF?
0x is only a prefix that says the digits are hex, so both are 255. In auto mode the page needs the 0x or a letter a–f to know a value is hex; on this page every value is read as hex, so 10 is sixteen. - Can it convert a SHA-256 hash to decimal?
Yes. A 64-character hash is a 256-bit number, and the page keeps every one of its decimal digits, up to 78; calculators that use floating point round it. - Is the number I type uploaded?
No. Everything runs in your browser, so your numbers stay on your device. Nothing you paste is uploaded unless you share it.