Unitrify

Hexadecimal to Decimal

FF (hex) = 255 (decimal)

Result (decimal)

255

FF in hexadecimal is 255 in decimal. Hex is used for colour codes, memory addresses and data, because each hex digit stands for 4 bits. For other values, use the Number Converter.

How it works

Decimal = sum of (digit × 16^position), where a–f are 10–15

Hexadecimal to decimal table

HexadecimalDecimal
A10
F15
1016
1F31
64100
FF255
100256
FFFF65535

Frequently asked questions

What is 0x1F in decimal?

0x1F is 31 (1 × 16 + 15).

What are the hex digits A to F?

A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15.

How do I read a colour code like #FF8000?

Split it into pairs: FF = 255 red, 80 = 128 green, 00 = 0 blue.

Related converters