Hexadecimal to decimal converter

Type a hexadecimal number and get its decimal value instantly, together with binary, decimal, hexadecimal and octal, the bit count and a copy button. Free, in your browser.

  • Free
  • No sign-up
  • Runs in your browser
hex-to-decimal

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Enter the number

Type a hexadecimal number in the box; the base is already selected.

Read the result

Decimal, decimal, hexadecimal, binary and octal appear together.

Copy it

Use the copy button next to the value you need.

How to convert hexadecimal to decimal

To convert hexadecimal to decimal, type your number in the converter above and read the decimal value. For example, D6 in hexadecimal is 214 in decimal. The other bases are shown at the same time.

Why convert hexadecimal to decimal

Hexadecimal appears everywhere in computing, in colour codes, memory addresses, error codes and MAC addresses, while people reason in decimal. Converting D6 to 214 turns a colour channel into a brightness level from 0 to 255, and 0x1F4 into the everyday number 500.

Convert hexadecimal to decimal by hand

Here is D6 (hexadecimal) converted step by step:

  1. Write down the value of each position, counting from the right, as powers of 16: 1, 16, 256, 4096…
  2. Multiply each digit by its position value: 13 × 16 + 6 × 1.
  3. Add the non-zero results: 208 + 6 = 214.

Hex digits and place values

hexdigits
HexDecimalPlace value
0016^0 = 1
1116^1 = 16
2216^2 = 256
3316^3 = 4096
44—
55—
66—
77—
88—
99—
A10—
B11—
C12—
D13—
E14—
F15—

More hexadecimal to decimal examples

examples
HexadecimalDecimalDecimal
A1010
2A4242
64100100
FF255255
12C300300
3E810001000
FFF40954095
FFFF6553565535

Check your answer

To check the result, convert it back: 214 in decimal is D6 in hexadecimal. Your input may only contain the hexadecimal digits 0 1 2 3 4 5 6 7 8 9 A B C D E F; any other character is not a valid hexadecimal number.

Good to know

  • Each hex digit is worth 16 times the one on its right: in D6, D is 13 × 16 and 6 is 6.
  • The letters A to F are not case sensitive: d6 and D6 are the same number.
  • Two hex digits make one byte, from 00 to FF, which is 0 to 255.
  • The converter also shows the other bases at the same time, so a single entry gives you binary, decimal, hexadecimal and octal.

Frequently asked questions

How do I convert hexadecimal to decimal?
Type the number in the converter at the top of this page and read the decimal value. For example, D6 (hexadecimal) is 214 (decimal).
What is FF in decimal?
255, the largest value of one byte.
What does 0x mean before a hex number?
It is a prefix used in many programming languages to say that the digits are hexadecimal. In the converter, type only the digits.
How many bits does D6 need?
D6 is 214 in decimal, which needs 8 bits in binary.
Is this converter free and private?
Yes. It is free, needs no sign-up and works in your browser, so what you type is never sent to a server.