Binary to Hexadecimal Converter
Convert a binary integer to hexadecimal with exact arithmetic. The result shows how the bits split into four-bit groups and how each group becomes one hex digit.
Written and checked by TheToolNet Editorial Team · Last reviewed: September 19, 2026 · How we check conversion tools
Group binary digits in fours from the right. Because 16 = 2⁴, every four-bit group maps exactly to one hexadecimal digit.
Convert binary to hexadecimal
Enter an unsigned binary integer. The converter accepts spaces, underscores, and an optional 0b prefix.
How to convert binary to hexadecimal
- Start at the binary point's left side—or at the final bit for an integer—and group digits in sets of four moving left.
- If the leftmost group has fewer than four bits, add leading zeros.
- Replace each group with the matching hexadecimal digit from 0 through F.
Binary to hexadecimal mapping table
| Binary | Hex | Binary | 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 |
Binary to hexadecimal example
For binary 110101100, pad and group it as 0001 1010 1100. The groups map to 1, A, and C, so 110101100₂ = 1AC₁₆. Both representations equal 428 in decimal.
If you need the base-10 value instead, use the binary-to-decimal steps.
Scope and limitations
The converter handles unsigned whole numbers up to 512 binary digits. It does not treat the first bit as a sign bit and does not decode two's-complement values. Binary fractions require grouping on both sides of the binary point and are outside this tool's current scope.
Frequently asked questions
Why group binary digits in fours?
Four bits have 16 patterns, exactly matching the 16 hexadecimal digits 0–F.
Which side do I start grouping from?
For whole numbers, start at the rightmost bit and move left. Add zeros only to the leftmost incomplete group.
What is 1111 binary in hexadecimal?
It is F. The bit pattern 1111 equals decimal 15, represented by F in hexadecimal.