What are hexadecimal and binary numbers?
The binary system is base-2. It uses only two digits: 0 and 1.
The hexadecimal system is base-16. It uses digits 0–9 and letters A, B, C, D, E and F, where A equals 10 and F equals 15.
Hexadecimal is a compact way to write binary data because one hexadecimal digit represents exactly four binary bits.
How to convert hexadecimal to binary
To convert hexadecimal to binary, replace each hex digit with its four-bit binary equivalent. Then join the groups together.
1 = 0001
B = 1011
7 = 0111
E = 1110
1B7E₁₆ = 1101101111110₂
Leading zeros are usually removed from the final binary value unless the value must fit a fixed-width format.
Hex to binary lookup table
Each hexadecimal digit maps to one four-bit binary group. This makes conversion faster than converting through decimal first.
0=0000 1=0001 2=0010 3=0011
4=0100 5=0101 6=0110 7=0111
8=1000 9=1001 A=1010 B=1011
C=1100 D=1101 E=1110 F=1111
For example, hex FF becomes 11111111 because F maps to 1111 and the two groups are joined.
Common uses of hexadecimal and binary
Binary is used internally by digital systems. Hexadecimal is often used by humans to read and write the same data more compactly.
You will often see hexadecimal in memory addresses, machine code, bitmasks, Unicode code points, web color values, checksums and debugging tools.
Input rules
- Use digits 0–9 and letters A–F for hexadecimal input.
- Lowercase letters are accepted and automatically normalized to uppercase.
- Optional prefixes such as 0x are supported.
- Whole numbers are supported. Fractions are intentionally not converted by this tool.