How to turn text into Morse code (and back)
- Type or paste your message into Text to translate. Upper and lower case both work.
- Under Mode, choose Text → Morse to encode, or Morse → Text if you have dots and dashes to read. When encoding, line breaks count as word breaks.
- The result appears in the Translation box as you type, and it updates when you change the mode.
- Use Copy result to put the output on your clipboard, or Clear to empty the input and start over.
- To hear the code, pick a value from Speed (WPM) (5, 10, 15 or 20) and press Play. The tool plays a 600 Hz tone and flashes the signal lamp in time with it. While it plays, the same button reads Stop, and pressing it cuts playback short.
In encode mode, Play sounds out the translation. In decode mode it plays the Morse you pasted, so you can listen to a code before or after reading it. The Play time figure shows in advance how long playback will take at the selected speed.
Morse code examples with real output
| Input | Mode | Output |
|---|---|---|
SOS |
Text → Morse | ... --- ... |
Hello, world! |
Text → Morse | .... . .-.. .-.. --- / .-- --- .-. .-.. -.. |
-- . . - / .- - / .---- ----- |
Morse → Text | MEET AT 10 |
... ---- ... |
Morse → Text | SS |
In the second row, the comma and exclamation mark are gone. The tool encodes only letters and digits, so punctuation is left out of the output. Decoded text always comes back in capitals, because Morse code has no lower case. The last row has a typo: ---- (four dashes) isn't a valid code, so it is skipped and only the two S letters remain.
Playback length depends on the speed setting:
"... --- ..." at 15 WPM → 2.2 s
"HELLO WORLD" at 20 WPM → 6.7 s
"HELLO WORLD" at 5 WPM → 26.6 s
Speed, timing and how the playback sounds
Playback uses standard Morse timing. A dot is one unit and a dash is three. The gap inside a letter is one unit, the gap between letters is three, and the gap between words is seven. One unit lasts 1200 ms divided by the WPM value. That gives 240 ms at 5 WPM, 120 ms at 10, 80 ms at 15 (the default) and 60 ms at 20.
Lower speeds make every element and gap longer. Many courses teach letters at around 15–20 WPM from the start, so you learn each character as a rhythm instead of counting dots. The lamp follows the same schedule as the sound, so it still works on a muted laptop or phone.
Practical uses
- Puzzles and escape-room clues: encode a short code word, print the dots and dashes, and players can check their answer by pasting it back in decode mode. If your puzzle chains several ciphers, Caesar cipher (ROT13) works well as a second step.
- Copy practice: paste a sentence, look away from the screen or cover the result, play it at 15 WPM and write down what you hear. Then compare your copy with the text.
- Checking a code from a film, game or tattoo design: paste the Morse in Morse → Text mode to make sure it says what you think before you commit to it.
- Spelling messages over a bad voice line is a different job. For that, use Text to NATO phonetic alphabet, which turns each letter into a spoken word such as Alfa or Bravo.
Limits and formatting rules to know
- Supported characters: the 26 Latin letters A–Z and the digits 0–9. Accented letters (é, ü, ł) and punctuation are dropped when encoding. For example,
Café 2026becomes-.-. .- ..-. / ..--- ----- ..--- -...., without the é. The full international alphabet, which includes punctuation, is defined in ITU-R M.1677-1. - Prosigns: prosigns such as AR or SK are not supported. Typing AR gives the separate letters
.- .-., not the run-together prosign. - Word breaks when decoding: the slash needs a space on each side.
... / ---decodes toS O, while.../---decodes to nothing. - Unknown codes: if the decoded text looks shorter than expected, check the input for a typo such as an extra dot or dash.