Home » Binary Converter Tools » Hex to Binary Converter

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

Input0 chars
Output0 chars

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.

Worked example: hex FF to binary

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.

How to Use This Tool

  1. Enter a hex value using digits 0 to 9 and letters A to F only.
  2. Press Convert to see the binary result and the four bit groups.
  3. Copy the result or download it as a text file.
  4. Use Load Sample to try FF, which converts to 11111111.

Why Use This Tool

Common Values

InputOutput
A in hex1010 in binary
2A in hex101010 in binary
FF in hex11111111 in binary
100 in hex100000000 in binary
1F4 in hex111110100 in binary

Related Conversions

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.

Frequently Asked Questions

Is the Hex to Binary Converter free to use?

Yes, it is completely free with no sign up.

What if I enter a letter after F?

You get a plain error message and no output, because hex digits are only 0 to 9 and A to F.

Why does one hex digit become four binary digits?

Because 2 to the power of 4 is 16, so every hex digit maps to exactly four binary digits.

Is my value uploaded to a server?

No. All conversion happens in your browser on your own device, so your value never leaves your computer.

Do I need to keep the leading zeros in the binary answer?

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.

Can I enter a 0x prefix or lowercase letters?

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.

Can this converter handle very long hex values?

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.

How do I convert a hex colour to binary?

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.

Can I convert negative numbers or fractions with this tool?

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.

Why is the binary answer four times as long as the hex value?

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.

Hex to Binary Table

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 digitBinary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111

Worked example: hex 2F to binary

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.

How to Convert Hex to Binary by Hand

You can convert any hex value to binary by hand in three steps, with no division and no calculator.

  1. Write down the hex value, one digit at a time.
  2. Replace each hex digit with its four bit group from the table above.
  3. Join the groups in order from left to right. That joined string is the binary answer.

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.

↑