Text to Morse Code

Encode letters, digits and punctuation as International Morse Code.

Text
Morse code
Runs locally in your browser

About the Text to Morse Code

International Morse Code, standardised by the ITU, assigns a pattern of short and long signals to each of the 26 Latin letters, the ten digits and a set of punctuation marks. This encoder uses that table: a letter becomes a group of dots and dashes, letters within a word are separated by a single space, and words are separated by a slash, the convention used when Morse is written down rather than transmitted.

Case is irrelevant because Morse has no capitals, so the input is folded to uppercase before lookup. Punctuation coverage goes beyond the basics to include the ampersand, colon, semicolon, equals sign, plus, underscore, quotation marks, the dollar sign and the at sign, which was added to the standard in 2004 for email addresses. Eight accented letters from the ITU and common national tables are included, so é and ñ encode rather than vanish.

Anything with no Morse equivalent is skipped by default, kept verbatim, or turned into an error, whichever you choose, and the status line counts what was dropped. The dot and dash characters are editable if you want a different notation, and the gap settings let you produce one word per line for reading aloud. Timing is not part of the written form: a dash lasts three dot units on the air, but on paper the ratio is only implied. To read Morse back, use the Morse Decode tool, and the combined Morse Code Translator handles both directions.

How to use

  1. Type or paste the message.
  2. Choose the separators for letters and words.
  3. Decide what should happen to characters with no Morse equivalent.
  4. Copy the encoded message.

Common questions

Why is there a slash between words?
When Morse is written out, a slash marks a word gap. On the air that gap is a silence of seven dot units, which no written notation can show directly.
Does Morse have uppercase and lowercase?
No. There is one pattern per letter, so the input is uppercased before it is looked up.
Which punctuation is supported?
Full stop, comma, question mark, apostrophe, exclamation mark, slash, brackets, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quotation mark, dollar and at.
Can I use different symbols for dots and dashes?
Yes. Set the dot and dash fields to any characters you like, for example a middle dot and an em rule for a stylised look.