Hex to binary

Type a hexadecimal number (0-9 and A-F) and see its binary value instantly, along with the decimal and octal. Everything happens in your browser.

FF₁₆ = 11111111₂

🔒 What you type never leaves your device. Everything is calculated in your browser.

Type in any of the four fields and the others update on their own. No size limit, and only for positive whole numbers.

Any base (2 to 36)

Text to binary and hex

You can paste bits to turn them into text.

How to convert hex to binary

  1. Type the number in the "Hexadecimal (base 16)" field.
  2. See the result in "Binary (base 2)", highlighted.
  3. You also get the decimal and octal of the same number.
  4. Tap Copy to take the results with you.

The method and an example

Replace each hexadecimal digit with four bits: F is 1111, A is 1010, 3 is 0011. For example, FF = 1111 1111 and A3 = 1010 0011.

It is the most direct conversion between bases, because 16 is a power of 2. The table below shows the first numbers in all four bases.

Decimal (base 10)Binary (base 2)Octal (base 8)Hexadecimal (base 16)
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010
17100012111
18100102212
19100112313
20101002414
21101012515
22101102616
23101112717
24110003018
25110013119
2611010321A
2711011331B
2811100341C
2911101351D
3011110361E
3111111371F
321000004020
401010005028
501100106232
64100000010040
100110010014464
12711111111777F
1281000000020080
20011001000310C8
25511111111377FF
256100000000400100
5001111101007641F4
51210000000001000200
1000111110100017503E8
1024100000000002000400
40961000000000000100001000
655351111111111111111177777FFFF

Good to know

Frequently asked questions

What is FF in binary?

11111111.

How do I convert A3 from hex to binary?

A is 1010 and 3 is 0011, so A3 is 10100011.

Can I convert a long code?

Yes, there is no size limit.

Is my data sent to a server?

No. The conversion happens in your browser.