Hex to Decimal Converter
Type a hexadecimal number and get its decimal value, plus binary and octal.
- Decimal
- Hex
- Binary
- Octal
Click a bit to flip it.
How to convert hex to decimal
Hexadecimal (base 16) uses the digits 0-9 and the letters A-F, where A is 10 and F is 15. Each place is worth a power of 16, so the rightmost digit is worth 1, the next 16, then 256, and so on.
Worked example
Convert 1A3F: 1 × 4096 + 10 × 256 + 3 × 16 + 15 = 4096 + 2560 + 48 + 15 = 6719.
Quick facts
FFis 255, the largest value of one byte.FFFFis 65535, the largest 16-bit unsigned value.- A leading
0xis only a marker; the converter accepts it and ignores it. - Tick Signed to read a hex value as two's complement:
FFat 8 bits is -1.
Other conversions
- Hex to decimal · Decimal to hex
- Binary to decimal · Decimal to binary
- Hex to binary · Binary to hex
- Full programmer calculator with bitwise operations, floats and timestamps