Binary to Hex
Type a binary number below to get the hexadecimal value — other bases are shown too. The manual method is explained further down.
Type a binary number below to get the hexadecimal value — other bases are shown too. The manual method is explained further down.
Two’s complement
Binary → Hex
JavaScript
parseInt('11010110', 2).toString(16).toUpperCase() // 'D6' Python
format(int('11010110', 2), 'X') # 'D6'