Binary to Hex Converter

Convert binary to hex by grouping bits in fours – the working is shown.

How it works – step by step

Binary to decimal table (0–1024)
DecimalBinaryHex
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F
160001 000010
170001 000111
180001 001012
190001 001113
200001 010014
210001 010115
220001 011016
230001 011117
240001 100018
250001 100119
260001 10101A
270001 10111B
280001 11001C
290001 11011D
300001 11101E
310001 11111F
320010 000020
500011 001032
640100 000040
1000110 010064
1270111 11117F
1281000 000080
2001100 1000C8
2551111 1111FF
2560001 0000 0000100
5120010 0000 0000200
10000011 1110 10003E8
10240100 0000 0000400

How to use the Binary to Hex Converter

  1. Type or paste a binary number (spaces are ignored).
  2. Read the hex result and copy it.
  3. Check the groups of 4 bits shown below to see how each hex digit was found.
  4. 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.

Frequently asked questions

Split the bits into groups of four from the right, pad the left group with zeros, and write each group as one hex digit. 11010110 → 1101 0110 → D6.

Four bits can hold 16 values (0–15), exactly the 16 digits of hexadecimal, so each group maps to one hex digit with no arithmetic.

FF. Each group of four 1s is F, and FF is 255 in decimal.

Half a byte: a group of four bits. Each nibble is one hex digit, so a byte is always two hex digits.