OverCalculator
  1. Home
  2. Math & Scientific
  3. Binary to Hexadecimal Calculator
Math & Scientific

Binary to Hexadecimal Calculator

Convert binary numbers to hexadecimal and understand grouping, padding, and common base-conversion errors.

Converted value
Hexadecimal representation
A
Binary input
1010

Binary digits are padded to groups of four before conversion.

Results update as you type.

Binary to Hexadecimal Calculator

The binary to hexadecimal calculator converts base-2 values to base-16 and can also expand hexadecimal digits back to binary. It is handy for programming, digital logic, memory addresses, bit masks, and understanding color or data representations.

How to use this calculator

Choose Binary to hexadecimal to enter a binary number containing only zeros and ones. The current form accepts up to 16 bits. Choose Hexadecimal to binary to select one to four hex digits from 0 through F. The result shows the converted value and a note about grouping.

How it works

Binary maps cleanly to hex because each hexadecimal digit represents four bits. Start grouping from the right:

Binary groupHex digit
00000
1010A
1111F

If the leftmost group is short, pad it with leading zeros for conversion. Binary 11010110 becomes 1101 0110, which converts to D6. Hex A5 expands to 1010 0101.

Practical notes

Keep the intended bit width when it matters. The same visible hex value can mean different things in signed, unsigned, or fixed-width contexts. For broader math conversions, see the scientific notation calculator, random number generator, and color format converter calculator.

Common mistakes

  • Grouping bits from the left instead of the right.
  • Forgetting left padding for a short first group.
  • Mixing decimal 10 with hex digit A.

Frequently asked questions

How do I convert binary to hexadecimal?
Group the binary digits into sets of four from the right, pad the left group with zeros if needed, then convert each group to one hex digit.
Can this calculator convert hexadecimal to binary too?
Yes. Choose hexadecimal to binary, select one to four hex digits, and the calculator expands each digit to a four-bit binary group.
Why does one hex digit equal four binary digits?
Hexadecimal is base 16, and 16 equals 2 to the fourth power, so every hex digit represents exactly four bits.
What is binary 11010110 in hexadecimal?
Split it as 1101 0110. The groups convert to D and 6, so the hexadecimal value is D6.

Related calculators

Binary to Hexadecimal Calculator updated at