Morse code translator
Turn text into Morse code or decode Morse back into readable text. It uses the international alphabet with numbers and common punctuation, detects the direction for you, and runs free in your browser.
How to use it
- Type your text, or paste Morse code, in the box.
- Leave Direction on automatic, or choose Text to Morse or Morse to text.
- In Morse, separate letters with a space and words with a slash (/). The result appears below, ready to Copy.
Guide to translating Morse code
What Morse code is
Morse code writes each letter and digit as a pattern of short signals (dots) and long signals (dashes). It was built for the telegraph and is still used in amateur radio, aviation beacons, and as an accessibility input method. It is also a favorite for puzzles, escape rooms and classroom activities. The translator converts in both directions, so you can type a message and get the code, or paste code and read the message.
The writing rules
In text form, the dot is a full stop and the dash is a hyphen. Letters are separated by a single space and words by a slash. Without the spaces, ...---... would be impossible to split into letters. Keep that in mind when you write Morse by hand: ... --- ... is SOS, while ...---... is not a valid message.
How this translator works
- Direction set to Detect automatically treats the input as Morse when it contains only dots, dashes, slashes, vertical bars and spaces, and as text otherwise. You can force Text to Morse or Morse to text. Force it when a single dot or dash is ambiguous: with automatic detection a lone
.is read as Morse, the letter E. - Text to Morse is not case sensitive. Accents are removed first, so á becomes A, and ß becomes SS. Line breaks are kept: each line is translated on its own. The output separates letters with a space and words with
/. - Morse to text accepts a slash, a vertical bar or three or more spaces between words. The middle dot and some typographic dashes are read as a dot or a dash. The result is in capital letters, since Morse has no case.
- If a character has no code, such as an emoji, the tool stops and lists it. If a sequence of dots and dashes is not a known code, it tells you the first one it did not recognize.
Worked examples
- Type
SOSand leave the direction on automatic. Result is... --- ...and Translation says Text to Morse. - Type
Hello world. The result is.... . .-.. .-.. --- / .-- --- .-. .-.. -.., with the slash marking the space between the two words. - Paste the code from step 2. The result is
HELLO WORLDand Translation says Morse to text.
Reference table
| Character | Code | Character | Code | Character | Code | Character | Code | Character | Code | Character | Code |
|---|---|---|---|---|---|---|---|---|---|---|---|
| A | .- | B | -... | C | -.-. | D | -.. | E | . | F | ..-. |
| G | --. | H | .... | I | .. | J | .--- | K | -.- | L | .-.. |
| M | -- | N | -. | O | --- | P | .--. | Q | --.- | R | .-. |
| S | ... | T | - | U | ..- | V | ...- | W | .-- | X | -..- |
| Y | -.-- | Z | --.. | 0 | ----- | 1 | .---- | 2 | ..--- | 3 | ...-- |
| 4 | ....- | 5 | ..... | 6 | -.... | 7 | --... | 8 | ---.. | 9 | ----. |
The tool also covers these punctuation marks: . , ? ' ! / ( ) & : ; = + - _ " $ @. For example, the comma is --..-- and the question mark is ..--...
Tips and common mistakes
- A missing space between letters is the most common error. Always separate letters with one space and words with a slash.
- Accented letters lose their accent, so the translation back gives the plain letter. Morse here does not distinguish e from é.
- This is a text translation, not an audio or light signal. Timing, such as the length of a dash compared with a dot, is not part of the output.
- Morse is not encryption. Anyone can read it, so do not use it to protect private information.
Related tools
For other ways of encoding text, try the Caesar cipher or the text to binary converter.
Questions
Which Morse alphabet does it use?
The international Morse code (ITU): letters A to Z, digits 0 to 9 and common punctuation such as . , ? ! / ( ) & : ; = + - _ " $ @. Special letters are not part of it.
What happens to accents?
Accents are removed before encoding, so "é" becomes E and "ñ" becomes N. The German ß becomes SS. Other characters without Morse code are reported so you can remove them.
How do I separate letters and words?
Use one space between letters and a slash (/) between words, for example ".... .." for HI and "... --- ... / ... --- ..." for SOS SOS. Three or more spaces also count as a word break.
How does automatic detection work?
If the input has only dots, dashes, slashes and spaces, it is read as Morse. Otherwise it is treated as text. If you want to encode a lone dot or dash as text, choose the direction yourself.