Data representation - EduqasBinary to hexadecimal

Binary data can represent numbers, graphics, sound and characters. It is then organised and manipulated differently. Data can also be stored in arrays, records or external files and go through validation or verification checks to ensure accuracy.

Part ofComputer ScienceUnderstanding Computer Science

Binary to hexadecimal

  1. Starting at the right-most digit, break the binary number up into groups of four digits. These are known as . If there are fewer than four digits, use just that number of digits for that group.
  2. Convert each group of four digits into denary.
  3. Convert each denary value into its hexadecimal equivalent.
  4. Put the hexadecimal digits together.

Example - 1101 to hexadecimal

1101 = denary 13

13 = hexadecimal D

Result: D

Example – convert 11000011 to hexadecimal

Break into groups of four: 1100 0011

1100 = denary 12

0011 = denary 3

12 = hexadecimal C

3 = hexadecimal 3

Result: C3

16-bit binary to hexadecimal

As always, start from the right and split the binary number into nybbles. Then convert each nybble into the equivalent hexadecimal value.

Example: convert binary 1100010111011111 to hexadecimal

Break into groups of 4: 1100 0101 1101 1111

Convert each to denary: 12 5 13 15

Convert each to hex: C 5 D F

Result: C5DF