You are on page 1of 2

Binary/Hexadecimal

Conversion Directions

1. Remember the Binary/Decimal Conversions done earlier:
a. place value determines what that digit contributes to the value of the
whole number
i. in decimal that is the 1s, 10s, 100s, 1000s, (or 100, 101, 102,
103)
ii. in binary that is the 1s, 2s, 4s, 8s, 16, (or 20, 21, 22, 23, 24)
b. process of repeated division or the process or subtraction for
converting from decimal to binary
c. process of multiplication and adding for conversion from binary to
decimal
2. For Binary/Hex conversions the process is actually easier because the
numbers being converted never get very large
a. since 16 = 24, each hexadecimal digit can be represented as exactly 4
binary digits and every 4 binary digits can be represented as exactly
one hexadecimal digit.
b. within that one set of 4 binary digits, there will always only be four
places: 20, 21, 22, 23
c. When converting hexadecimal to binary, the options are
i. to memorize the table:
0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

ii. or to remember what decimal value they represent and
convert the same as you did for decimal to binary
iii. Examples
1. A4 16 = _______ 2

A is 1010 (by chart above or because
10/2 = 5R0, 5/2 = 2R1, 2/2 = 1R0 and 1/2 = 0R1 and
writing the remainders in reverse order gives us 1010)

4 is 0100 (by chart above)

putting them side by side, A416 = 101001002

2. 57 16 = _______ 2
5 is 0101 (by chart above)
7 is 0111 (by chart above)
putting them side by side, 5716 = 010101112
but leading 0s are not needed so 5716 = 10101112
3. 29A 16 = _______ 2
2 is 0010 (by chart above)
9 is 1001 (by chart above)
A is 1010 (by chart above)

putting them side by side, 29A16 = 0010100110102
but leading 0s are not needed so 29A16 = 10100110102
(note: trailing 0s are needed so can not be removed)
d. When converting binary to hexadecimal, the process is
i. separate the bits into groups of 4 starting from the 1s place
ii. convert each of those 4-bit groupings to its one hexadecimal
digit either using the table above or multiplying and adding
like you did for binary to decimal conversions
iii. Examples
1. 10010111 2 = __________ 16
10010111 2 = 1001 0111

10012 = 916
(from table above or because 8*1+4*0+2*0+1*1 = 9)

01112 = 716
(from table above or because 8*0+4*1+2*1+1*1 = 7)

putting them side by side: 10010111 2 = 9716
2. If there arent the correct number of digits, you can add
0s on the front (not by the 1s place)
100110 2 = __________ 16
100110 2 = 0010 0110

00102 = 216

01102 = 616

putting them side by side: 100110 2 = 2616
3. Remember to convert to the letters with A=10, B=11,
etc if needed
10101111 2 = __________ 16
10101111 2 = 1010 1111

10102 = 1010 = A16
(because 1*8+0*4+1*2+0*1 = 10)

11112 = 1510 = F16
(because 1*8+1*4+1*2+1*1 = 15)

putting them side by side: 10101111 2 = AF16

You might also like