That depends on your string encoding.
In ascii, for example:
H = 72 = 1001000
i = 105 = 1101001
0100110101100001011100110110111101101110
Decimal 30 = binary 11110. The decimal binary code (BCD), however, is 11 0000.
356 in binary is101100100
14 decimal in binary is 11102. In octal it is 168 and in hexadecimal it is 0E16.
It is that type of binary code where weights are assigned to each symbol position in the code word.
There is no 'binary formula'. You can say that hydrogen iodide is a binary compound, that is one formed from just two elements. HI is its formula.
Say
110001010110000100100
0100110101100001011100110110111101101110
In binary code, the word "no" can be represented using ASCII values. The letter "n" corresponds to the ASCII value 110, which is 01101110 in binary, and the letter "o" corresponds to 111, which is 01101111 in binary. Therefore, "no" in binary code is 01101110 01101111.
01
01
Thompson (with capital T): 0101010001101000011011110110110101110000011100110110111101101110
01100111 01101111 01101111 01100100 01100010 01111001 01100101 = goodbye in binary
Thompson (with capital T): 0101010001101000011011110110110101110000011100110110111101101110
That IS the binary code.
In binary code, the word "yes" is represented as follows: the letter 'y' is 121 in ASCII, which is 01111001 in binary; 'e' is 101, which is 01100101; and 's' is 115, which is 01110011. Therefore, "yes" in binary is 01111001 01100101 01110011.