Binary to Hex Converter

Converting Binary to Hexadecimal

Binary is the most basic language of computers. Everything, from simple text to full-length movies can be exepressed using binary. Computers use binary because it is a base 2 numbering system, in which each digit value has a value of one or zero. Thanks to the invention of the transistor, computers can represent binary numbers at an electronics level. Simple operations are implemented on the CPU and use binary values to compute.

Binary numbers are long, though. You need at least eight binary digits to represent a single character. This is where hexadecimal is useful, as it can represent an eight-digit binary number (more commonly referred to as a byte) using a two-digit hexadecimal number.

The process of converting from binary to hexadecimal using grouping is fairly simple. Each group of four binary digits corresponds to a single hexadecimal digit.

  1. Start with a given binary number, and pad it on the left with zeroes until its length is a multiple of four.
  2. Split up the binary number, starting from the right, into equally sized four digit chunks.
  3. Working from the right, convert each group into a single hexadecimal character using the table.

Example

Converting 1011110102 to hexadecimal:

1011110102 = 0001011110102

  1. First chunk: 10102 = A16
  2. Second chunk: 01112 = 716
  3. Third chunk: 00012 = 116

Thus, 1011110102 = 17A16

Conversion table

BinaryHexBinaryHex
0000010008
0001110019
001021010A
001131011B
010041100C
010151101D
011061110E
011171111F