Morse Code Translator
How it works
Text → Morse uppercases the input, then maps each character through the
table below. Letters within a word are joined by a single space; a literal space in your
input becomes / (space-slash-space) between Morse "words". A character with
no Morse equivalent produces a clear error, naming the character, rather than being
silently dropped.
Morse → Text reverses that: it splits on / for words and on
whitespace for letters within a word, looking each code up in the same table. An invalid
code — one with no matching letter — produces a clear error naming it.
| Char | Morse | Char | Morse |
|---|---|---|---|
| A | .- | 1 | .---- |
| B | -... | 2 | ..--- |
| C | -.-. | 3 | ...-- |
| D | -.. | 4 | ....- |
| E | . | 5 | ..... |
| F | ..-. | 6 | -.... |
| G | --. | 7 | --... |
| H | .... | 8 | ---.. |
| I | .. | 9 | ----. |
| J | .--- | . | .-.-.- |
| K | -.- | , | --..-- |
| L | .-.. | ? | ..--.. |
| M | -- | ' | .----. |
| N | -. | ! | -.-.-- |
| O | --- | / | -..-. |
| P | .--. | ( | -.--. |
| Q | --.- | ) | -.--.- |
| R | .-. | & | .-... |
| S | ... | : | ---... |
| T | - | ; | -.-.-. |
| U | ..- | = | -...- |
| V | ...- | + | .-.-. |
| W | .-- | - | -....- |
| X | -..- | _ | ..--.- |
| Y | -.-- | " | .-..-. |
| Z | --.. | $ | ...-..- |
| 0 | ----- | @ | .--.-. |
Frequently asked questions
How do word boundaries work in Morse code?
Within one word, individual LETTERS are separated by a single space — so SOS is ... --- ... , three letters with a space between each. Words themselves are separated by a slash, written as " / " with a space on each side. Mixing these up is the single most common point of confusion when reading Morse by hand.
Which punctuation is supported?
Beyond A-Z and 0-9: period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, double quote, dollar sign and at sign — see the reference table above. Any other character produces a clear error rather than being silently dropped.
Does Morse code preserve capitalization?
No — Morse has no separate codes for upper and lowercase letters. Converting text to Morse and back always yields UPPERCASE, since there is nothing in the code itself to recover the original casing from.