Free tool · no sign-up

Hex to Decimal Converter

Convert hexadecimal to decimal, decimal to hex and hex to binary as you type, with the working shown step by step.

HEX
DEC
BIN
OCT
Try:
Bits needed
6
Bytes
1
Signed (two’s complement)

0010 1111

How hexadecimal becomes decimal

Multiply each digit by 16 to the power of its place, then add them up.

  1. 2 × 16¹32
  2. F (15) × 16⁰15

Total47

Building a tool for developers?

Launch it on BetterLaunch for free and get it in front of thousands of makers and early adopters.

Launch for free

How to use the hex converter

  1. Hex to decimal: type a hex value in the Hexadecimal box, with or without 0x. The decimal value appears below, with the working on the right.
  2. Decimal to hex: type a number in the Decimal box. The hex value updates as you type.
  3. Hex to binary is shown at the same time. Turn on Group digits to see one group of 4 bits per hex digit.

How hexadecimal works

Hexadecimal, or hex, counts in sixteens. It uses the digits 0 to 9 and then the letters A to F for ten to fifteen. Each place is worth 16 times the one to its right: 1, 16, 256, 4,096 and so on.

Programmers like hex because one hex digit is exactly 4 bits, so two hex digits are one byte. That is why you see it in colour codes (#5E6AD2), memory addresses (0x7FFF), MAC addresses and error codes. It is a short way to write binary.

Hex, decimal and binary chart

HexDecimalBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111

Converting words rather than numbers? The binary translator also shows the hex code of every letter.

More free number tools

Frequently asked questions