Home / Definitions / Hexadecimal

Hexadecimal

Vangie Beal
Last Updated May 24, 2021 7:44 am

Refers to the base-16 number system, which consists of 16 unique symbols: the numbers 0 to 9 and the letters A to F. For example, the decimal number 15 is represented as F in the hexadecimal numbering system. The hexadecimal system is useful because it can represent every byte (8 bits) as two consecutive hexadecimal digits. It is easier for humans to read hexadecimal numbers than binary numbers.

To convert a value from hexadecimal to binary, you merely translate each hexadecimal digit into its 4-bit binary equivalent. Hexadecimal numbers have either an 0x prefix or an hsuffix. For example, the hexadecimal number

0x3F7A

translates to the following binary number:

0011 1111 0111 1010