How to – Binary to Hexadecimal Conversion

Converting binary into hexadecimal is very simple. All we need is to remember that hexadecimal is a base 16 number.  This means that each number column can contain 16 characters.  Hexadecimal goes from 0 to F:

Decimal NumberBinary NumberHexadecimal Number
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F

EG

Using the table – 0111 in binary is 7 in hexadecimal.

Using the table – 1010 in binary is A in hexadecimal.


Binary to 2 Digit Hexadecimal Conversion

In GCSE computer science you will be expected to convert binary into 2 digit hexadecimal.  Again we need to remember that hexadecimal is a base 16 number and each number column can go from 0-9 and A-F. 


Example 1

Convert Binary number 10100010 into Binary

Split the binary number into a 2 column table in nibbles (4 bits).

10100010

Using the table above and our knowledge of binary, we can now convert the individual binary nibbles into hexadecimal. 

10100010
1010 = A0010 = 2

We now simply combine these 2 hexadecimal digits:

1010 0010 = A2 in hexadecimal


Example 2

Convert binary number 00101000 into hexadecimal

00101000
0010 = 21000 = 8

0010 1000 = 28 in hexadecimal