Home » Binary Converter Tools » Hex to Binary Converter
Enter a hex value and get the exact binary value in seconds, with the working shown for every digit.
Last updated 13 November 2026
Everything runs in your browser, so your value never leaves your device. Whole numbers only for number base conversions.
A hex to binary converter turns a hexadecimal value into binary, the 0 and 1 code that computers actually use. Hex, short for hexadecimal, uses digits from 0 to 9 and letters from A to F, where A is 10 and F is 15.
The conversion is direct because one hex digit stands for exactly four binary digits, since 16 equals 2 to the power of 4. This tool converts each hex digit to its four bit group and joins them, so you get the full binary value with no rounding and no sign up.
Programmers use hex for colours, memory addresses and byte values, and this converter helps you read those values as binary. Everything runs in your browser, so your value never leaves your device.
Split FF into its two hex digits: F and F.
Convert each digit to four bits: F is 1111, and the second F is also 1111.
Join the groups in order: 11111111. So FF in hex is 11111111 in binary.
You can check the answer by place value: FF in hex is 255 in decimal, and 128 plus 64 plus 32 plus 16 plus 8 plus 4 plus 2 plus 1 equals 255.
| Input | Output |
|---|---|
| A in hex | 1010 in binary |
| 2A in hex | 101010 in binary |
| FF in hex | 11111111 in binary |
| 100 in hex | 100000000 in binary |
| 1F4 in hex | 111110100 in binary |
If you need a different direction, try the Hex to Decimal Converter, Hex to Octal Converter, Binary to Hex Converter and Decimal to Hex Converter. Each one works the same way, in your browser, with the steps shown so you can check the answer.
Yes, it is completely free with no sign up.
You get a plain error message and no output, because hex digits are only 0 to 9 and A to F.
Because 2 to the power of 4 is 16, so every hex digit maps to exactly four binary digits.
No. All conversion happens in your browser on your own device, so your value never leaves your computer.
Yes, keep the leading zeros inside each group of four bits. Each hex digit becomes exactly four binary digits, so 2F becomes 00101111 in full. The zeros at the very front of the whole answer do not change the value, so the tool trims them and shows 101111. Both forms mean the same number.
Yes. You can type a 0x prefix in front of the value, and you can use lowercase letters a to f or uppercase letters A to F. The tool reads them all the same way, so 0xff, 0xFF and FF all give 11111111.
Yes. The conversion stays exact for long values, with no rounding, because each hex digit is converted on its own and the groups are joined.
A hex colour has six hex digits, two for red, two for green and two for blue. Convert each digit to four bits and join the groups. For example, FF0000 is pure red, and it becomes 111111110000000000000000 in binary: FF is 11111111, and each 00 is 00000000.
No. This tool converts whole hex numbers only. It does not accept a minus sign or a decimal point, so negative numbers and fractions are not supported.
Because one hex digit stands for exactly four binary digits, since 16 equals 2 to the power of 4. In full, a hex value with 2 digits gives 8 binary digits, and a hex value with 4 digits gives 16 binary digits. The answer is four times as long because each digit expands to four bits.
Every hex digit maps to one group of four binary digits. Use this table to convert any hex value by hand: look up each digit, write its four bit group, and join the groups in order.
| Hex digit | Binary |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
| A | 1010 |
| B | 1011 |
| C | 1100 |
| D | 1101 |
| E | 1110 |
| F | 1111 |
Split 2F into its two hex digits: 2 and F.
Convert each digit to four bits using the table above: 2 is 0010, and F is 1111.
Join the groups in order: 0010 plus 1111 is 00101111. So 2F in hex is 00101111 in binary.
You can check the answer by place value: 2F in hex is 47 in decimal, because 2 times 16 plus 15 is 47. In binary, 00101111 is also 47, because 32 plus 8 plus 4 plus 2 plus 1 is 47. Try it in the tool above: enter 2F and the converter shows the same value.
You can convert any hex value to binary by hand in three steps, with no division and no calculator.
Keep the leading zeros inside each group. If you drop them, the groups no longer line up, and the answer is hard to read. The zeros at the very front of the whole answer do not change the value, so you can leave them out when you write the final answer. For example, 2F becomes 00101111 in full, and 101111 means the same number.
To convert the other way, from binary back to hex, use the Binary to Hex Converter. To convert octal values to binary, use the Octal to Binary Converter, and to turn binary into octal, use the Binary to Octal Converter. For decimal to octal, use the Decimal to Octal Converter. To turn text into binary, use the Text to Binary Converter.