How to convert hexadecimal to binary

By AIM-VNR · Updated

To convert hexadecimal to binary, replace each hex digit with its 4-bit group, then join the groups. Leading zeros at the very start can be dropped.

Steps

  1. Write each hex digit as 4 bits. Use the table in binary to hexadecimal.
  2. Join the groups in the same order.
  3. Remove the leading zeros at the start if you like.

Example 1: 3A7

3 is 0011, A is 1010, 7 is 0111. Joined: 001110100111. Without the leading zeros: 1110100111.

Example 2: B4

B is 1011 and 4 is 0100. The answer is 10110100.

Example 3: 2F

2 is 0010 and F is 1111. Joined: 00101111. Without the leading zeros: 101111.

Check your answer

Count the bits: every hex digit gives exactly 4 bits, so 2 hex digits give 8 bits before you drop the leading zeros.

Practise it

In Binary Practice, open Training and choose hexadecimal to binary. The answer field accepts leading zeros, so you can type all 4 bits for every digit.

Reverse direction: binary to hexadecimal.