~/hex-to-binary 200 OK

Last updated: 2026-06-19

Hexadecimal to Binary Converter

Expand any hex value into its binary bits instantly.

A hexadecimal to binary converter turns base-16 values (0–9 and A–F) into base-2 bits. The two bases line up neatly: every single hex digit maps to exactly four binary digits, called a nibble. Enter a hex value below to see its bits, or use the reverse tool to pack binary back into compact hex.

How to convert hexadecimal to binary

  1. Type or paste your hexadecimal value into the Hexadecimal field (the # is optional).
  2. Read the binary result in the Result field.
  3. Use the copy button to grab the bit string.

Worked example: 2F in binary

Convert each hex digit to its 4-bit nibble: 2 is 0010 and F is 1111. Join them to get 00101111, which is 0010 1111. Dropping the leading zero gives 101111, the value this tool returns for 2F.

Reference table

Each hex digit as a 4-bit nibble
DecimalHexBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10a1010
11b1011
12c1100
13d1101
14e1110
15f1111

Convert binary to hex

Have a bit string instead? Use the reverse converter to pack it into compact hexadecimal.

Frequently asked questions

How do I convert hex to binary quickly?
Replace each hex digit with its four-bit binary pattern from the nibble table, then join them in order. Because one hex digit always equals four bits, no division is needed.
What is FF in binary?
FF is two F nibbles, and F is 1111, so FF is 11111111 — eight set bits, the largest value in a single byte.
Why is hex so convenient for binary?
A byte is eight bits, which splits cleanly into two groups of four. Each group is one hex digit, so any byte is just two hex characters instead of eight bits.
Does the converter keep leading zeros?
No. It returns the numeric value, so leading zeros are dropped (2F becomes 101111). Pad to a multiple of four bits yourself if you need byte-aligned output.

Related tools

Learn more