Convert Binary to Hexadecimal

Convert binary to hex instantly. Group bits into nibbles for easy conversion. Free online tool.

Input
Number
From Base
2-36
Results
2
Binary
Base 2
0b11111111
8
Octal
Base 8
0o377
10
Decimal
Base 10
255
16
Hexadecimal
Base 16
0xFF
Step-by-Step Conversion
Step 1: Convert Decimal 255 to Binary
255 / 2 = 127 remainder 1
127 / 2 = 63 remainder 1
63 / 2 = 31 remainder 1
31 / 2 = 15 remainder 1
15 / 2 = 7 remainder 1
7 / 2 = 3 remainder 1
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
Result: 11111111

About This Conversion

Converting binary to hexadecimal is straightforward because each hex digit represents exactly 4 binary bits (a nibble). Group the binary number into sets of 4 bits from right to left, padding with leading zeros if needed, then convert each group to its hex equivalent. For example, binary 11010110 → 1101 0110 → D6. This relationship makes hex the preferred compact notation for binary data in programming, debugging, and digital electronics.

Frequently Asked Questions

How do I convert binary to hex?
Group binary digits into sets of 4 from right to left. Convert each group: 0000=0, 0001=1, ..., 1001=9, 1010=A, ..., 1111=F.
What is binary 10101011 in hex?
Group as 1010 1011 → A B → hex AB.

Related Conversions