Converting Hexadecimal to Binary

KS3 Computer Science

11-14 Years Old

48 modules covering EVERY Computer Science topic needed for KS3 level.

GCSE Computer Science

14-16 Years Old

45 modules covering EVERY Computer Science topic needed for GCSE level.

A-Level Computer Science

16-18 Years Old

66 modules covering EVERY Computer Science topic needed for A-Level.

KS3 Hexadecimal System (14-16 years)

  • An editable PowerPoint lesson presentation
  • Editable revision handouts
  • A glossary which covers the key terminologies of the module
  • Topic mindmaps for visualising the key concepts
  • Printable flashcards to help students engage active recall and confidence-based repetition
  • A quiz with accompanying answer key to test knowledge and understanding of the module

A-Level Hexadecimal Resources (16-18 years)

  • An editable PowerPoint lesson presentation
  • Editable revision handouts
  • A glossary which covers the key terminologies of the module
  • Topic mindmaps for visualising the key concepts
  • Printable flashcards to help students engage active recall and confidence-based repetition
  • A quiz with accompanying answer key to test knowledge and understanding of the module

Hexadecimal Numbering System

Hexadecimal is a base 16 numbering system which is made up of 16 digits: 0 – 9 and six more, which is A through F.

Uses of Hexadecimal

Hexadecimal numbering system is often used by programmers to simplify the binary numbering system.  Since 16 is equivalent to 24, there is a linear relationship between the numbers 2 and 16.  This means that one hexadecimal digit is equivalent to four binary digits.  Computers use binary numbering system while humans use hexadecimal numbering system to shorten binary and make it easier to understand.

Binary Numbering System

Binary is a base 2 numbering system which is made up of two numbers: 0 and 1.  0 means OFF and 1 means ON.  The computer’s central processing unit (CPU) only recognizes these two states – ON and OFF.  It is the foundation for all binary code, which is used in computer and digital systems.

Bits and Bytes

A binary digit called bit is the smallest unit of data in a computer.  Each bit has a single value which is either 0 or 1.  8 bits (b) is equivalent to 1 byte (B).

Conversion from Hexadecimal to Binary

Conversion can be done by converting each hexadecimal digit to 4 binary digits based on the following table:

HexadecimalBinary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111

Example: 3B29, convert each digit as follows:

3 is converted to 0011

B is converted to 1011

2 is converted to 0010

9 is converted to 1001

So hexadecimal number 3B29 is equivalent to 0011101100101001 in binary.

Conversion from Binary to Hexadecimal

Conversion can be done in two ways:

  1. Basic Conversion – this is used for binary numbers with four or less digits.
  • Start with four binary numbers to convert. If the binary has less than 4 digits, just add zeroes to the front to make it 4 digits.

Example: 1010
If you have 01, make it 0001.

  • Put the binary number on the power of 2 columns as follows:
Exponent23222120
Value8421
Binary1010
  • Take the corresponding value of each binary digit equal to 1 and add to get the total value. The total value corresponds to the decimal equivalent.

Total value = (8 + 2) = 10
So binary number 1010 is 10 in decimal number.

  • Convert decimal to hexadecimal.

Decimal number 10 is A in hexadecimal. Refer to the table below.
So binary number 1010 is equivalent to A in hexadecimal.

HexadecimalDecimal
00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15
  1. Conversion of Long Binary Numbers – this is used for binary numbers with more than four digits.
  • Break the string of binary numbers into groups of four, from right to left. If the leftmost binary has less than 4 digits, just add zeroes to the front to make it 4 digits.

Example: 11101100101001
11 1011 0010 1001
(0011) (1011) (0010) (1001)

  • Convert each group at a time using the Basic Conversion method discussed earlier.

0011 = (2 + 1) = 3
1011 = (8 + 2 + 1) = 11 = B
0010 = 2
1001 = (8+1) = 9

  • Put together the converted value of each group.

So binary number 11101100101001 is 3B29 in hexadecimal.