How to convert ASCII/Unicode Text to Binary
Converting ASCII/Unicode Text to binary we need apply 3 steps:
- Get each character of the text.
- Get decimal corresponding value of the character.
- Convert decimal to binary system.
Let's see an example. Text is : toolkit
't' character is 116 in the ASCII table and decimal 116 is 01110100 in the binary system
'o' character is 111 in the ASCII table and decimal 111 is 01101111 in the binary system
'o' character is 111 in the ASCII table and decimal 111 is 01101111 in the binary system
'l' character is 108 in the ASCII table and decimal 108 is 01101100 in the binary system
'k' character is 107 in the ASCII table and decimal 107 is 01101011 in the binary system
'i' character is 105 in the ASCII table and decimal 105 is 01101001 in the binary system
't' character is 116 in the ASCII table and decimal 116 is 01110100 in the binary system
The toolkit text is 01110100 01101111 01101111 01101100 01101011 01101001 01110100 in the binary system.