How to use the hex to binary converter
- 1Type or paste the value into Hexadecimal (base 16). A
0xor#prefix and spaces are ignored. - 2Read the bits in Binary (base 2). Tick Group digits to show them in fours.
- 3Tick Keep leading zeros so every hex digit becomes exactly four bits (
0F→00001111). - 4Check Step-by-step working for the digit-by-digit lookup, then press Copy.
Example
0x1A3
Binary: 110100011 Decimal: 419 Octal: 643
1 = 0001, A = 1010, 3 = 0011. Joined: 0001 1010 0011, shown without the leading zeros unless Keep leading zeros is ticked.
Each hex digit is four bits
Because 16 = 2⁴, each hexadecimal digit maps to exactly one group of four bits, and the groups never interact. Convert digit by digit and join the results: C4 → 1100 + 0100 = 11000100. Nothing has to be carried or added, so hex-to-binary is the easiest base conversion to do by hand.
Hex-binary lookup table
| Hex | Binary | Decimal | Hex | Binary | Decimal |
|---|---|---|---|---|---|
| 0 | 0000 | 0 | 8 | 1000 | 8 |
| 1 | 0001 | 1 | 9 | 1001 | 9 |
| 2 | 0010 | 2 | A | 1010 | 10 |
| 3 | 0011 | 3 | B | 1011 | 11 |
| 4 | 0100 | 4 | C | 1100 | 12 |
| 5 | 0101 | 5 | D | 1101 | 13 |
| 6 | 0110 | 6 | E | 1110 | 14 |
| 7 | 0111 | 7 | F | 1111 | 15 |
0x prefixes and spaces
Programming languages mark hex with 0x (C, JavaScript, Python), # (CSS colours), &H (Visual Basic) or a trailing h (assembly). The converter accepts 0x and # and ignores spaces and underscores, so 0xDEAD_BEEF, #ff8800 and de ad be ef all work. Hex is not case-sensitive: ff and FF are the same value.
Hex dumps and byte strings
A hex dump such as 48 65 6C 6C 6F is a list of bytes. Paste it and the converter treats the digits as one long number; tick Keep leading zeros and Group digits so each byte keeps its full 8 bits. To read those bytes as text instead, convert them to binary and paste the result into binary to text (48 65 6C 6C 6F is “Hello”).
Is my text private?
This tool runs entirely in your browser. Your text is not uploaded to our servers.
