A Hex can be converted to Binary in three steps:-
Let's say your Hex value is 1A4
and you want to convert it to it's Binary form.
1
A
4
1
becomes 0001
A
becomes 1010
4
becomes 0100
000110100100
110100100
Hexadecimal is the numeric system widely used by systems designers and computer programmers. It comprises of 16 symbols from 0 to 9 and A to F.
Binary is the numeric system of computers. Computers are so dumb they only understand 0s and 1s. Binary numbers have a base of 2.
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.
Hexadecimal | Binary |
---|---|
0 | 0000 |
1 | 0001 |
2 | 0010 |
3 | 0011 |
4 | 0100 |
5 | 0101 |
6 | 0110 |
7 | 0111 |
8 | 1000 |
9 | 1001 |
A | 1010 |
B | 1011 |
C | 1100 |
D | 1101 |
E | 1110 |
F | 1111 |
Hex is used in HTML to represent colors. For example, FF0000 refers to the color red. It is also used by Hex editors to display binary data stored in files. Any byte from 0-255 can be represented using two hexadecimal digits. 00 represents the NULL character whose byte value is 0 and FF represents 'ÿ' (the latin small letter y with diaeresis). Thus, a hex digit represents a nibble and two of them represent a byte.
Comments 0