Nifty Dev Tools
  1. Home
  2. Number Converter
  3. Hex to Binary
Convert

Hex to Binary Converter

We never upload what you paste ✨

Type a hex number and get it in binary instantly. Any size, negative numbers and two's complement included.

Hex
Binary

The result will appear here as you type.

How to convert hex to binary

Each hex digit is exactly 4 binary digits, so you can convert digit by digit:

2 → 0010
F → 1111
3 → 0011

So 2F3 in hex is 1011110011 in binary.

Hex to binary table

HexBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
1010000
20100000
401000000
641100100
7F1111111
8010000000
FF11111111
100100000000
40010000000000
10001000000000000
FFFF1111111111111111

FAQ

How are negative numbers converted?

Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.

Is there a size limit?

No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.

Can I paste 0x, 0b or 0o prefixes, spaces or underscores?

Yes. Prefixes are recognized, and spaces or underscores between digits (like 1111_0000) are ignored. Put several numbers on separate lines to convert them all at once.

Is my data uploaded?

No. Everything is converted in your browser. Privacy