How to convert a string to binary and vice versa?

Hi, I want to convert a string to binary and vice versa, but I’m not sure how to do it.

If someone could tell me how to do it I would appreciate it.

and