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.
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.
Four bits make sixteen patterns, from 0000 to 1111. That is why one hex digit matches exactly four bits.
Split 10100110 into 1010 and 0110. The first group is A and the second is 6, so the hex form is A6.
For 2F, F means 15. The 2 is in the sixteens place, so 2F is 2 times 16 plus 15, which equals 47.
Split 11011110 into 1101 and 1110. Those groups are D and E, so the answer is DE.
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.
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.
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
Where it sits
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.