How to use it
- Type or paste a binary number (spaces and 0b are fine).
- Read the hex result.
- Check the four-bit groups and their hex digits.
- Copy the result or reverse the conversion.
How to convert binary to hex
Because 16 = 2⁴, every hex digit stands for exactly four bits. Split the binary number into groups of four starting from the right, pad the leftmost group with zeros if needed, and replace each group with its hex digit.
Example: 11010110
1101 | 0110 → D | 6 → D6
| Bits | Hex | Bits | Hex |
|---|---|---|---|
| 0000 | 0 | 1000 | 8 |
| 0001 | 1 | 1001 | 9 |
| 0010 | 2 | 1010 | A |
| 0011 | 3 | 1011 | B |
| 0100 | 4 | 1100 | C |
| 0101 | 5 | 1101 | D |
| 0110 | 6 | 1110 | E |
| 0111 | 7 | 1111 | F |
No arithmetic is needed, which is why programmers read hex so easily. Padding with leading zeros never changes the value. Want the decimal value too? Use binary to decimal.
Frequently asked questions
What is 1111 in hex?
F.
What is 10101010 in hex?
AA.
Why group by four bits?
Each hex digit covers 16 values, exactly what four bits can represent.
Last updated: November 12, 2026