Binary to Hex Converter
Convert binary to hexadecimal instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.
How to convert binary to hex
Hexadecimal packs four binary bits into a single digit, which is why it is used to write binary compactly. Group the bits in fours and swap each group for its hex digit.
Method: 4 bits map to one hex digit, so you just group and swap.
- Group into 4 bitsSplit the binary into groups of four bits, starting from the right.
- Pad the last groupIf the leftmost group has fewer than four bits, add leading zeros.
- Swap each group for a hex digit0000 = 0, 1010 = A, 1111 = F. Read the hex digits in order.
Examples 11010 = 1A11111111 = FF
Binary to Hex Table
Common binary values with their hexadecimal equivalents.
| Binary | Hexadecimal |
|---|---|
| 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 |
| 10100 | 14 |
| 100000 | 20 |
| 110010 | 32 |
| 1000000 | 40 |
| 1100100 | 64 |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1000000000 | 200 |
| 1111101000 | 3E8 |
Related conversions
Frequently asked questions
How do you convert binary to hex?
Split the binary into groups of four bits from the right (pad the last group with leading zeros), then replace each group with its hex digit: 1010 = A, 1111 = F. So 11110010 = F2.
Why is binary grouped in fours for hex?
Because 16 equals 2 to the 4th power, so exactly four bits map to one hexadecimal digit with no overlap.
What is 1111 in hex?
1111 in binary is F in hex, which is 15 in decimal.