# Convert Binary to Hexadecimal

Use this **binary to hexadecimal ** conversion calculator to convert from base-2 number system to base-16 number system online with step by step detailed solution

## How to Convert from binary to hexadecimal

In number system, we know binary is base-2 and hexadecimal is base-16. To convert binary to hexadecimal, you follow these steps:

To do this, first convert binary into decimal, then the resulting decimal into hexadecimal

- Start from one's place in binary : multiply ones place with 2^0, tens place with 2^1, hundreds place with 2^2 and so on from right to left
- Add all the products we got from step 1 to get the decimal equivalent of given binary value.
- Divide decimal value we got from step-2 by 16 keeping notice of the quotient and the remainder.
- Continue dividing the quotient by 16 until you get a quotient of zero.
- Then just write out the remainders in the reverse order to get hexadecimal equivalent of decimal number.

### Example #1

Convert 1111111 from binary to hexadecimal

First, find the decimal value of 1111111_{2} by using step1 & step2 above:

1111111_{2} = 1 × 2^{7}1 × 2^{6}1 × 2^{5}1 × 2^{4}1 × 2^{3}1 × 2^{2}1 × 2^{1} = 127_{10}

Now, convert 127_{10} to hexadecimal

127 / 16 = 7 with remainder 15 (F)

7 / 16 = 0 with remainder 7

127_{10} = 7f_{16}

Therefore, 1111111_{2} = 7f_{16}

#### binary to hexadecimal examples