Convert hex to binary
Hexadecimal (base 16) to binary (base 2). Type a value below, or use the reference table further down.
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.
How to convert hex to binary
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.
Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.
hex to binary conversion table
Use this hex to binary chart for quick reference.
| Hexadecimal (base 16) | Binary (base 2) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| A | 1010 |
| B | 1011 |
| C | 1100 |
| D | 1101 |
| E | 1110 |
| F | 1111 |
| 10 | 10000 |
| 20 | 100000 |
| 40 | 1000000 |
| 64 | 1100100 |
| 7F | 1111111 |
| 80 | 10000000 |
| FF | 11111111 |
| 100 | 100000000 |
| 200 | 1000000000 |
| 3E8 | 1111101000 |
| 3FF | 1111111111 |
| 400 | 10000000000 |
| FFF | 111111111111 |
| 1000 | 1000000000000 |
| FFFF | 1111111111111111 |
| 10000 | 10000000000000000 |
What is hexadecimal?
Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.
What is binary?
Binary is base 2, using only 0 and 1. It is how every digital computer physically stores and manipulates data, with each digit representing one bit.
Frequently asked questions
How do you convert hexadecimal to binary?
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.
What is FF hexadecimal in binary?
FF in hexadecimal is 11111111 in binary. In plain decimal that value is 255.
What digits does hexadecimal use?
Hexadecimal is base 16 and uses 0-9 and A-F. Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.