Morse Code Translator: Text to Morse and Back

Type a message to see it in dots and dashes, or paste Morse code to read it as plain text. The tool works out the direction by itself and can play the result as beeps.

TechFreeNo sign-upWorks on phones
–

Characters translated–
Left out (no code)–
Length in dot units–
Time to send at this speed–
Code chart

This tool runs in your browser. Nothing you type is uploaded or saved, and there is nothing to install or sign up for.

What this translator does

Morse code spells messages with two signals, a short one called a dot and a long one called a dash. Each letter, digit and common punctuation mark has its own pattern. This page converts in both directions: ordinary writing into dots and dashes, and dots and dashes back into writing. It also plays the message as a tone and tells you how long it would take to send at the speed you choose.

The chart under the tool lists every character it knows: the 26 letters, the ten digits, thirteen punctuation marks and the accented E.

How to translate a message

  1. Type or paste into Text or Morse code. Capital and small letters are treated the same.
  2. Leave Direction on Detect automatically. If the box holds nothing but dots, dashes, spaces and slashes, the tool decodes it. Anything else is encoded.
  3. Read the answer in the result box and press Copy result to take it elsewhere.
  4. Press Play sound to hear it, and Stop to end playback early. Change Speed to make the beeps faster or slower.
  5. Use result as input feeds the answer back in, which is a quick way to check a round trip. Reset returns to the opening example.

How Morse code is written down

On paper or on a screen, a dot is a full stop and a dash is a hyphen. The tool writes one space between letters and a slash with a space on each side between words, and it expects the same when you paste code in. An underscore is accepted as a dash, and a vertical bar or a new line also counts as a word break.

The spacing matters more than beginners expect. The letters E and T are a single dot and a single dash. Run three dots together with no spaces and you have the letter S, not three letter Es.

Worked example: SOS HELP

The page opens with the message SOS HELP. Letter by letter:

LetterMorseLength in dot units
S...5
O---11
S...5
H....7
E.1
L.-..9
P.--.11

The full result is ... --- ... / .... . .-.. .--. and it is 71 dot units long. Here is where 71 comes from. The first word has letters of 5, 11 and 5 units with two gaps of 3 between them: 27. The second word has 7, 1, 9 and 11 with three gaps of 3: 37. The gap between the two words adds 7. So 27 + 7 + 37 = 71. At 20 words per minute that takes 4.26 seconds.

Timing: dots, dashes and gaps

Everything in Morse is measured against the length of one dot. The standard convention of International Morse code is:

  • a dash lasts as long as three dots;
  • the silence between the dots and dashes inside one letter lasts one dot;
  • the silence between two letters lasts three dots;
  • the silence between two words lasts seven dots.

That is how the letter O reaches 11 units: three dashes of 3 units each, plus two silences of 1 unit.

Speed is given in words per minute, and the customary yardstick word is PARIS. Counted with the rules above, PARIS plus the word gap after it comes to exactly 50 units. Sending it 20 times in a minute means 1,000 units in 60 seconds, so:

dot length in seconds = 60 / (50 x words per minute) = 1.2 / words per minute

sending time = dot units x 1.2 / words per minute

At 20 words per minute a dot is 0.06 seconds, and 71 units × 0.06 = 4.26 seconds. The tool also divides the unit count by 50 to express the message in standard words: 71 units is 1.42 of them.

Characters that have no code

The code chart is short. Symbols such as #, %, the dollar sign and emoji are not in it, and neither are most accented letters. By default the translator leaves those out and reports how many were dropped. Switch Characters with no code to show a question mark in each gap instead, which makes the missing spots easy to see. The same choice applies when decoding: a group of dots and dashes that matches no character is either skipped or shown as a question mark.

Curly quotation marks and apostrophes from word processors are treated as their straight versions, and a multiplication sign is sent as the letter X.

Limits and common mistakes

  • Missing spaces. The tool cannot guess where one letter ends if the code is pasted as one unbroken run. Put a space after every letter.
  • A real question mark and a placeholder look alike. If your text has its own question marks, prefer the skip setting so the two are not confused.
  • Short messages made of dots and hyphens. A lone hyphen is read as Morse for T in automatic mode. Set the direction by hand when you mean the punctuation itself.
  • Capital letters are not kept. Morse has no upper and lower case, so decoded text comes back in capitals.
  • Sound depends on the browser. Playback uses the browser’s built-in audio. If it is switched off or unsupported, a note appears and the written translation still works. On phones, check that silent mode is off.
  • It does not listen. The tool reads typed dots and dashes. It cannot decode a recording or a flashing light.

Ideas for the classroom

Morse is a friendly way into the idea that information can be carried by just two symbols. Have students encode their names by hand from the chart, swap papers, decode, and then check with the tool. For a listening game, play a short word at 5 words per minute and let the class write down what they hear.

It pairs well with other encoding activities. The binary converter shows how computers use two symbols for numbers, the ASCII converter shows the number behind each character, and the reverse text generator makes a simple secret message to compare against. To time a sending drill, a typing speed test gives students a words-per-minute figure of their own to set beside the Morse speed.

More encoders and converters are in the tech and web tools group, and every category is listed on the free online tools page.

Frequently asked questions

What is SOS in Morse code?

SOS is three dots, three dashes and three dots. Type SOS in the box to see it written out and press Play sound to hear it.

How do I separate letters and words in Morse code?

Put one space between letters and a slash between words. Without the spaces the code cannot be read, because three dots could be one S or three Es.

How long is a dash compared with a dot?

A dash lasts three dots. The gap inside a letter is one dot long, the gap between letters is three and the gap between words is seven.

What does words per minute mean in Morse code?

It is based on the reference word PARIS, which is 50 dot units long including the gap after it. At 20 words per minute one dot lasts 0.06 seconds.

Why did some of my characters disappear?

Morse code only covers letters, digits and a few punctuation marks. Symbols such as # or emoji have no code, so they are skipped or shown as a question mark, depending on the setting you choose.

Why is there no sound when I press play?

Playback uses the audio feature built into the browser. If the device is muted, in silent mode, or the browser does not support it, you will hear nothing, but the written translation is not affected.

Related tools

Browse all free tools →