Hex to Decimal Converter

Convert hex to decimal with the working shown – each digit times its power of 16.

How it works – step by step

Hex to decimal table (0–1024)
DecimalHexBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111
16100001 0000
17110001 0001
18120001 0010
19130001 0011
20140001 0100
21150001 0101
22160001 0110
23170001 0111
24180001 1000
25190001 1001
261A0001 1010
271B0001 1011
281C0001 1100
291D0001 1101
301E0001 1110
311F0001 1111
32200010 0000
50320011 0010
64400100 0000
100640110 0100
1277F0111 1111
128801000 0000
200C81100 1000
255FF1111 1111
2561000001 0000 0000
5122000010 0000 0000
10003E80011 1110 1000
10244000100 0000 0000

How to use the Hex to Decimal Converter

  1. Type a hex number using 0–9 and A–F (a 0x prefix is fine).
  2. Read the decimal result and copy it.
  3. Follow the table to see each digit multiplied by its power of 16.
  4. Use the swap button to convert decimal back to hex.

About this tool

Convert hex to decimal instantly and see how the answer is calculated. Type a hexadecimal number such as FF, 1A3 or 0x7FFF and the decimal value appears, with a table showing each digit multiplied by its power of 16. It works with upper or lower case and with the 0x prefix programmers use.

Hexadecimal (base 16) uses the digits 0–9 and the letters A–F, where A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. To convert hexadecimal to decimal, multiply each digit by 16 raised to its position, counting from 0 on the right, and add the results. For example, 2F = 2 × 16 + 15 = 47, and FF = 15 × 16 + 15 = 255.

You will meet hex in colour codes, memory addresses, error codes, MAC addresses and Unicode code points. For hex color values, convert each pair separately: #FF8800 is red 255, green 136 and blue 0. The converter also shows the binary value, handles very large numbers exactly, and includes a hex to decimal table for quick reference. To go the other way, use Decimal to Hex.

Frequently asked questions

Multiply each hex digit by 16 to the power of its position (1, 16, 256, 4096…) and add. 1A3 = 1 × 256 + 10 × 16 + 3 = 419.

FF = 15 × 16 + 15 = 255, the largest value of one byte. FFFF is 65,535.

Base 16 needs sixteen digits, so after 9 it uses letters: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

Split the six digits into pairs and convert each: #1E90FF → 1E = 30, 90 = 144, FF = 255, so RGB(30, 144, 255).

No. ff, FF and Ff all mean 255.