Hex to Binary Converter

Type a hexadecimal number to see it in binary and the other common bases, with the working shown step by step.

Binary
1111 1111
Octal
377
Decimal
255
Hexadecimal
FF
Other base (36)
73

Bits: 8

Working
positional expansion / repeated division / bit grouping
  1. F → 1111
  2. F → 1111
  3. FF₍16₎ = 11111111₍2₎

How to convert

  1. Each hexadecimal digit is exactly 4 binary digits, so convert by grouping — no decimal step needed.
  2. Replace each digit with its 4-bit pattern and drop leading zeros. Example: 2D → 0010 1101 → 101101.

Notes

  • Integers of any length are converted exactly — no scientific notation.
  • Prefixes are accepted: 0x for hex, 0b for binary, 0o for octal; spaces and underscores are ignored.
  • Negative numbers: prefix with "-". Fractions are not supported yet.

Hex to Binary table

HexBinaryDecimal
000
111
2102
3113
41004
51015
61106
71117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115
101 000016
2010 000032
40100 000064
64110 0100100
7F111 1111127
801000 0000128
FF1111 1111255
1001 0000 0000256
3E811 1110 10001000
400100 0000 00001024
10001 0000 0000 00004096
FFFF1111 1111 1111 111165535

Frequently Asked Questions

Related