Hex to Binary Converter

A hex to binary converter replaces each hexadecimal digit with the four bits it stands for.

Example: A = 1010

Text tools on this site use UTF-8 (the letter A is the byte 01000001). This page converts a whole number between bases and does not encode characters.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

HexadecimalBinary
1010

Convert A and FF to binary, step by step

  1. Memorize one nibble. Each hex digit is exactly four bits. A is 1010, F is 1111, and 0 is 0000.
  2. Expand A. The single digit A becomes 1010. That is decimal 10.
  3. Expand FF. F is 1111 and F is 1111, so FF is 11111111, which is decimal 255.

Hex digit to 4-bit binary

HexBinaryDecimal
000000
100011
A101010
F111115
FF11111111255
100001000016

Frequently Asked Questions

How do you convert hex to binary?

Replace every hex digit with its 4-bit pattern and concatenate the patterns. Do not convert the whole number to decimal first unless you want a cross-check.

What is A in binary?

A is 1010. Hex digits run 0–9 and then A=10, B=11, C=12, D=13, E=14, F=15.

What is FF in binary?

FF is 11111111. Each F contributes four 1 bits, and the value is 255 in decimal.

Should I write a 0x prefix?

The converter accepts an optional 0x prefix. 0xFF and FF are the same number.

Related tools & guides