Hex to Decimal Converter

Convert hexadecimal to decimal and decimal to hex instantly — plus binary and octal, with no size limit.

Hex to decimal

Decimal
420
Binary
110100100
Octal
644

Decimal to hex

Hexadecimal
1A4
With 0x prefix
0x1A4
Binary
110100100
Octal
644

Hex to decimal chart

00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15
1016
2032
4064
80128
FF255
100256
3E81000
FFFF65535

This hex to decimal converter translates hexadecimal numbers into ordinary base-10 decimal, and converts decimal back to hex, as you type. It also shows the binary and octal equivalents, and it uses arbitrary-precision arithmetic so very large values stay exact instead of rounding the way a normal calculator would.

Hexadecimal is base 16: after 9 it continues A, B, C, D, E, F for the values 10 to 15. To convert hex to decimal by hand, multiply each digit by 16 raised to its position from the right and add the results — so 1A4 is (1 × 256) + (10 × 16) + (4 × 1) = 420. Going the other way, repeatedly divide the decimal number by 16 and read the remainders bottom-up.

Hex is everywhere in computing because two hex digits map exactly onto one byte: colour codes like #FF5733, memory addresses, MAC addresses, file signatures, error codes and character encodings all use it. A leading 0x is accepted and ignored, so you can paste values straight out of code or a debugger. Everything is calculated in your browser — nothing is uploaded.

Frequently asked questions