Type or paste binary numbers, one per line
Choose lowercase letters or the 0x prefix if you need them
Copy or download the hex numbers
Hex is a short way to write binary: split the bits into groups of four from the right, and each group becomes one hex digit, from 0000 = 0 to 1111 = F. So 1111 1010 is FA, and a byte of eight bits is always two hex digits. Type or paste binary numbers, one per line, with or without spaces between the groups and with or without 0b, and the hex numbers appear as you type. Under the result, the converter shows the steps for the first number by way of its decimal value, which is the same number whichever way you write it.
The conversion is exact for any length, so 128 ones give 32 Fs. Binary fractions are converted too, as in 1010.1 = A.8. Tick “Lowercase letters” for fa instead of FA and “Prefix 0b, 0o or 0x” for 0xFA, as programming languages write it; “Group digits” splits long hex numbers into groups of four. “Swap” turns the hex results back into binary, and “From” and “To” switch to decimal, octal or any base up to 36.
Hello. We tried very hard to create a convenient website that we use ourselves. If you liked any of our tools and editors, add it to your bookmarks, because it will be useful to you more than once. And don't forget to share on social media. We will be better for you.