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
| Hex | Binary |
|---|---|
0 | 0 |
1 | 1 |
2 | 10 |
3 | 11 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
8 | 1000 |
9 | 1001 |
A | 1010 |
B | 1011 |
C | 1100 |
D | 1101 |
E | 1110 |
F | 1111 |
10 | 10000 |
20 | 100000 |
40 | 1000000 |
64 | 1100100 |
7F | 1111111 |
80 | 10000000 |
FF | 11111111 |
100 | 100000000 |
400 | 10000000000 |
1000 | 1000000000000 |
FFFF | 1111111111111111 |
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