Binary to Hex Converter
Type a binary number and get its hexadecimal form, plus decimal and octal.
- Decimal
- Hex
- Binary
- Octal
Click a bit to flip it.
How to convert binary to hex
Split the bits into groups of four, starting from the right, and pad the leftmost group with zeros if needed. Each group is one hex digit.
Worked example
1010 0011: 1010 is A and 0011 is 3, so the result is A3.
Why programmers use hex
Long bit patterns are hard to read. Hex is four times shorter and converts to bits in your head, which is why memory addresses, colours and byte dumps are written in it.
Other conversions
- Hex to decimal · Decimal to hex
- Binary to decimal · Decimal to binary
- Hex to binary · Binary to hex
- Full programmer calculator with bitwise operations, floats and timestamps