Skip to the content

Binary to Hex Converter

Convert binary to hexadecimal four bits at a time, and see which group becomes which hex digit.

Type a binary number in the first field and read it in hexadecimal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.

Working

Group of 4 bitsHex digit
00102
1101D
01106

Side by side: 2D6

Other bases

from 2 to 36
Bit length
10 bits
Fits in
2 bytes
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How to convert binary to hexadecimal by hand

Sixteen is 2⁴, so one hex digit stands for exactly four bits. There is no arithmetic in this conversion, only cutting and looking up.

Split the bits into groups of four, starting from the right. If the left-hand group comes up short, fill it with zeros. Then replace every group by its hex digit. For 1011010110 the groups are 0010, 1101 and 0110. Those are 2, D and 6, so the answer is 2D6.

The working under the two fields at the top of the page does this for whatever number you type.

Good to know

  • Always group from the right. Starting at the left gives a wrong answer whenever the number of bits is not a multiple of four.
  • The value of a group is the sum of 8, 4, 2 and 1 for the bits that are set: 1101 is 8 + 4 + 1 = 13, which is D.
  • A byte is two groups, so it is always two hex digits: 11111111 is FF.

Binary to hexadecimal table

BinaryHexadecimal
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F
0001 000010
BinaryHexadecimal
0001 010014
0010 000020
0011 001032
0100 000040
0110 010064
0111 11117F
1000 000080
1100 1000C8
1111 1111FF
0001 0000 0000100
0001 1111 01001F4
0010 0000 0000200
0011 1110 10003E8
0100 0000 0000400
0001 0000 0000 00001000
1111 1111 1111 1111FFFF

The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.

See all 9