Skip to content
QueenNexa

Free tool

Morse Code Translator

Translate text to Morse code and Morse to text, play it as sound at an adjustable speed, or show it as a flashing light. Runs in your browser.

Direction

Play the code

Your browser starts audio only after you press Play. Check your device volume first.

Code table used by this tool

Letters

  • A.-
  • B-...
  • C-.-.
  • D-..
  • E.
  • F..-.
  • G--.
  • H....
  • I..
  • J.---
  • K-.-
  • L.-..
  • M--
  • N-.
  • O---
  • P.--.
  • Q--.-
  • R.-.
  • S...
  • T-
  • U..-
  • V...-
  • W.--
  • X-..-
  • Y-.--
  • Z--..

Digits

  • 0-----
  • 1.----
  • 2..---
  • 3...--
  • 4....-
  • 5.....
  • 6-....
  • 7--...
  • 8---..
  • 9----.

Punctuation

  • ..-.-.-
  • ,--..--
  • ?..--..
  • '.----.
  • /-..-.
  • (-.--.
  • )-.--.-
  • :---...
  • =-...-
  • +.-.-.
  • --....-
  • ".-..-.
  • @.--.-.

Runs entirely in your browser. Nothing you type or upload is sent to our servers.

How to use the Morse code translator

  1. Choose a direction, then type or paste into the top box. The result appears below as you type.
  2. Press Copy result to take the output, or Swap direction to feed the output back in as input.
  3. Press Play to hear the code, and tick Flash to see it as light. Lower the speed to follow along.

How the translation and timing work

Each character is looked up in the code table above. A letter is its dots and dashes, a space separates letters, and a slash separates words. For audio, every dot is one unit of time, a dash is three, and silence between signals is one, three or seven units depending on whether it falls inside a letter, between letters or between words. The unit length is 1.2 ÷ words per minute seconds.

Worked example 1: SOS at 20 words per minute

  1. S is three dots: 1 + 1 + 1 plus two gaps of 1 = 5 units. O is three dashes: 3 + 3 + 3 plus two gaps of 1 = 11 units.
  2. Letters in SOS: 5 + 11 + 5 = 21 units, plus two letter gaps of 3 = 6, so 27 units.
  3. A unit at 20 words per minute is 1.2 ÷ 20 = 0.06 seconds, so SOS lasts 27 × 0.06 = 1.62 seconds.

Worked example 2: decoding a short word

  1. Given -.-. .- -, split on spaces into three letters: -.-. , .- and -.
  2. -.-. is C, .- is A and - is T.
  3. The word is CAT. Written back out, C A T = -.-. .- -.

Limits and notes

  • The letters, digits and punctuation on this page use the codes in Recommendation ITU-R M.1677-1, International Morse code (10/2009). We checked every one against section 1.1 of that document. The tool leaves out the recommendation's procedural signals, such as the error and wait signals, and does not cover other alphabets or accented letters.
  • Timing follows the same document: a dash equals three dots, the space inside a letter is one dot, the space between letters is three dots and the space between words is seven dots.
  • Characters outside the table are skipped when encoding and shown as a question mark when decoding.
  • Playback timing comes from your browser clock. It is accurate enough for listening, not for professional signaling.
  • Flashing light can bother some people. The flash stays off unless you turn it on.

Related tools

Other ways to encode text: the Binary to Text converter shows the same message as eight-digit bytes. The Word and Character Counter tells you how long the message is, and the Text Compare tool shows exactly where a decoded message differs from the original.

Frequently asked questions

How do I translate text to Morse code?

Type your message in the box with the direction set to text to Morse. Each letter or digit becomes a pattern of dots and dashes, letters are separated by a space, and words are separated by a slash. For example, SOS becomes ... --- ... and Hello World becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -.. as you type.

How do I decode Morse code to text?

Switch the direction to Morse to text and type dots and dashes. Put one space between letters, and separate words with a slash or at least three spaces. The tool also accepts the middle dot for a dot and the en dash, em dash or minus sign for a dash, so pasted text from other sources works. A pattern that is not in the table shows as a question mark.

How fast is the audio playback?

You choose the speed in words per minute, from 5 to 40. The tool times everything from a dot length of 1.2 ÷ speed seconds, so at 20 words per minute a dot lasts 0.06 seconds. A dash is three dots, the gap between signals within a letter is one dot, between letters three dots and between words seven dots. Slower speeds are easier for learning.

Can I see Morse code as a flashing light?

Yes. Turn on the flash option and a panel on the page lights up for each dot and dash while the sound plays, or on its own with the sound off. Flashing can bother some people, so it is off until you switch it on, and you can stop playback at any time with the Stop button. Start at a slow speed if you are not sure.

What characters are supported?

The 26 letters of the English alphabet, the digits 0 to 9, and a short set of punctuation marks: period, comma, question mark, apostrophe, slash, parentheses, colon, equals, plus, hyphen, quotation mark and at sign. Lowercase is treated as uppercase. Accented letters and other characters have no code in this table, so they are skipped and listed under the result.

How are spaces and word breaks handled?

In this tool a space is not a code. It is a pause, shown as a slash between words in the written form and as seven dot lengths of silence in the audio. When you paste Morse that uses a different word separator, replace it with a slash or three spaces so the decoder can see where the word breaks fall.

Is my text stored or sent anywhere?

No. The translation and the sound are produced in your browser, and nothing you type is uploaded or saved. Analytics record only that the tool was used, never your text.

Link to this tool

Found it useful? Copy a link for your page, newsletter or documentation.

Get new tools and guides by email

Optional. The tool above works without signing up.

One email every Tuesday. Free, and you can unsubscribe in one click.

More free tools

Browse all developer tools or the full list of free tools.