Binary to Hexadecimal Converter

Type a Binary number and get Hexadecimal instantly — plus every other base at the same time.

Every base updates as you type; click bits to toggle them. Digit separators (_, spaces) are allowed. In two's complement mode the binary/octal/hex rows show the bit pattern and the decimal row shows the signed value. Choose Text to convert ASCII/UTF-8 text to bytes in any base — or bytes back to text.

How to convert Binary to Hexadecimal

Binary and hexadecimal line up perfectly: every group of 4 bits is exactly one hexadecimal digit. Pad the binary number with leading zeros to a multiple of 4, split it into groups of 4 starting from the right, and translate each group using the table below.

Worked example

Convert 101101 (binary) to hexadecimal:

  1. Start with binary 101101; pad to a multiple of 4 bits: 0010 1101
  2. 00102
  3. 1101D
  4. Result: 2D

So 101101 in binary is 2D in hexadecimal.

Binary to Hexadecimal conversion table

BinaryHexadecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

Frequently asked questions

Can this handle numbers larger than 64 bits?
Yes. Conversion runs on arbitrary-precision integers, so numbers of any length convert exactly. Many online converters silently lose precision above 2⁵³ (about 16 decimal digits) — this one doesn't.
How do I convert negative numbers?
A leading minus sign works in every base. For the bit-pattern view programmers usually want, switch the mode to two's complement at 8, 16, 32, or 64 bits — then binary, octal, and hex show the bit pattern while decimal shows the signed value.
Can I convert the other way, or to other bases?
Use the Hexadecimal to Binary converter, or just change the From/To dropdowns above — every common base is shown at once anyway, and a Text mode converts ASCII to bytes and back.

Need arithmetic rather than conversion — adding hex numbers, shifting bits, masking? Use the programmer's calculator.