Binary to Hex Converter
Type a binary number to see it in hexadecimal, and in the other number bases.
Result
| Base | Value |
|---|---|
| Binary (base 2) | 1111 1111 |
| Octal (base 8) | 377 |
| Decimal (base 10) | 255 |
| Hexadecimal (base 16) | FF |
How to use it
- Type the number (spaces and prefixes such as 0x are fine).
- Check the From and To bases, or change them.
- Read the result, and the same number in every base in the table.
About this tool
Binary converts to hexadecimal neatly because 16 is 2 to the fourth power. Split the binary number into groups of four digits from the right, and convert each group to one hex digit. For 1111 0000, that is F and 0, so F0.
If the leftmost group has fewer than four digits, pad it with zeros on the left.
Formula
- Group the bits in fours from the right. Convert each group: 0000=0 … 1001=9, 1010=A … 1111=F.
Examples
- Binary 1010 = A (hexadecimal)
- Binary 11111111 = FF (hexadecimal)
- Binary 101010111100 = ABC (hexadecimal)
- Binary 1111000011110000 = F0F0 (hexadecimal)
Tips
- This is the quickest base conversion to do by hand: no arithmetic is needed, only the 16 four-bit patterns.
- Very long numbers are handled exactly, up to 200 digits.
- Negative numbers are accepted with a minus sign.
Questions and answers
How do I convert binary to hexadecimal?
Group the bits in fours from the right. Convert each group: 0000=0 … 1001=9, 1010=A … 1111=F.
What is 11111111 in hexadecimal?
11111111 in binary is FF in hexadecimal.
Can I use lowercase letters or a prefix?
Yes. Lowercase letters work, and prefixes such as 0b, 0o and 0x are accepted.
Are my numbers saved or sent anywhere?
No. The conversion runs in your browser on your own device. Nothing you type is sent to Paul Digital or any other server.
More tools
- Hex to Binary Converter
- Binary to Decimal Converter
- Decimal to Binary Converter
- Hex to Decimal Converter
- All math and number tools
Privacy
The conversion runs in your browser on your own device. Nothing you type is sent to Paul Digital or any other server. Very long numbers are handled exactly.