Hex to decimal

Type a hexadecimal number (0-9 and A-F) and see its decimal value instantly, along with the binary and octal. Everything happens in your browser.

FF₁₆ = 255₁₀

🔒 What you type never leaves your device. Everything is calculated in your browser.

Type in any of the four fields and the others update on their own. No size limit, and only for positive whole numbers.

Any base (2 to 36)

Text to binary and hex

You can paste bits to turn them into text.

How to convert hex to decimal

  1. Type the number in the "Hexadecimal (base 16)" field.
  2. See the result in "Decimal (base 10)", highlighted.
  3. You also get the binary and octal of the same number.
  4. Tap Copy to take the results with you.

The method and an example

Each hexadecimal digit is worth a power of 16, from right to left, and the letters A to F stand for 10 to 15. For example, FF = 15 × 16 + 15 = 255, and 1A = 1 × 16 + 10 = 26.

Hexadecimal is used for colors (#FF0000), memory addresses and error codes. The table below shows the first numbers in all four bases.

Decimal (base 10)Binary (base 2)Octal (base 8)Hexadecimal (base 16)
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010
17100012111
18100102212
19100112313
20101002414
21101012515
22101102616
23101112717
24110003018
25110013119
2611010321A
2711011331B
2811100341C
2911101351D
3011110361E
3111111371F
321000004020
401010005028
501100106232
64100000010040
100110010014464
12711111111777F
1281000000020080
20011001000310C8
25511111111377FF
256100000000400100
5001111101007641F4
51210000000001000200
1000111110100017503E8
1024100000000002000400
40961000000000000100001000
655351111111111111111177777FFFF

Good to know

Frequently asked questions

What is FF in decimal?

255.

What is the letter A worth in hexadecimal?

10; B is 11, C is 12, D is 13, E is 14 and F is 15.

Can I convert a color like #FF8800?

Yes, paste each pair separately (FF, 88, 00) to get its values from 0 to 255.

Is my data sent to a server?

No. The conversion happens in your browser.