Hex to Decimal Converter

Convert hexadecimal to decimal numbers instantly. Free hex to decimal converter for programming.

hex
=
β€”
dec

How it works

Hexadecimal (base 16) uses digits 0-9 and letters A-F. Each hex digit represents a value from 0 to 15. This converter transforms any hexadecimal value to its decimal (base 10) equivalent.

Common Hex to Decimal

A10
F15
1016
FF255
100256
FFF4095

How to Convert Hexadecimal to Decimal

Hex (base 16) uses digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15). To convert to decimal, multiply each digit by 16 raised to its position power (rightmost = 16^0). So 'FF' hex = (15 Γ— 16) + (15 Γ— 1) = 240 + 15 = 255 decimal.

Used in programming for memory addresses, color codes (#FF0000 = red), and unicode. A hex byte (00-FF) covers 0-255 in decimal. Two hex digits = 1 byte. The 6-character HTML colour codes (e.g. #2C3E50) are three byte values for red/green/blue intensity.

Common Hex to Decimal

HexDecimal
11
A10
F15
1016
2032
FF255
100256
FFFF65535

Frequently Asked Questions

Why use hex instead of binary?

Hex is more compact - one hex digit = 4 bits. So a 32-bit number is 8 hex digits vs 32 binary digits. Easier to read and write. Computer science discussions and binary file inspection routinely use hex.

How are hex colours read?

RGB color codes use 6 hex digits: first 2 = red intensity (00-FF), next 2 = green, last 2 = blue. So #FF0000 = pure red. #00FF00 = green. #0000FF = blue. #FFFFFF = white. #000000 = black.

More tools β†’