curly{bits}

curlybits / Base Converter / Hex to Binary

Hex to Binary Converter

Type a hex number to convert it to binary as you type. The working is shown step by step underneath, so you can check your homework or learn the method. Binary, octal and other bases are shown too.

How it's converted

How to use the Hex to Binary Converter

  1. Type or paste the hex number into the first box.
  2. Read the binary result in the second box, and click Copy to copy it.
  3. Scroll to How it works for the step-by-step method.

How to convert hex to binary

Replace each hex digit with its four-bit binary value: 0 = 0000, 9 = 1001, A = 1010, F = 1111. Then join the groups together.

Example: 3F → 0011 and 1111 → 0011 1111, or 111111 without the leading zeros.

Reference table

DecimalBinaryHexOctal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000810
91001911
101010A12
111011B13
121100C14
131101D15
141110E16
151111F17

Frequently asked questions

Do I keep the leading zeros?

They don't change the value. Keep them if you need a fixed width, such as a full byte.

What is FF in binary?

11111111.