Skip to content

Binary to Hex

Convert binary numbers to hexadecimal quickly with support for padding, two's complement, bit-widths, grouping and BigInt-sized inputs

Updated

What is the Binary to Hex?

How it works

Examples

Basic binary to hex

10101100
0xAC

Padded, grouped bytes

0b1010110000110011 with bitWidth=16 and group=2
0xAC_33

Signed two's complement

1111111101100011 with signed=true and bitWidth=16
0xFF63 (signed decimal: -157)

Frequently asked questions