Binary to Hex

Convert binary to hexadecimal and hexadecimal to binary.

0 chars
0 words
0 lines
0 chars
0 words
0 lines

Binary to Hex Converter

Convert long strings of ones and zeros into compact hexadecimal – and hex back to binary. Paste one binary number per line: 11111111 becomes FF, 1010 0101 becomes A5, and 100000000 becomes 100. Spaces and underscores between bit groups are ignored, so you can paste nibbles or bytes exactly as they appear in a datasheet.

Why binary and hex fit together so well

Sixteen is two to the fourth power, so every hexadecimal digit represents exactly four bits (a nibble). That makes the conversion purely mechanical: split the binary number into groups of four from the right, then replace each group with its hex digit.

Binary Hex Binary Hex
0000 0 1000 8
0001 1 1001 9
0010 2 1010 A
0011 3 1011 B
0100 4 1100 C
0101 5 1101 D
0110 6 1110 E
0111 7 1111 F

For example 1101 0110 splits into 1101 = D and 0110 = 6, so the result is D6.

Typical uses

Engineers convert binary to hex when reading register maps, configuring microcontroller pins, writing bit masks, or analysing network packets. A 32-bit value is 32 characters in binary but only 8 in hex, which is much easier to read, compare, and type without mistakes.

Options

Pad to full bytes outputs two hex digits per byte (5 → 05), Prefix adds 0x, and Group digits splits long hex values into blocks of four. In the reverse direction you can pad binary output to whole bytes and group it in nibbles. Binary fractions such as 11.1 (3.5) convert as well. To convert text characters to bits instead of numbers, try Text to Binary.

Frequently Asked Questions

Split the binary number into groups of four bits starting from the right, pad the leftmost group with zeros, and replace each group with its hex digit (0000 = 0 … 1111 = F).

Because 16 = 2^4. Four bits can represent 16 different values, exactly the range of one hexadecimal digit (0–F).

Yes. Spaces and underscores inside a number are ignored, so 1010 0101 and 1010_0101 are both read as 10100101. Put different numbers on different lines.