Base 2 to base 16

Convert Binary to Hexadecimal

Convert base 2 values to base 16. Integers remain exact even when they exceed JavaScript's ordinary safe-number limit.

1010102 = 2A16

Same value in common bases

BaseValue

Method

How to convert base 2 to base 16

Each binary digit is evaluated by its power of 2. The exact value is then repeatedly divided by 16 to produce the destination digits.

value10 = sum(digit x 2position)

For fractional digits, the converter keeps an exact rational numerator and denominator, then generates up to 32 destination digits. An ellipsis marks a repeating or longer expansion.

Examples

Binary to Hexadecimal table

Binary (base 2)Hexadecimal (base 16)
11
102
1010A
1010102A
110010064
11111111FF
10000000000400

Related

Continue converting