Hexadecimal to binary converter

Type a hexadecimal number and get its binary 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
hex-to-binary

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 hexadecimal number in the box; the base is already selected.

Read the result

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

Copy it

Use the copy button next to the value you need.

How to convert hexadecimal to binary

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

Why convert hexadecimal to binary

Expanding hex into binary shows exactly which bits are set, which is what you need for flags, permissions, network masks and hardware registers. D6 is 11010110: bits 7, 6, 4, 2 and 1 are on, and the rest are off.

Convert hexadecimal to binary by hand

Here is D6 (hexadecimal) converted step by step:

  1. Take each hexadecimal digit separately: D 6.
  2. Write each one as four bits: D = 1101, 6 = 0110.
  3. Join the groups: 1101 0110.

Common bytes in hex and binary

bytes
HexDecimalBinary
00000000000
0F1500001111
101600010000
1F3100011111
7F12701111111
8012810000000
A516510100101
FF25511111111

More hexadecimal to binary examples

examples
HexadecimalBinaryDecimal
A101010
2A10101042
641100100100
FF11111111255
12C100101100300
3E811111010001000
FFF1111111111114095
FFFF111111111111111165535

Check your answer

To check the result, convert it back: 1101 0110 in binary is D6 in hexadecimal. Your input may only contain the hexadecimal digits 0 1 2 3 4 5 6 7 8 9 A B C D E F; any other character is not a valid hexadecimal number.

Good to know

  • Replace each hex digit with its four-bit group; do not convert the whole number through decimal.
  • Leading zeros in each group matter: 6 is 0110, not 110.
  • Two hex digits always give eight bits.
  • 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 hexadecimal to binary?
Type the number in the converter at the top of this page and read the binary value. For example, D6 (hexadecimal) is 1101 0110 (binary).
How do I convert hex to binary quickly?
Write each digit as four bits using the nibble table and join the groups.
How can I tell which bits are on in a hex value?
Convert it to binary: each 1 marks a bit that is on, counting from the right and starting at 0.
How many bits does D6 need?
D6 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.