How to use the Binary to Hexadecimal tool
- Enter the bits in the Base-2 number box as a single run, such as 1111101011001110.
- Select Convert to translate the number to base 16.
- Read the hexadecimal digits in the Result box. Letters A to F are uppercase and no prefix is added.
- Select Copy to take the hex value, or Example to convert 101101 to 2D.
How binary to hex conversion works
Sixteen is two to the fourth power, so one hexadecimal digit stands for exactly four bits, a nibble. To convert by hand, split the bits into groups of four starting from the right, pad the leftmost group with zeros, and replace each group with its digit.
The sample 101101 has six bits. Padded and grouped it reads 0010 1101. The first group is 2 and the second is 13, written D. The result is 2D.
0000 0 0100 4 1000 8 1100 C
0001 1 0101 5 1001 9 1101 D
0010 2 0110 6 1010 A 1110 E
0011 3 0111 7 1011 B 1111 FExamples of binary to hex output
These results come straight from the tool. Note the last line: the value is converted, so the four leading zero bits do not produce a leading 0 digit.
101101 -> 2D
1111101011001110 -> FACE
0b11011110101011011011111011101111 -> DEADBEEF
-101101 -> -2D
00001111 -> FDetails that affect the result
The tool converts a number, not a byte string. That has a few consequences worth knowing before you paste the output into code.
- Leading zeros are dropped. 00001111 gives F, so pad to two digits per byte yourself if you need 0F.
- There is no 0x prefix and no spacing between bytes in the output.
- Hex letters are always uppercase.
- A minus sign in front is kept, giving results such as -2D. Two's complement is not applied.
- Spaces inside the input are rejected with an Invalid base-2 digit message, so join nibbles before converting.
- The input can be up to 4,096 characters, which yields up to 1,024 hex digits.
Why developers prefer hex to raw bits
Hex keeps the bit structure visible while being short enough to read aloud. One byte is always two digits, a 32-bit word is eight, and a mask such as 11110000 is recognizably F0. That is why memory dumps, register maps, color values, MAC addresses and hashes are all written in hexadecimal.
If your bits represent a signed word and you want its decimal meaning alongside the hex digits, the Binary Two's complement hex Converter shows both.
Frequently asked questions
How do I convert binary to hexadecimal by hand?
Group the bits in fours from the right, add zeros on the left of the last group, and replace each group using the 16-entry table. 1010 1111 0011 becomes A, F, 3, so the answer is AF3.
Why did 00001111 convert to F and not 0F?
The tool works with the numeric value, and leading zeros do not change a number. If each pair of digits must represent one byte, add a 0 on the left whenever the result has an odd length.
Does the output include a 0x prefix?
No. The result is only the hex digits, plus a minus sign for negative input. A 0b prefix on the input is accepted and removed.
Can I get lowercase hex?
The tool always prints A to F in uppercase. Hexadecimal is not case sensitive, so you can lowercase the copied value in your editor without changing its meaning.
How many hex digits will my binary number produce?
Divide the number of significant bits by four and round up. Thirty-two bits give at most eight digits and 64 bits give at most sixteen.