Hexadecimal (base-16) is used to represent binary numbers in a more human-readable form, grouping 4 bits into a single digit.

Theory

In hexadecimal:

  • Digits range from 0 to F (where A = 10, B = 11, โ€ฆ, F = 15).
  • One hexadecimal digit represents four binary digits (bits).

Hex is commonly used because it is easier to read and write large binary numbers. For example, a 64-bit binary number can be compactly written as a 16-character hexadecimal number.

Conversion Example:

To convert binary to hexadecimal:

  1. Group the binary number into 4-bit chunks:
  2. Convert each chunk to hexadecimal:

Thus, the hexadecimal representation is .