Convert binary to hex
Binary (base 2) to hexadecimal (base 16). Type a value below, or use the reference table further down.
Multiply each digit by 2 raised to its position, counting from zero on the right, then add the results. 1010 comes to 10 in decimal, which is A in hexadecimal.
How to convert binary to hex
Multiply each digit by 2 raised to its position, counting from zero on the right, then add the results. 1010 comes to 10 in decimal, which is A in hexadecimal.
Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.
binary to hex conversion table
Use this binary to hex chart for quick reference.
| Binary (base 2) | Hexadecimal (base 16) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
| 1001 | 9 |
| 1010 | A |
| 1011 | B |
| 1100 | C |
| 1101 | D |
| 1110 | E |
| 1111 | F |
| 10000 | 10 |
| 100000 | 20 |
| 1000000 | 40 |
| 1100100 | 64 |
| 1111111 | 7F |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1000000000 | 200 |
| 1111101000 | 3E8 |
| 1111111111 | 3FF |
| 10000000000 | 400 |
| 111111111111 | FFF |
| 1000000000000 | 1000 |
| 1111111111111111 | FFFF |
| 10000000000000000 | 10000 |
What is binary?
Binary is base 2, using only 0 and 1. It is how every digital computer physically stores and manipulates data, with each digit representing one bit.
What is hexadecimal?
Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.
Frequently asked questions
How do you convert binary to hexadecimal?
Multiply each digit by 2 raised to its position, counting from zero on the right, then add the results. 1010 comes to 10 in decimal, which is A in hexadecimal.
What is 1010 binary in hexadecimal?
1010 in binary is A in hexadecimal. In plain decimal that value is 10.
What digits does binary use?
Binary is base 2 and uses 0 and 1. Binary is base 2, using only 0 and 1. It is how every digital computer physically stores and manipulates data, with each digit representing one bit.