# Hex to Binary Converter

Feb 21, 2019

Hex to Binary Converter is used to convert a Hex number into Binary format

#### Binary To Hex Converter

Convert Binary number to Hex

### Hex

Hexadecimal is a numeric system widely used by systems designers and computer programmers. It contains 16 symbols from 0 to 9 and A to F, thus having a base of 16.

### Binary

Binary is the numeric system of computers. Computers are so dumb they only understand 0s and 1s. Binary numbers have a base of 2.

### Conversion from Hex to Binary

A Hex can be converted to Binary using these steps:-

1. Break the Hex number into individual digits
2. Convert each hex digit into it's binary equivalent.
3. Pad with leading zeroes to make each binary number 4 digit long
4. Group the binary bits from left to right

#### Example Hex to Binary Conversion

Let's say your Hex value is 1A4, and you want to convert it to its binary form.

1. Step 1: Break the Hex number into digits: 1 A 4
2. Step 2: Convert each hex digit into binary
• 1 becomes 0001
• A becomes 1010
• 4 becomes 0100
3. Step 3: Combine the bits: 000110100100
4. Step 4: Remove leading zeroes: 110100100

Binary system might be what computers use, but the hexadecimal number system is the closest one to it that us humans can comprehend. One of the unique properties of a hexadecimal number is that it can be easily converted to binary digits. All you need is the conversion chart shown below that maps all hex digits with their binary equivalents.

00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111

### Common usages of Hex

Hex is used in HTML to represent colors. For example, FF0000 refers to the color red. Hex editors use it to display binary data stored in files. You can express any byte from 0-255 using two hexadecimal digits. 00 represents the NULL character whose byte value is 0, and FF means 'ÿ' (the Latin small letter y with diaeresis). Thus, a hex digit represents a nibble, and two of them represent a byte.

### Example Hex to Binary Conversion

• (45)16 = (0100 0101)2
• (1A4)16 = (0001 1010 0100)2