Uses of Hexadecimal

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 that is made up of 16 digits: 0 – 9 and six more, which is A through F.
The table below shows how the hexadecimal system works and its equivalent decimal number:

HexadecimalDecimal HexadecimalDecimal
00 11 = (1 x 16) + 117
11 12 = (1 x 16) + 218
22 13 = (1 x 16) + 319
33 14 = (1 x 16) + 420
44 15 = (1 x 16) + 521
55 16 = (1 x 16) + 622
66 17 = (1 x 16) + 723
77 18 = (1 x 16) + 824
88 19 = (1 x 16) + 925
99 1A = (1 x 16) + 1026
A10 1B = (1 x 16) + 1127
B11 1C = (1 x 16) + 1228
C12 1D = (1 x 16) + 1329
D13 1E = (1 x 16) + 1430
E14 1F = (1 x 16) + 1531
F15 20 = (2 x 16) + 032
10 = (1 x 16) + 016 

Place Value

If decimal numbers have place values like ones, tens, hundreds, thousands, and so on, hexadecimal numbers have place values as well.  Decimals have powers of 10 while Hexadecimals have powers of 16.
The table below shows how the place value works for the hexadecimal numbering system:

Exponent163162161160
Value4,096256161
HexadecimalDecimal
1016
100256
10004,096

Uses of Hexadecimal

The 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 systems while humans use hexadecimal numbering systems to shorten binary and make it easier to understand.
Hexadecimal are used in the following:

  • To define locations in memory. Hexadecimals can characterise every byte as two hexadecimal digits only compared to eight digits when using binary.
  • To define colours on web pages. Each primary colour – red, green and blue is characterised by two hexadecimal digits.  The format being used is #RRGGBB.  RR stands for red, GG stands for green and BB stands for blue.
  • To represent Media Access Control (MAC) addresses. MAC addresses consist of 12-digit hexadecimal numbers.  The format being used is either MM:MM:MM:SS:SS:SS or MMMM-MMSS-SSSS.  The first 6 digits of the MAC address represent the ID of the adapter manufacturer while the last 6 digits represent the serial number of the adapter.
  • To display error messages. Hexadecimals are used to define the memory location of the error.  This is useful for programmers in finding and fixing errors.

Advantages of the Hexadecimal System

Here are some advantages of using the hexadecimal system:

  • It is very concise and by using a base of 16 means that the number of digits used to signify a given number is usually less than in binary or decimal. It allows you to store more information using less space.
  • It is fast and simple to convert between hexadecimal numbers and binary. Hexadecimal can be used to write large binary numbers in just a few digits.
  • It makes life easier as it allows grouping of binary numbers which makes it easier to read, write and understand. It is more human-friendly, as humans are used to grouping together numbers and things for easier understanding.  Also, writing in less digits lowers the possibility of error occurring.

Further Readings:

One of the uses of hexadecimal is simplifying binary for programmers