What is a Morse code translator?
Morse code writes letters, digits and punctuation as short signals (dots) and long signals (dashes). It was created for the telegraph in the 1830s and 1840s, and it is still used today in amateur radio, aviation navigation beacons, accessibility devices and survival signaling. The best-known message is SOS: three dots, three dashes, three dots (... --- ...). It is not an abbreviation of anything; it was chosen because the pattern is easy to recognize.
This Morse code translator converts text to Morse and Morse to text in the same box, and it detects the direction by itself: if the input contains only dots, dashes, slashes and spaces it is read as Morse, otherwise as text. You can also force a direction. Besides translating, it plays the result as a beep or as a flashing light, at a speed from 5 to 30 words per minute, so you can learn the rhythm instead of only reading symbols. Everything runs in your browser; nothing you type is sent anywhere.
The alphabet follows the international Morse code of Recommendation ITU-R M.1677-1: the letters A to Z, the digits 0 to 9 and the usual punctuation. Accented letters used in European languages (Ä, Ö, Ü, É, Ñ, Ç, Å, È) have the extended codes shown in the chart below the tool. Letters without a Morse code are reported instead of being silently dropped.
How to translate text to Morse and back
- Type or paste your text in the box. The page opens with an example loaded so you can see the result right away.
- Leave the direction on "Detect", or choose "Text to Morse" or "Morse to text" if the detection guessed wrong.
- Read the translation. In Morse, letters are separated by one space and words by a slash (
/). - To decode, type dots and dashes yourself. The tool also accepts the look-alike symbols people paste from other sites: the middle dot, the bullet, the minus sign and the long dash are converted to
.and-. - Press Play to hear the message as a tone (you can change the pitch in hertz) or tick the light option to see it as a flashing panel. Use the speed control to slow it down while you learn.
- Copy the result with the copy button. If some characters have no Morse code, a notice lists them.
Examples
The distress signal
Typing SOS gives ... --- .... Decoding ... --- ... gives SOS back, and the tool detects Morse by itself.
A short greeting
Hello World becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -... Each letter is a group, and the slash separates the two words.
Accents
Olá, mundo! becomes --- .-.. .--.- --..-- / -- ..- -. -.. --- -.-.--. The accented á uses the Å code (.--.-), which is the same one the table uses for Å, so decoding gives back OLÅ. This is a real limit of Morse: the same pattern is shared by letters of different languages.
Timing at 20 words per minute
One dot lasts 1200 / wpm milliseconds, so 60 ms at 20 wpm. A dash lasts three dots, the gap between signals of one letter is one dot, between letters three dots and between words seven dots. SOS has 27 of those units, so it takes 1,620 ms (1.6 seconds) at 20 wpm.
An unrecognized group
Decoding .... ........ --- gives H?O: the second group has eight dots, which is not a letter, so it shows as ? and the tool tells you which group (number 2) was not recognized.
Common mistakes
- Not separating letters and words. Without spaces between letters,
....could beH,EEEEorII. Use one space between letters and/between words. - Using other symbols. Underscores and long dashes are accepted, but letters, digits or commas inside Morse make the decoder stop with a message showing the character to remove.
- Expecting accents to survive. Several accented letters share a code with another letter. For text that must come back exactly, avoid accents or spell them out.
- Forgetting that the speed is in words per minute. The standard word "PARIS" has 50 units, so 20 wpm means 60 ms per dot. Beginners usually learn better with letters sent fast and long pauses between them.
- Treating Morse as encryption. It is an encoding anyone can read. To protect data use encryption; to see text as ones and zeros, try text to binary.
Frequently asked questions
What does SOS stand for?
Nothing. It is a pattern chosen in the early 1900s because it is easy to send and to recognize: three dots, three dashes, three dots, sent without gaps between letters. The popular "Save Our Souls" was invented later.
Which Morse code is this?
The international Morse code described in ITU-R M.1677-1, not the older American (Morse's original) code. It is the one used by radio amateurs and in aviation.
How do I write a space between words?
Use a slash with a space on each side: .... .. / - .... . .-. .. The tool also accepts a vertical bar or a backslash and converts it.
Can I send Morse with the light or the screen?
Yes. Choose the light option and press Play: the panel flashes following the dots and dashes at the chosen speed. Keep the tab open while it plays.
How do I say letters like in radio?
Radio operators spell words with the phonetic alphabet; the NATO alphabet tool converts text to Alpha, Bravo, Charlie.
Morse code in code
JavaScript
const MORSE = { S: '...', O: '---', E: '.', T: '-' };
const toMorse = text => [...text.toUpperCase()].map(c => MORSE[c]).join(' ');
console.log(toMorse('SOS')); // ... --- ...Python
MORSE = {"S": "...", "O": "---"}
print(" ".join(MORSE[c] for c in "SOS")) # ... --- ...Bash
echo "... --- ..." | tr -d ' ' # ...---...