Morse Code Translator
Encode letters, digits and common punctuation to International Morse code, or decode a Morse string back to text. Letters are separated by a space and words by " / "; decoding also accepts "|" as a word separator and forgives extra spaces.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Encoding text to International Morse
Every letter, digit and common punctuation mark maps to its dot-and-dash code, with letters joined by a space and words by the sequence " / ". The box is uppercased first, and an unsupported character — an accented letter, a symbol, an emoji — becomes "?" and is named in a warning rather than dropped silently.
Decoding is forgiving about spacing
Runs of whitespace collapse, and "/" or "|" with or without surrounding spaces is treated as a word separator, while every other run of whitespace just separates letters, so a string typed with extra spaces decodes the same as a neat one. An unrecognised dot-and-dash group, though, raises an error rather than being guessed, since mangling one symbol would corrupt the message.
When it is useful
Morse is mostly a curiosity today, but the tool genuinely decodes a snippet from a puzzle, a radio hobbyist’s log or a historical document, and encodes short text to test a transmitter or a signal lamp. It covers the full International set rather than a Latin-only toy alphabet, so it serves a real message.
Limitations, and where it runs
There is no provision for prosigns or other procedural abbreviations, so an accented letter comes back as "?" with a warning, and there is no audio or light output, leaving the flashing or beeping to whatever hardware you connect. The Morse table and both directions live in this page, so a message stays on your device.
Questions
Which characters are supported?
A–Z, 0–9 and the common punctuation marks . , ? ' ! / ( ) & : ; = + - _ " $ @. Case is ignored. On encoding, any unsupported character becomes "?" and is listed in a warning.
How forgiving is decoding?
Runs of whitespace are collapsed, and both "/" and "|" (with or without surrounding spaces) are treated as word separators. An unrecognised dot/dash group raises an error rather than being dropped silently.
What happens to characters Morse cannot represent?
On encoding, an accented letter, a symbol or an emoji is written as a literal "?" in the output and named in a warning, so nothing is silently discarded. That question mark is not a Morse code and cannot be decoded back — check the warning and replace it before converting the result.
Related tools
See categoryNATO Phonetic Alphabet
Spell text with the NATO/ICAO phonetic alphabet (Alfa, Bravo, Charlie…) and back.
ROT13 / Caesar Cipher
Apply ROT13, ROT5, ROT18, ROT47 or an arbitrary Caesar shift to text.
Text to Binary
Encode text as 8-bit binary (UTF-8 aware) or decode a string of 0s and 1s back to text.
Case Converter
Convert between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.