Binary to hexadecimal converter

Type a binary number and get its hexadecimal value instantly, together with binary, decimal, hexadecimal and octal, the bit count and a copy button. Free, in your browser.

  • Free
  • No sign-up
  • Runs in your browser
binary-to-hex

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Enter the number

Type a binary number in the box; the base is already selected.

Read the result

Hexadecimal, decimal, hexadecimal, binary and octal appear together.

Copy it

Use the copy button next to the value you need.

How to convert binary to hexadecimal

To convert binary to hexadecimal, type your number in the converter above and read the hexadecimal value. For example, 1101 0110 in binary is D6 in hexadecimal. The other bases are shown at the same time.

Why convert binary to hexadecimal

Hexadecimal is shorthand for binary, so converting binary to hex makes long strings of bits readable: 11010110 becomes D6, and a 32-bit mask becomes just eight characters. It is the standard way to show bit patterns in documentation, debuggers and datasheets.

Convert binary to hexadecimal by hand

Here is 1101 0110 (binary) converted step by step:

  1. Group the bits in fours from the right: 1101 0110.
  2. Convert each group to one hexadecimal digit: 1101 = D → 0110 = 6.
  3. Join the digits: D6.

The four-bit table (nibbles)

nibbles
BinaryHexDecimal
000000
000111
001022
001133
010044
010155
011066
011177
100088
100199
1010A10
1011B11
1100C12
1101D13
1110E14
1111F15

More binary to hexadecimal examples

examples
BinaryHexadecimalDecimal
1010A10
1010102A42
110010064100
11111111FF255
10010110012C300
11111010003E81000
111111111111FFF4095
1111111111111111FFFF65535

Check your answer

To check the result, convert it back: D6 in hexadecimal is 1101 0110 in binary. Your input may only contain the binary digits 0 1; any other character is not a valid binary number.

Good to know

  • Always group from the right; pad the left with zeros to complete the last group.
  • A byte is always exactly two hex digits.
  • The table is worth memorising: 1010 is A and 1111 is F.
  • The converter also shows the other bases at the same time, so a single entry gives you binary, decimal, hexadecimal and octal.

Frequently asked questions

How do I convert binary to hexadecimal?
Type the number in the converter at the top of this page and read the hexadecimal value. For example, 1101 0110 (binary) is D6 (hexadecimal).
Why do programmers prefer hex to binary?
Hex is four times shorter and each digit maps cleanly to four bits, so it is easy to convert by eye.
What if my binary length is not a multiple of four?
Pad with zeros on the left. For example, 110 becomes 0110, which is 6.
How many bits does 1101 0110 need?
1101 0110 is 214 in decimal, which needs 8 bits in binary.
Is this converter free and private?
Yes. It is free, needs no sign-up and works in your browser, so what you type is never sent to a server.