Hex to Decimal Converter

Type a hexadecimal number to get its decimal value, with every digit’s place value written out.

Decimal
2,019
Base 2111 1110 0011
Base 83743
Base 102,019
Base 167E3

Working

  1. 7 × 162 = 7 × 256 = 1,792
  2. E × 161 = 14 × 16 = 224
  3. 3 × 160 = 3 × 1 = 3
  4. Total = 2,019

The method

Multiply each hex digit by 16 raised to its position (counting from 0 on the right), then add the results. A–F stand for 10–15.

Place value: the idea behind every base

In any base, a digit’s worth depends on its column. Each column is worth the base times the column to its right. Tap a digit to change it and watch the total.

1651,048,5761,048,576
16465,5360
1634,0964,096
162256256
161160
16011

1×1,048,576 + 1×4,096 + 1×256 + 1×1 = 1,052,929 in decimal

Decimal is the same system with ten digits: 347 is 3×100 + 4×10 + 7×1. Nothing about base 10 is special apart from our ten fingers.

Hex to decimal table

HexDecimal
11
99
A10
F15
1016
1F31
2032
4064
64100
7F127
80128
FF255
100256
3E81000
FFF4095
FFFF65535

Need another base, such as base 3 or base 36? Use the number system converter.

Questions people ask

How do I convert hex to decimal by hand?

Write the powers of 16 under the digits from the right: 1, 16, 256, 4096 and so on. Replace A–F with 10–15, multiply each digit by its power, and add. 2F = 2×16 + 15×1 = 47.

What is FF in decimal?

FF is 255: 15×16 + 15 = 255. It is the largest value that fits in one byte, which is why colour channels in #RRGGBB run from 00 to FF.

What does the 0x prefix mean?

0x marks a number as hexadecimal in C, JavaScript, Python and most other languages, so 0x10 is 16, not ten. The converter ignores it.

Related tools