Morse Code Translator

Encode text into International Morse code or decode Morse back to text — the direction is detected automatically.

How it works

Morse code represents letters with dots and dashes — SOS is famously ... --- ... — and this tool separates words with a slash. Auto-detect mode inspects your input: if it contains only dots, dashes, slashes, and spaces, it is decoded as Morse; otherwise it is encoded as text. Encoding follows the standard ITU mapping for letters, digits, and common punctuation, and skips characters that have no code. Decoding splits on whitespace and looks each group up in the reverse table, flagging anything unrecognized so you can fix typos.

How to use

  1. Leave Direction on Auto-detect (or force Text → Morse / Morse → Text) and type into the Input box — the Result updates live with every keystroke.
  2. To encode, type plain text: letters become dots and dashes, and the spaces between words become slashes (/).
  3. To decode, type Morse with dots, dashes, and spaces between letters and a slash between words — for example, ... --- ... decodes to SOS.
  4. Auto-detect decides the direction for you: input containing only dots, dashes, slashes, and spaces is decoded; anything else is encoded as text.

Frequently asked questions

Which characters can the translator handle?

All 26 letters, digits 0–9, and common punctuation (. , ? ’ ! / ( ) & : ; = + - _ " $ @) using the standard ITU mapping. Text is uppercased before encoding, and characters with no Morse code are skipped rather than producing an error.

How are letters and words separated in Morse?

Letters are separated by spaces and words by slashes, so “HELLO WORLD” becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -... When decoding, each slash becomes a space in the output.

Why did decoding fail with “Unknown morse code”?

Every dot-dash group separated by spaces must match a real code, so check your letter spacing: ...---... fails because it is one unbroken group, while ... --- ... decodes cleanly to SOS. The tool flags the offending group so you can fix typos.

Can auto-detect ever guess the wrong direction?

It treats input as Morse only when it contains nothing but dots, dashes, slashes, and whitespace. A plain word like “SOS” is encoded to ... --- ..., not decoded — and if you ever disagree with the guess, switch the Direction dropdown explicitly.