Morse Code Translator
Text to Morse and Back
Type text to get Morse code, or paste dots and dashes to decode them. Play the sound and copy the result. It runs in your browser.
Type text to get Morse code, or paste dots and dashes to decode them. Play the sound and copy the result. It runs in your browser.
What is a Morse code translator? A Morse code translator converts letters and numbers into patterns of short and long signals, written as dots and dashes, and converts them back. Used as a Morse code generator it turns text into dots and dashes, and used as a Morse code decoder it reads dots and dashes back into text. This one uses International Morse Code. Letters are separated by a space and words by a slash, so HELLO WORLD becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -..
Every character is a pattern of short signals (dots) and long signals (dashes). Timing carries the structure. A dot is one unit long and a dash is three. The pause inside a letter is one unit, the pause between letters is three units, and the pause between words is seven. In writing, a space stands for the letter pause and a slash for the word pause.
The translator here uses International Morse Code, the form used in amateur radio. American Morse, the older telegraph version, uses different patterns for some letters and is not what this tool produces. The playback follows the usual speed convention, where one unit lasts 1200 divided by the speed in words per minute, in milliseconds. At the default 15 words per minute a dot lasts 80 milliseconds.
These were made by this translator, so they match what you get when you type the same words.
| Phrase | Morse code |
|---|---|
| SOS | ... --- ... |
| HELLO | .... . .-.. .-.. --- |
| HELP | .... . .-.. .--. |
| I LOVE YOU | .. / .-.. --- ...- . / -.-- --- ..- |
| GOOD MORNING | --. --- --- -.. / -- --- .-. -. .. -. --. |
| THANK YOU | - .... .- -. -.- / -.-- --- ..- |
| OK | --- -.- |
| YES | -.-- . ... |
| NO | -. --- |
This is the same table the translator uses, so every pattern below can be typed or decoded above.
These six marks are not in the ITU list. They are widely used conventions, so a receiver may not know them.
Light works the same way as sound. A short flash is a dot and a long flash is a dash, and the long flash lasts about three times as long as the short one. Use the timeline above as a guide: each block is one signal, and the gaps between blocks are the pauses. Read the pattern from the result box, then flash it with a torch or a phone light, keeping the pauses even. A distress call is a different matter. Contact local emergency services first and treat a flashlight signal as a backup.
If you want ready-made messages, the guide to Morse code phrases, from SOS to I love you lists 38 common phrases, 10 names, the digits and a bracelet bead count, all made with the same table as this translator.
If you write Morse on paper or in a message, keep the spacing consistent. A single space between letters and a slash between words is the easiest convention to read back. Without a clear word break, a long run of letters can be decoded more than one way, because some patterns are the start of longer ones. Typing the dot as a full stop and the dash as a hyphen avoids the look-alike characters that cause most copy and paste mistakes.