Convert Binary to Hexadecimal
Do you need to convert a binary number to hex? Use the free calculator below. It translates any base 2 number into its base 16 value right away. No confusing math required.
Binary to hex converter
Quick Reference
Binary to Hexadecimal Chart
This binary to hex table makes things easy. You can use this chart to look up common values without calculating them.
| Binary | Grouped in Four Bits | Hexadecimal |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 10 | 0010 | 2 |
| 11 | 0011 | 3 |
| 100 | 0100 | 4 |
| 101 | 0101 | 5 |
| 110 | 0110 | 6 |
| 111 | 0111 | 7 |
| 1000 | 1000 | 8 |
| 1001 | 1001 | 9 |
| 1010 | 1010 | A |
| 1011 | 1011 | B |
| 1100 | 1100 | C |
| 1101 | 1101 | D |
| 1110 | 1110 | E |
| 1111 | 1111 | F |
| 10000 | 0001 0000 | 10 |
| 11001 | 0001 1001 | 19 |
| 111111 | 0011 1111 | 3F |
| 11111111 | 1111 1111 | FF |
The Process
How to Convert Binary to Hex
Translating binary to hex is actually pretty simple. You just group the numbers together.
The Method
Binary uses base 2. It only uses two digits: 0 and 1. Hexadecimal uses base 16. It relies on the numbers 0 through 9 and the letters A through F.
To convert from binary to hexadecimal, you just break the binary number into small groups and translate them.
How to Turn BIN into HEX
Write the binary number
Start with the base 2 value you want to translate. Let us use 10101111 as an example.
Group the digits
Break the numbers into chunks of four. Start from the right side and move left. You get 1010 and 1111. If your final group is too short, just add zeros to the front.
Convert each group
Match each group to its hex value. We know 1010 is A and 1111 is F. This means 10101111 translates to AF. You have your answer.
Why It Matters
Why Convert Binary to Hexadecimal?
Computers read binary perfectly. It is the core language of all hardware. But long strings of ones and zeros are really hard for humans to read.
That is why programmers use hexadecimal. It is much shorter. One single hex digit takes the place of four binary bits. This compresses the data and makes it easier to look at.
You will see hex values used all the time for memory addresses, color codes, and networking protocols. If you do not want to do the math by hand, a bin to hex converter is the best way to handle it.
Worked Examples
Sample Binary to Hex Conversions
Let us look at how to translate some common binary numbers to hexadecimal.
10 in binary to hex
Add two zeros to the front so you get 0010. That equals 2 in hex.
101 in binary to hex
Pad the number to make it 0101. That becomes 5.
1000 in binary to hex
The binary string 1000 is equal to 8.
1010 in binary to hex
The sequence 1010 translates perfectly to A.
1111 in binary to hex
The max four bit value of 1111 converts to F.
10000 in binary to hex
Break it into two groups. You get 0001 and 0000. That equals 10 in hex.
11001 in binary to hex
Split it into 0001 and 1001. You get 1 and 9. The final answer is 19.
11111111 in binary to hex
Break it into 1111 and 1111. Both blocks equal F. That gives you FF.
FAQ
Frequently Asked Questions
Everything you need to know about changing base 2 into base 16.