What is Binary?

Binary is a number system that uses only two digits 0 and 1. Binary is the basic language of computers.

What is Hexadecimal?

Hexadecimal or in short hex is a base-16 number system. It uses 16 symbols 0-9 and A-F. Hex is often used in computing as a shorter way to show binary values.

How to Convert Binary to Hexadecimal

  1. Split the binary number into groups of 4 bits
  2. Convert each 4-bit group to its hex digit
  3. Join the hex digits

Example of Converting 11010110 to Hex

  1. Split into groups of 4: 1101 0110
  2. Convert each group:
    • 1101 = 13 = D
    • 0110 = 6
  3. Join the results: D6

So, 11010110 in binary = D6 in hexadecimal

Another Example: 101011111000 to Hex

  1. Split: 1010 1111 1000
  2. Convert:
    • 1010 = 10 = A
    • 1111 = 15 = F
    • 1000 = 8
  3. Join: AF8

101011111000 in binary = AF8 in hexadecimal

Conversion Table

Binary Hexadecimal Decimal
000000
000111
001022
001133
010044
010155
011066
011177
100088
100199
1010A10
1011B11
1100C12
1101D13
1110E14
1111F15