- No data uploaded
- Instant results
Binary to Hexadecimal Converter
Enter a binary number to convert it to hexadecimal immediately. Paste multiple values (one per line) for bulk conversion. Arbitrary-precision math means even 128-bit values convert exactly.
Binary to Hexadecimal Converter
How to convert binary to hexadecimal
Binary (base 2) uses only the digits 0 and 1 and is how every value is ultimately stored in hardware. Hexadecimal (base 16) uses 0–9 and A–F; each hex digit maps to exactly four bits, so one byte is always two hex digits (00–FF).
Worked example converting 11010110:
- Expand by place value:
1×27 + 1×26 + 0×25 + 1×24 + 0×23 + 1×22 + 1×21 + 0×20= 214 in decimal. - Repeatedly divide 214 by 16 and read the remainders bottom-up to get D6.
- Result:
11010110(binary) =D6(hexadecimal).
Accepted input formats
- Optional prefixes:
0b(binary),0o(octal),0x(hex). - Spaces, commas and underscores are ignored, so
1101_0110works. - A leading minus sign converts negative values (sign-magnitude, not two's complement).
- Hexadecimal is case-insensitive; output is upper-case.
Binary to Hexadecimal reference table
| Binary | Hexadecimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
| 1001 | 9 |
| 1010 | A |
| 1011 | B |
| 1100 | C |
| 1101 | D |
| 1110 | E |
| 1111 | F |
| 10000 | 10 |
| 100000 | 20 |
| 1000000 | 40 |
| 1100100 | 64 |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 10000000000 | 400 |
| 1000000000000 | 1000 |
| 1111111111111111 | FFFF |
Frequently asked questions
What is 11010110 in hexadecimal?
11010110 in binary equals D6 in hexadecimal.
Is there a size limit?
No practical limit. The converter uses JavaScript BigInt, so values with hundreds of digits convert exactly without rounding.
Is my data sent to a server?
No. The conversion runs entirely in your browser; nothing you type is uploaded.