Binary to Hexadecimal Converter
Type a binary number to see it as hexadecimal, plus the other bases.
Free · Runs in your browser · Your text is never uploaded
How to convert binary to hexadecimal
Split the binary number into groups of four digits from the right. Each group becomes one hex digit, for example 1111 is F and 1010 is A.
Worked example
The binary number 11111111 is FF in hexadecimal.
Convert many at once
Put one number per line to convert a whole list, and copy the results.
A worked example
Take the binary number 110101111001. Each digit is multiplied by the base raised to its position: 1×211 + 1×210 + 0×29 + 1×28 + 0×27 + 1×26 + 1×25 + 1×24 + 1×23 + 0×22 + 0×21 + 1×20 = 3449. In hexadecimal that is D79.
Where it is used
Shortening long bit strings for documentation, reading memory dumps or converting machine instructions.
Tips
Spaces and underscores inside a number are ignored, so you can paste values like 1010 1111. Add a prefix (0x, 0b or 0o) if you are unsure which base a number is in. For the theory behind all four bases, read binary, decimal and hexadecimal explained.
Need more options? Open the full Number Base Converter.
Related guides
Frequently asked questions
How do I convert binary to hexadecimal?
Enter the binary number above and the hexadecimal result appears instantly.
Does it work for large numbers?
Yes, the arithmetic is exact for numbers up to 4,000 digits.
Can I convert negative numbers?
Yes, the minus sign is kept. Two’s complement is not applied.