Binary to Hexadecimal Converter

Convert a binary integer to hexadecimal with exact arithmetic. The result shows how the bits split into four-bit groups and how each group becomes one hex digit.

Written and checked by TheToolNet Editorial Team · Last reviewed: September 19, 2026 · How we check conversion tools

Direct answer
1011 0101₂ → B 5₁₆ → B5₁₆

Group binary digits in fours from the right. Because 16 = 2⁴, every four-bit group maps exactly to one hexadecimal digit.

Convert binary to hexadecimal

Enter an unsigned binary integer. The converter accepts spaces, underscores, and an optional 0b prefix.

How to convert binary to hexadecimal

  1. Start at the binary point's left side—or at the final bit for an integer—and group digits in sets of four moving left.
  2. If the leftmost group has fewer than four bits, add leading zeros.
  3. Replace each group with the matching hexadecimal digit from 0 through F.

Binary to hexadecimal mapping table

BinaryHexBinaryHex
0000010008
0001110019
001021010A
001131011B
010041100C
010151101D
011061110E
011171111F

Binary to hexadecimal example

For binary 110101100, pad and group it as 0001 1010 1100. The groups map to 1, A, and C, so 110101100₂ = 1AC₁₆. Both representations equal 428 in decimal.

If you need the base-10 value instead, use the binary-to-decimal steps.

Scope and limitations

The converter handles unsigned whole numbers up to 512 binary digits. It does not treat the first bit as a sign bit and does not decode two's-complement values. Binary fractions require grouping on both sides of the binary point and are outside this tool's current scope.

Frequently asked questions

Why group binary digits in fours?

Four bits have 16 patterns, exactly matching the 16 hexadecimal digits 0–F.

Which side do I start grouping from?

For whole numbers, start at the rightmost bit and move left. Add zeros only to the leftmost incomplete group.

What is 1111 binary in hexadecimal?

It is F. The bit pattern 1111 equals decimal 15, represented by F in hexadecimal.

References