How to use the Binary to Hex Converter
- Type or paste a binary number (spaces are ignored).
- Read the hex result and copy it.
- Check the groups of 4 bits shown below to see how each hex digit was found.
- Use the swap button to convert hex back to binary.
About this tool
Convert binary to hex the quick way. Type a binary number such as 10101101 and the hexadecimal result, AD, appears at once, together with the working: your bits split into groups of 4 bits, each with its matching hex digit. This binary to hexadecimal converter handles numbers of any length exactly.
The method is simple because 16 is 2 to the power 4. Starting from the right, split the binary number into groups of four bits (a group of four bits is called a nibble), adding zeros on the left if the last group is short. Then replace each group with one hex digit: 0000 = 0, 0001 = 1 … 1001 = 9, 1010 = A, 1011 = B, 1100 = C, 1101 = D, 1110 = E and 1111 = F. So 1 0110 1110 becomes 0001 0110 1110 = 16E.
Programmers use this base 2 to base 16 shortcut constantly, because a long binary value becomes a quarter of the length in hex and is much easier to read. The converter also shows the decimal value, and the swap button switches to Hex to Binary.