Base-2 to base-16

Binary to Hex Converter

Paste a binary number and convert it to hexadecimal using four-bit groups.

Hex-
Decimal-
Grouped bits-

Step-by-step conversion

Enter binary digits to see each four-bit group converted to hex.

Binary to hexadecimal method

Hexadecimal is compact because one hex digit maps exactly to four binary bits. To convert binary to hex, pad the left side with zeros if needed, split the value into four-bit groups, and convert each group into a digit from 0 to F.

For example, 11111111 becomes 1111 1111. The first group maps to F, and the second group also maps to F, so the final answer is FF.

Common examples

  • 1010 equals A.
  • 00101010 equals 2A.
  • 11111111 equals FF.

Related converters