BinaryConverter

Binary to Hex Converter

Convert binary to hexadecimal instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.

How to convert binary to hex

Hexadecimal packs four binary bits into a single digit, which is why it is used to write binary compactly. Group the bits in fours and swap each group for its hex digit.

Method: 4 bits map to one hex digit, so you just group and swap.

  1. Group into 4 bitsSplit the binary into groups of four bits, starting from the right.
  2. Pad the last groupIf the leftmost group has fewer than four bits, add leading zeros.
  3. Swap each group for a hex digit0000 = 0, 1010 = A, 1111 = F. Read the hex digits in order.

Examples 11010 = 1A11111111 = FF

Binary to Hex Table

Common binary values with their hexadecimal equivalents.

Binary to Hex conversion table
BinaryHexadecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F
1000010
1010014
10000020
11001032
100000040
110010064
1000000080
11111111FF
100000000100
1000000000200
11111010003E8

Frequently asked questions

How do you convert binary to hex?

Split the binary into groups of four bits from the right (pad the last group with leading zeros), then replace each group with its hex digit: 1010 = A, 1111 = F. So 11110010 = F2.

Why is binary grouped in fours for hex?

Because 16 equals 2 to the 4th power, so exactly four bits map to one hexadecimal digit with no overlap.

What is 1111 in hex?

1111 in binary is F in hex, which is 15 in decimal.