The distress signal
Paste a small example into the tool and change one part at a time.
Encodes to ... --- ... - three dots, three dashes, three dots.
Translate text to Morse code and back - with audio playback.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
A Morse code translator converts ordinary text into Morse code - the pattern of short and long signals (dots and dashes) used in telegraphy and radio - and converts Morse back into readable text. Each letter, digit, and punctuation mark has its own unique sequence of dots (·) and dashes (−).
In written Morse, a dot is . and a dash is -. Letters within a word are separated by a single space, and words are separated by a slash /. So SOS is ... --- ..., and SOS Coddy becomes ... --- ... / -.-. --- -.. -.. -.--.
Beyond writing it out, this tool can *play* the code aloud using authentic timing - a dash lasts three times as long as a dot, with precise gaps between letters and words - so you can learn Morse by ear. Everything runs locally in your browser.
Choose Text → Morse to encode, or Morse → Text to decode dots and dashes back into letters.
Enter any text, or paste Morse using dots and dashes with spaces between letters and a slash ( / ) between words.
Press Play to hear the Morse code as beeps with correct dit/dah timing - a great way to practice by ear.
Copy the result with one click, or hit swap to reverse the conversion on the current output.
The full International Morse code mapping for letters and digits.
| Character | Morse | Character | Morse |
|---|---|---|---|
| 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 | --.. |
| 1 | .---- | 6 | -.... |
| 2 | ..--- | 7 | --... |
| 3 | ...-- | 8 | ---.. |
| 4 | ....- | 9 | ----. |
| 5 | ..... | 0 | ----- |
Paste a small example into the tool and change one part at a time.
Encodes to ... --- ... - three dots, three dashes, three dots.
Copy the original value, run the tool, then compare the result.
Words are separated by / , so you get .... .. / - .... . .-. ..
Take a value from your own work and use this tool to inspect or prepare it.
Paste this in Morse → Text mode to get LOVE.