Hex to Decimal Converter

Type a hex number to get its decimal value, with each digit's place value shown underneath.

Hex numbers use 0 to 9 and A to F (upper or lower case). A 0x prefix is fine.

Decimal result
Result appears as you type

How to convert hex to decimal by hand

Example 1: FF in hex is 255 in decimal

Hex to decimal: add up the place values

Each hex digit is worth its value times 16 raised to the power of its position, counting from 0 on the right.

DigitPlace valueDigit × place value
F16¹ = 1615 × 16 = 240
F16⁰ = 115 × 1 = 15

240 + 15 = 255

Example 2: 1A3F in hex is 6719 in decimal

Hex to decimal: add up the place values

Each hex digit is worth its value times 16 raised to the power of its position, counting from 0 on the right.

DigitPlace valueDigit × place value
116³ = 4,0961 × 4,096 = 4,096
A16² = 25610 × 256 = 2,560
316¹ = 163 × 16 = 48
F16⁰ = 115 × 1 = 15

4,096 + 2,560 + 48 + 15 = 6,719

Hex to Decimal conversion table

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

Where this conversion comes up

  • CSS and design colours: in #FF8800 the red channel FF is 255, green 88 is 136 and blue 00 is 0.
  • Unicode code points: U+00E9 (é) is 233 in decimal, which is also its HTML entity é.
  • Error codes and memory addresses from logs and debuggers, which are usually printed in hex.

Frequently asked questions

Is hex case sensitive?

No. A to F and a to f mean the same values, 10 to 15. This converter accepts either and shows results in upper case.

Can I paste a colour code like #FF8800?

Yes. The # is ignored and the whole code is converted as one number (16746496). To get each channel, convert the pairs FF, 88 and 00 separately.

Can I convert negative numbers?

Yes. Put a minus sign in front and it is kept in the result, for example -FF becomes -255. The converter does not produce two's complement.

Is there a limit on how big the number can be?

No practical limit. The conversion uses arbitrary precision integers, so long values stay exact. The step-by-step working is shown for numbers up to 24 digits.

Can I convert fractions?

Not with this tool. It converts whole hex numbers to whole decimal numbers.

Other number converters

Local Processing
End-to-End Encryption
Works Offline

Building Something Beyond This Tool?

We help teams design and build reliable web and mobile applications backed by well-structured APIs.