Binary to Hex Converter
Convert any binary number to its hexadecimal representation. Supports spaces, handles invalid characters, and provides instant results.
Hex output
Example: Binary to Hex
- Binary:
01001000 01100101
Hex:48 65
"01001000 01100101" = 48 65 (H E) - Binary:
110011
Hex:33
How to Convert Binary to Hexadecimal?
- Write or paste your binary number (only 0 and 1 are valid).
- Split the binary number into groups of 4 bits (add leading zeros if necessary).
- Convert each 4-bit group to its hexadecimal equivalent.
- Combine all the hex digits together.
Binary to Hex Table
Binary (4-bit) | Hex |
---|---|
0000 | 0 |
0001 | 1 |
0010 | 2 |
0011 | 3 |
0100 | 4 |
0101 | 5 |
0110 | 6 |
0111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | A |
1011 | B |
1100 | C |
1101 | D |
1110 | E |
1111 | F |
What is Binary? Why Convert to Hex?
Binary uses only 0 and 1. It's the native language of computers. Hexadecimal makes binary shorter and easier to read for humans. For example, a byte (8 bits) in binary is two hex digits (e.g. 01001000 = 48).
FAQ
- How many bits is a hex digit?
One hex digit equals 4 binary bits. - What if my binary number has spaces?
No problem! The tool ignores spaces and other non-binary characters. - What is binary used for?
All digital data and computers operate in binary.