Hexadecimals

A hexadecimal number is based on the number 16

16 Different Values

There are 16 hexadecimal digits. They are the same as the decimal digits up to 9, but then there are the letters A, B, C, D, E and F in place of the decimal numbers 10 to 15:

Hexadecimal: 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

So a single hexadecimal digit can show 16 different values instead of the normal 10.

Counting

Choose "Hexadecimal" below and watch it count:

numbers/images/number-odometer.js?mode=16

After the ones place reaches F it resets to 0, and we add 1 to the next position (to show a group of 16)

And after that position reaches F, we do the same thing, and so on.

As we move left, every place is 16 times bigger.


Example: The decimal value of the hexadecimal number "D1CE"

Hexadecimal number D1CE showing place values 4096, 256, 16, and 1

(Test it in the Binary to Decimal to Hexadecimal Converter.)

10

When we see 10 in Hexadecimal, it doesn't mean the decimal ten. It means one group of sixteen and zero ones.

It is good practice to put a little "16" as a subscript, so we know it is a hexadecimal number:

The Point!

Example: 2E6.A3

Hexadecimal number 2E6.A3 broken down into powers of 16

This is 2×16×16 + 14×16 + 6 + 1016 + 316×16

= 742.63671875 in Decimal
Read below to discover why

Numbers can be placed left or right of the point, to show values greater than one or less than one:

left arrow  
The digit just left of the point is a whole number.
Moving left every digit place is 16 times bigger.



right arrow  
The first digit on the right of the point means sixteenths (1/16).
Moving right every digit place is 16 times smaller (one sixteenth as big).

More Examples

Example 1: What is 4B5 (hexadecimal)?

Example 2: What is 2.3 (hexadecimal)?

Hexadecimal Place Value Chart (Including Fractions)

In hexadecimal (base 16), each place represents a power of 16:

163 162 161 160 16-1 16-2 16-3
Hex: 100016 10016 1016 116 0.116 0.0116 0.00116
Decimal: 4096 256 16 1
116
1256
14096

Example: Hexadecimal 2F.8A316:

Place 161 160 16-1 16-2 16-3
Hex Digit 2 F 8 A 3
Decimal Value 32 15
816
10256
34096

Total ≈ 47.53979492187510

Cartoon dog with four paws, each showing four toes for a total of 16

Dogs

Dogs would find hexadecimal easy to understand: just count on their toes!

The Word "Hexadecimal"

The word "hexadecimal" means "based on 16" (From Greek hexa: "six" and Latin decima: "a tenth part").
2016, 2017, 2018, 2019, 2020, 2021, 3595, 3596, 3597, 3598