Number Converters · Browser · Free

Binary to Hex Converter

Type binary digits (0 and 1). Multiple numbers separated by spaces will be padded to common width.

Type a binary number and press Convert to calculate its hexadecimal equivalent, with decimal and octal values shown alongside. Multiple numbers separated by spaces are zero-padded to a common width of 2, 4 or 8 digits, and the Swap button lets you convert in reverse.

What the converter shows

Enter your value into the text field with From and To base selectors and a digit grouping option. Write your base 2 number in it and press Convert to compute the result. The answer appears in cards below, with the hexadecimal value shown next to decimal and octal values.

The field takes leading signs, fractional points, and lists of numbers separated by spaces. When entering a list of values, the output results are zero-padded to a common width of 2, 4, or 8 digits, leaving negative numbers untouched. Any letter in the answer prints in uppercase.

A Swap conversion button moves the primary result back into the input and swaps the From and To bases, instantly turning this page into a hex-to-binary converter.

Binary and hexadecimal

Binary is base 2, so every place in a binary number stands for a power of 2 and each digit is worth twice the place to its right. Hexadecimal is base 16, so every place there stands for a power of 16 and each digit is worth sixteen times the place to its right.

Because base 16 has sixteen single digits, the ten figures 0 to 9 are followed by the letters A to F. The table shows both ends of that: 1010 comes out as A and 1111 comes out as F.

Binary to hexadecimal formula

Split the binary digits into groups of four, counting outwards from the fractional point, and write each group as a single hexadecimal digit. That is the reading the table follows: its hexadecimal column carries one digit for every full group of four in the binary column.

The table does exactly this. The row 1111 becomes F in one group. Adding a leading digit gives the row 11111, which splits into 1 and 1111 and reads 1F, and 11111111 splits into two groups of 1111 and reads FF.

Longer rows follow the same path: 1100100 splits into 110 and 0100 and comes out as the row 64, while 100000000 splits into 1, 0000 and 0000 and comes out as the row 100.

Binary to hexadecimal conversion table
Binary (base 2)Hexadecimal (base 16)
00
11
102
113
1117
10008
1010A
1111F
1000010
111111F
10000020
100000040
110010064
11111111FF
100000000100
10000000000400