# How to convert Hexadecimal numbers to Binary equivalents

How to convert Hexadecimal numbers to Binary equivalents

Queries:

```a. 0x1347FEAB
b. 0xAB234102
c. 0x0123A2BE
d. 0x00001111```

a. 0x1347FEAB

Solution:

`00010011010001111111111010101011`

To arrive at the answer, first exclude the hexadecimal prefix “0x” from 0x1347FEAB to get 1347FEAB. Remember these are still in hexadecimal format. To get the Binary version of the given Hex number, take each Hexadecimal character separately and convert it to its equivalent Binary of 4 bits.

Below are the respective Binary equivalents of Hexadecimal numbers;

```1 - 0001
2 - 0010
3 - 0011
4 - 0100
5 - 0101
6 - 0110
7 - 0111
8 - 1000
9 - 1001
A - 1010
B - 1011
C - 1100
D - 1101
E - 1110
F - 1111```

From the above, let’s replace the Hexadecimal with the equivalent Binary;

`1347FEAB -> 0001 | 0011 | 0100 | 0111 | 1111 | 1110 | 1010 | 1011`

Now combining the Binary IP, we get; 00010011010001111111111010101011

The same procedure was applied to arrive at the corresponding Binary equivalents for b, c and d!

b. 0xAB234102

Solution:

`10101011001000110100000100000010`

c. 0x0123A2BE

Solution:

`00000001001000111010001010111110`

d. 0x00001111

Solution:

`00000000000000000001000100010001`

How to convert Hexadecimal numbers to Binary equivalents
Wiki | thetqweb