LightMySky

Hexadecimal as Binary Shorthand

Writing four bits as one of sixteen digits, so long binary values can be read and typed by people without anything being lost.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Convert between binary and hexadecimal in groups of four bits
  • Convert a two-digit hexadecimal number to decimal
  • Point at a place hex actually shows up, such as a colour code

1 · Read

Hexadecimal, or hex, is a shorter way to write binary. It has sixteen digits: 0 to 9, then A to F for values 10 to 15.

0 to 9A to F16 digits

Four bits make sixteen patterns, from 0000 to 1111. That is why one hex digit matches exactly four bits.

4 bits16 patterns1 hex digit
Try it together

Split 10100110 into 1010 and 0110. The first group is A and the second is 6, so the hex form is A6.

10100110A6
Try it together

For 2F, F means 15. The 2 is in the sixteens place, so 2F is 2 times 16 plus 15, which equals 47.

2F2 x 161547
Try it together

Split 11011110 into 1101 and 1110. Those groups are D and E, so the answer is DE.

11011110DE

Hex is useful because two hex digits show the same values as eight binary bits in less space. Colour codes on web pages are one place you may see hex.

8 binary bits2 hex digitssame value

Always group from the right. If the first group is short, add zeros to its front. For 101101, use 0010 and 1101, which gives 2D.

101101001011012D

Each hex digit stands for four bits. Group from the right and pad only the short left group.

Original lesson wording, examples, assessment items, and worked steps authored for the P12 computing curriculum.

Enrichment facts and media are adapted from the cited source records; revised flashcards were authored for the P12 computing curriculum. Rewritten readings were written for this dataset.

2 · Watch

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Then practise

8 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Hexadecimal as Binary Shorthand · Computing, ages 14 to 15 · LightMySky