Turn text into Morse code, or Morse back into letters. Letters are separated by spaces and words by a slash.
This page turns Latin letters, digits and a fixed set of punctuation into ITU Morse, and turns that Morse back into text. A letter is dots and dashes. Words are separated by / . It does not play a sound, and it does not encode Chinese, Japanese or Korean. Turning text into bits is a different page: text to binary.
SOS HELP. The next click decodes ... --- ... / .... . .-.. .--. back to SOS HELP.Each letter is separated by one space. Each word is separated by / . When decoding, two or more spaces also start a new word. A middle dot · or • is read as a dot, and a long dash is read as a hyphen. Encoding ignores case and writes uppercase on the way back. Digits and marks such as . , ? ! @ are in the table. A character that is not, including Chinese, stops with an error instead of skipping the letter. An unknown dot pattern does the same.
Morse here is the ITU alphabet for Latin letters, digits and punctuation. Encode those, or leave the Chinese out of the box.
Put / between words, or at least two spaces. A single space is only the gap between letters.