# Hex to Binary Converter

## Converting Hexadecimal to Binary

Hexadecimal is a base 16 numbering system, in which each digit of a number are represented by 16 possible characters. These chracters are 0-9 and A-F. Hexadecimal is widely used when representing binary numbers, as they can perfectly represent a byte using only two digits.

Hexadecimal is an excellent way to represent large decimal numbers as you need less digits to represent the same number. For a classic 32 bit integer, you only need 8 hex digits to represent the maximum value, as opposed to the 11 required when using classical base 10 representations. Even numbers are nice!

Binary is very easily translated from hexadecimal, since four binary digits correspond to a single hexadecimal digit. Use the provided table to convert each hexadecimal digit into its binary equivalent.

### Example

Converting `f0a183b`_{16}

to binary:

`f0a183b`_{16} = 1111000010100001100000111011_{2}

### Conversion Table

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

0000 | 0 | | 1000 | 8 |

0001 | 1 | 1001 | 9 |

0010 | 2 | 1010 | A |

0011 | 3 | 1011 | B |

0100 | 4 | 1100 | C |

0101 | 5 | 1101 | D |

0110 | 6 | 1110 | E |

0111 | 7 | 1111 | F |