Skip to content

What is a Hexadecimal Number?

Published: at 05:30 AM

A hexadecimal number is a number that uses the base-16 numbering system. This means that each digit in a hexadecimal number represents a power of 16. Hexadecimal numbers are often used in computing because they can represent large numbers in a compact form.

In the hexadecimal numbering system, the digits 0-9 represent the values 0-9, and the letters A-F represent the values 10-15. For example, the hexadecimal number 1A can be represented as:

1×161+A×1601 \times 16^1 + A \times 16^0

In this representation, the first digit (1) represents 16 (1×1611 \times 16^1), and the second digit (A) represents 10 (10×1600 \times 16^0). When you add these values together, you get the decimal number 26.

1×161+A×160=16+10=261 \times 16^1 + A \times 16^0 = 16 + 10 = 26

In addition to hexadecimal numbers, there are other numbering systems, such as binary and decimal, that are used in computing. However, hexadecimal numbers are particularly useful because they can represent large numbers in a compact form and are easy to convert to binary.

Examples

The following table shows the decimal, binary & hexadecimal representations of the numbers 0 through 15:

DecimalBinaryHexadecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F

References