Base Converter guide

How to Convert Binary to Hexadecimal

Split the binary number into groups of four digits, starting from the right, then convert each group into a single hex digit. For 11010110, the groups are 1101 and 0110, which become D and 6 — so the answer is D6. No arithmetic is needed.

This is the easiest conversion there is

Binary and hexadecimal fit together perfectly, because 16 is 2 to the power of 4. That means one hex digit is exactly four binary digits, always, with no carrying and no remainders.

So converting between them is pure substitution. You are not calculating anything — you are looking things up.

The lookup table

This is worth getting familiar with. Sixteen rows, and then you never need to think about this conversion again.

BinaryHexBinaryHex
0000010008
0001110019
001021010A
001131011B
010041100C
010151101D
011061110E
011171111F

The method

Split the binary number into groups of four, starting from the right. Then swap each group for its hex digit.

For 11010110: split into 1101 and 0110.

1101 is D. 0110 is 6.

So 11010110 is D6. That is the whole conversion — no adding, no dividing.

Padding the left-hand group

If the number of digits is not a multiple of four, the leftmost group will be short. Pad it with zeros on the left until it has four digits.

So 110110 splits into 11 and 0110. Pad the 11 to 0011, which is 3, and 0110 is 6. The answer is 36.

Adding zeros on the left never changes a number's value, exactly as writing 42 as 0042 does not change it. Adding them on the right would multiply it by 16, which is why the direction matters.

Going the other way

Hex to binary is the same trick in reverse: replace each hex digit with its four binary digits, and run them together.

D6 becomes 1101 and 0110, which is 11010110. Back where we started.

Keep the leading zeros in the middle groups when you do this. Writing 6 as 110 instead of 0110 loses a position and corrupts everything to its left.

Why octal uses groups of three

The same trick works for octal, because 8 is 2 to the power of 3. So one octal digit is exactly three binary digits.

Splitting 11010110 into threes from the right gives 11, 010 and 110 — pad the first to 011 — which is 3, 2, 6, so 326 in octal.

This is why octal and hex are the two bases you meet alongside binary. They are the ones that line up with it exactly.

FAQ

Related questions

How do you convert binary to hex?

Split the binary into groups of four from the right, padding the leftmost group with zeros if needed, then replace each group with its hex digit.

Why groups of four?

Because four binary digits have exactly sixteen possible combinations, which is exactly the number of hex digits. The two systems line up perfectly.

Do I pad with zeros on the left or the right?

The left, always. Zeros on the left do not change the value; zeros on the right multiply it by 16.

Is there a shortcut from decimal to hex too?

No. Decimal does not line up with binary or hex, so it needs real arithmetic — repeated division by 16, or convert to binary first and then group in fours.

Take Base Converter with you

The app adds plain-English AI explanations, dark mode, and works offline — useful when there is no signal or the exam hall has no Wi-Fi.

Free to download. AI explanations and dark mode are part of the optional PRO subscription.