Hex to Binary Conversions
How do we convert a hexadecimal number to binary?
The trick is to assign a 4-bit binary number to each hex digit. Thus:-
F816 = 1111 10002
i.e. The first hex number is F . The number F in decimal is 15 . When you convert the number 15 to binary you get 1111
The second hex number is 8 . In decimal this is also 8 . When you convert the number 8 to binary you get 1000
Combining the numbers together gives 1111 10002
The trick is to convert each separate hex number to binary, then join the binary numbers together in the correct order. Also, each separate binary number must be four bits long. If a binary number ends up less than four bits long, just add leading zeros. As an example of this...
F416 = 1111 01002
We worked out in the previous example that the number F in binary is 1111 . What about the hex number 4 ? Well, in decimal this is also 4 . When you convert the number 4 to binary you get 100 . Since this is not four bits long, I just add a leading zero - 0100 .
One final example. Lets convert 7D416 to binary.
The first hex number is 7 . The number 7 in decimal is 7 . When you convert the number 7 to binary you get 0111 (notice the leading zero).
The second hex number is D . In decimal this is 13 . When you convert the number 13 to binary you get 1101
The third hex number is 4 . In decimal this is 4 . When you convert the number 4 to binary you get 0100
7D416 = 0111 1101 01002
~Now try the activity~
Activity D |
- Convert the following hexadecimal numbers to binary
-
F816
-
FF16
|
|