Free Morse Code Translator
Morse Code Reference Chart
SOS = ... --- ...
HELLO = .... . .-.. .-.. ---
Enter text above to convert to Morse code
Morse Code Translator: Encode and Decode Dots and Dashes Online
This online Morse code translator works both as a Morse code encoder and a Morse code decoder. Enter plain text to instantly translate Morse code into dots and dashes, or paste a sequence of signals to convert it back into English. The tool adopts the international Morse alphabet for letters A–Z, digits 0–9, and common punctuation marks.
What Is Morse Code?
Morse code is a character encoding scheme that transmits text using two distinct signal durations: a short pulse (dot, or “dit”) and a long pulse (dash, or “dah”). Separators of differing lengths mark the divisions between pulses, letters, and words. The code was created by Samuel Morse and Alfred Vail in the 1830s for use with the electromagnetic telegraph. Interestingly, the earliest version encoded numbers only; the alphabet was introduced shortly after the first public demonstration in 1844, when Morse sent the message “What hath God wrought” over a wire from Washington to Baltimore.
Over the next century, Morse code became the world’s primary long‑distance communication method. Ships, railways, and military forces relied on it daily. Skilled telegraphists could send and receive at remarkable speeds, often treating Morse as a second language rather than a mechanical code. Their ability to parse a rapid stream of dots and dashes could make today’s fastest texters look slow in comparison. Although voice radio gradually replaced it for most applications by the end of the 20th century, Morse code remains in use among amateur radio operators, in aviation identifiers, and as an accessibility tool.
A key feature of the code is that the most frequent letters in English received the shortest patterns. E is a single dot (.), T a single dash (-). Letters like A, I, N, and others with moderate frequency use two symbols, while the rest require three or four. This design cut down transmission time and aided memorisation.
The Morse Code Alphabet (Latin Script)
The international standard for Latin letters is shown below:
| Letter | Morse Code | Letter | Morse Code | |
|---|---|---|---|---|
| A | .- | N | -. | |
| B | -... | O | --- | |
| C | -.-. | P | .--. | |
| D | -.. | Q | --.- | |
| E | . | R | .-. | |
| F | ..-. | S | ... | |
| G | --. | T | - | |
| H | .... | U | ..- | |
| I | .. | V | ...- | |
| J | .--- | W | .-- | |
| K | -.- | X | -..- | |
| L | .-.. | Y | -.-- | |
| M | -- | Z | --.. |
For example, the word “cat” becomes -.-. .- -.
Numbers and Punctuation
Digits are encoded with a regular pattern of five pulses:
| Number | Morse Code | Number | Morse Code | |
|---|---|---|---|---|
| 0 | ----- | 5 | ..... | |
| 1 | .---- | 6 | -.... | |
| 2 | ..--- | 7 | --... | |
| 3 | ...-- | 8 | ---.. | |
| 4 | ....- | 9 | ----. |
All numbers use exactly five pulses, making them easy to distinguish from letters. The translator also supports common punctuation marks such as period (.-.-.-), comma (--..--), and question mark (..--..), following the international Morse standard.
Timing and Spacing Rules
For a Morse code transmission to be readable, the duration of pulses and pauses must follow a fixed ratio:
- A dash lasts 1 time unit.
- A dot lasts unit.
- The gap between pulses within the same letter: unit.
- The gap between letters in a word: 1 unit.
- The gap between separate words: units (equivalent to two dashes plus one dot).
These ratios are built into the translator, so you don’t have to worry about them – but understanding them helps when listening to live Morse or when you want to fine‑tune a manually sent signal.
Decoding Morse Code with a Binary Tree
Decoding a Morse message in real time can be tricky because each incoming pulse may either continue the current character or start a new one. A helpful mental tool is a binary tree. Starting at the top, go left for a dot and right for a dash. Each pulse moves you one level down. Once you reach a letter or number, you have decoded that symbol; the next pulse then resets you to the root.
The standard Morse tree is not completely filled. At the third and fourth levels, many of the theoretically possible sequences are unused, leaving room for accented characters (e.g., È, Œ) and additional punctuation. The fifth level holds only the ten numeric codes, with the other 22 combinations left open for future expansion.
To see the tree in action, consider the letter Y, whose code is -.--. Following the path: dash → T; dot → N; dash → K; dash → Y. Each intermediate node corresponds to a possible shorter letter. This is why accurate spacing is critical: if the pauses between pulses are too long, the receiver might mistake a multi‑pulse character for two separate letters.
How to Use This Morse Code Translator
The tool supports two complementary workflows:
- Encode (Text → Morse): Type or paste any string of letters, numbers, and punctuation. The output appears instantly as dots and dashes, with automatic spacing between letters and words.
- Decode (Morse → Text): Enter a sequence of dots (
.) and dashes (-). Use one space to separate letters within a word and two spaces to separate words. The decoder then reconstructs the original message.
Practical example: Encoding “HELLO” gives .... . .-.. .-.. ---. If you paste that sequence into the decoder with correct spacing, you will retrieve “HELLO” instantly.
Caution: On some operating systems, pressing the space bar twice in quick succession produces a period (.). This can corrupt your Morse input, so always double‑check the spacing before hitting the decode button.
Famous Messages in Morse Code
Morse code has been the medium for some of history’s most dramatic transmissions. Perhaps the best known is SOS (...---...), the universal distress signal. It was used by the RMS Titanic after colliding with an iceberg in April 1912, and it remains the standard call for help in maritime emergencies.
Another legendary Morse message was sent on December 6, 1917, from Pier 6 in Halifax, Nova Scotia. Railway operator Patrick Coleman witnessed the collision of the SS Imo with the French munitions ship Mont Blanc. In a frantic burst of dots and dashes, he warned all inbound trains: “Hold up the train. Ammunition ship afire in harbor making for Pier 6 and will explode. Guess this will be my last message. Good‑bye boys.” Thanks to his rapid transmission, every train halted, saving countless lives. The resulting explosion remains the largest non‑nuclear man‑made blast ever recorded, releasing an energy of approximately of TNT. Coleman did not survive, but his words stand as a sobering reminder of the power of simple communication.
Whether you are studying history, learning amateur radio, or simply trying to decode a mysterious string of dots and dashes, this Morse code encoder/decoder brings the classic code into the digital age with ease.
FAQ
1. How do I use the Morse code translator for encoding?
Type any text (letters, numbers, punctuation) into the input field; the translator will immediately display the corresponding Morse code sequence with correct spacing.
2. What is the timing rule for dots and dashes in Morse code?
A dash lasts 1 unit, a dot lasts 1/3 unit. The gap between pulses within a letter is 1/3 unit, between letters 1 unit, and between words 7/3 units.
3. Can I convert numbers and special characters to Morse code?
Yes. Numbers 0-9 have standard five-pulse assignments, and the translator also supports common punctuation marks such as period, comma, question mark, and more.
4. What is a binary tree and how does it help decode Morse code?
A binary tree maps dots (left branch) and dashes (right branch) to letters. Starting at the root, each pulse takes you down one level until a letter is reached, making decoding systematic and intuitive.
5. What is the famous SOS signal in Morse code?
SOS is encoded as three dots, three dashes, three dots: ... --- ... It was originally chosen for its simplicity and is recognized internationally as a distress call.
How to Use
- Choose your translation direction: Text to Morse or Morse to Text.
- Type or paste your message into the input field.
- Click Translate and view the result instantly. Use the Copy button to save your translation.