# Online Binary to Hex converter

Online Web Code Test |
Online Image Picker |
Online Color Picker

# Binary to Hex converter

#### Binary to Hex

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other professionals.

Whereas Hexadecimal number is one of the number systems which has value is 16 and it has only 16 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and 15 respectively.

#### How to convert binary to hex

Conversion from Binary to Hexadecimal number system

Hexadecimal number system provides convenient way of converting large binary numbers into more compact and smaller groups. There are various ways to convert a binary number into hexadecimal number. You can convert using direct methods or indirect methods. First, you need to convert a binary into other base system (e.g., into decimal, or into octal). Then you need to convert it hexadecimal number.

Since number numbers are type of positional number system. That means weight of the positions from right to left are as 16^{0}, 16^{1}, 16^{2}, 16^{3}and so on. for the integer part and weight of the positions from left to right are as 16^{-1}, 16^{-2}, 16^{-3}and so on. for the fractional part.

#### Example

Convert binary number 1101010 into hexadecimal number.

.First convert this into decimal number:

= (1101010)_{2}

= 1x2^{6}+1x2^{5}+0x2^{4}+1x2^{3}+0x2^{2}+1x2^{1}+0x2^{0}

= 64+32+0+8+0+2+0

= (106)_{10}

Then, convert it into hexadecimal number

= (106)_{10}

= 6x16^{1}+10x16^{0}

= (6A)_{16} which is answer.

#### conversion from Binary to hexadecimal using grouping

Convert every 4 binary digits (start from bit 0) to 1 hex digit, with this table:

Binary | Hex |
---|---|

0000 | 0 |

0001 | 1 |

0010 | 2 |

0011 | 3 |

0100 | 4 |

0101 | 5 |

0110 | 6 |

0111 | 7 |

1000 | 8 |

1001 | 9 |

1010 | A |

1011 | B |

1100 | C |

1101 | D |

1110 | E |

1111 | F |

#### Example:

Convert binary 1101100_{2} to hex:

1101100_{2} = 110 1100 = 6 C = 6C_{16}