Binary to Hex Converter

Base 2
Base 16

Conversion table

SourceResult

Convert Binary integers to Hex with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.

How to convert Binary to Hex

Starting at the right, group the binary digits into sets of four and replace each group with its hexadecimal digit. Leading zeros may be added to the leftmost group without changing the value.

Binary to Hex example

110101 in base 2 equals 35 in base 16. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.

Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary