Morse Code Translator

Translate text and Morse code both ways, with audio playback

What is Morse Code?

Morse code encodes letters, digits and punctuation as sequences of short and long signals: dots (also called “dits”) and dashes (“dahs”). It was developed in the 1830s and 1840s by Samuel Morse and Alfred Vail for the electric telegraph and became one of the earliest forms of digital communication. Each character is a pattern of one to seven signals. The letter A is .-, B is -..., and the distress signal SOS is ...---....

Written Morse uses a period for a dot and a hyphen for a dash. A single space separates letters and a slash separates words: .... . .-.. .-.. --- / .-- --- .-. .-.. -.. reads HELLO WORLD. Because the encoding is variable-length, with the most common English letters (E and T) getting the shortest codes, it is an early example of the same idea used by Huffman coding.

How to Use the Morse Code Translator

  1. Type or paste text or Morse code into the input box.
  2. Press Translate or Ctrl+Enter. The tool detects the direction for you. Input made only of dots, dashes, spaces, / and | is decoded to text, and anything else is encoded to Morse. A note under the buttons says which way it went.
  3. Force a direction with To Morse or To Text if the guess is wrong. A bare ... is decoded as the letter S, for example, but you may have meant three periods.
  4. Press Play to hear the result. Set the speed, Farnsworth spacing and tone pitch in the settings row.
  5. Copy the output with the Copy button or Ctrl+Shift+C, and clear everything with Ctrl+L.

Line breaks are kept in both directions, so a multi-line message keeps its shape. Notes under the buttons list anything that didn’t translate cleanly: skipped characters, letters sent without their accent, prosigns, and unrecognized codes.

Morse Code Alphabet

LetterCodeLetterCodeDigitCode
A.-N-.0-----
B-...O---1.----
C-.-.P.--.2..---
D-..Q--.-3...--
E.R.-.4....-
F..-.S...5.....
G--.T-6-....
H....U..-7--...
I..V...-8---..
J.---W.--9----.
K-.-X-..-
L.-..Y-.--
M--Z--..

Digits follow a simple rule: 1 to 5 start with that many dots, and 6 to 0 start with dashes. That makes them easy to learn and hard to confuse with letters.

Punctuation and Accented Letters

CharacterCodeCharacterCodeCharacterCode
..-.-.-/-..-.@.--.-.
,--..--(-.--.!-.-.--
?..--..)-.--.-&.-...
'.----.:---...;-.-.-.
".-..-.=-...-_..--.-
--....-+.-.-.$...-..-
É..-..Ä.-.-Ñ--.--
À.--.-Ö---.Ü..--

The current standard, ITU-R M.1677-1, defines the letters, digits, É and the punctuation in the first two columns, plus @, which was added in 2004. !, &, ;, _, $ and the other accented letters are common extensions used by radio amateurs and other countries’ telegraph codes, and most decoders understand them.

Prosigns: SOS, AR, SK and Friends

A prosign (procedural sign) is a group of letters sent as one character, with no letter gap between them. They control the flow of a conversation rather than carry text. In writing they are shown with angle brackets or an overbar.

ProsignCodeMeaning
<SOS>...---...Distress signal
<AR>.-.-.End of message (same code as +)
<SK>...-.-End of contact
<BT>-...-Break, new paragraph (same code as =)
<KN>-.--.Go ahead, named station only (same code as ()
<AS>.-...Wait (same code as &)
<KA>-.-.-Start of message
<SN>...-.Understood (also written VE)
<HH>........Error, eight dots

SOS is the best-known example. It isn’t the letters S, O and S with gaps between them. It is one unbroken nine-signal pattern, chosen at the 1906 Berlin Radiotelegraph Convention because it is easy to send and hard to mistake. “Save Our Souls” is a backronym added later. To encode a prosign here, type it in angle brackets, such as <SOS> or <AR>. The plain word SOS is encoded as three separate letters.

Morse Code Timing, WPM and Farnsworth Spacing

Spoken or radio Morse is defined by timing, not symbols. Everything is measured in units:

  • A dot is 1 unit and a dash is 3 units.
  • The gap between signals inside a letter is 1 unit.
  • The gap between letters is 3 units, and the gap between words is 7 units.

Speed is quoted in words per minute (WPM) using the standard word PARIS, which is exactly 50 units long including its word gap. One unit therefore lasts 1.2 / WPM seconds: 60 ms at 20 WPM and 100 ms at 12 WPM. The Speed setting uses this formula.

Farnsworth timing sends each letter at full character speed but stretches the gaps between letters and words, so the overall (effective) speed is lower. Learners hear each letter as a fixed rhythm instead of counting dots, which prevents a plateau around 10 WPM. To use it, set Speed to 18–20 WPM and Farnsworth to your comfortable speed, such as 8 or 10. The player follows the ARRL Farnsworth formula, which spreads the extra delay over letter and word gaps in a 3:7 ratio. The Koch method pairs well with it: start with two letters at full speed, and add one more each time you reach 90% copy accuracy.

Word Separators and Pasting Morse from Other Sites

Different translators, books and puzzles write word gaps differently. This decoder accepts all the common styles:

  • Slash — ... --- ... / .... . .-.. .--. is the most common style. Spaces around the slash are optional, and a trailing / (which many translators append) is ignored instead of producing a stray character.
  • Vertical bar — | between words.
  • Three or more spaces — the written equivalent of the 7-unit gap.
  • New line — each line is decoded separately and line breaks are kept.

Typographic symbols are normalized first. Middle dots ·, bullets • and the katakana middle dot become dots. The minus sign −, en dash –, em dash —, hyphen variants and underscores become dashes, and an ellipsis … becomes three dots.

Common Errors When Decoding Morse

  • Missing letter spaces. Without a space, .- + ... becomes .-..., which decodes as &. A run like .-.-.-.- matches nothing and is shown as [.-.-.-.-]. Unrecognized codes are always shown in square brackets, never as ?, because ? is itself the code ..--...
  • O versus 0. O is three dashes and zero is five. Count carefully when transcribing by ear.
  • Autocorrect damage. Word processors may turn -- into an em dash and ... into an ellipsis. Both are repaired automatically here, but other tools may reject them.
  • Mixed input. If the input contains letters as well as dots and dashes, Translate treats it as text and encodes everything, including the dots. Remove the stray text or press To Text.
  • Unsupported characters. Morse has no code for €, ©, emoji or most symbols. They are skipped and listed in the note, so you know exactly what was left out.

International vs American Morse

The code Samuel Morse and Alfred Vail first used is now called American Morse. It had spaces inside some letters (C was .. .) and three dash lengths. In 1848 Friedrich Gerke simplified it into the code that became International Morse. It was adopted across German and Austrian telegraph lines in 1851 and standardized at the 1865 International Telegraph Conference in Paris. American Morse survived on US railroad and landline telegraphs well into the 20th century, but radio used International Morse from the start. This translator uses International Morse only.

Where Morse Code Is Still Used

Ships stopped relying on Morse in 1999, when the GMDSS satellite and digital system replaced it. Since 2007, the US no longer requires a Morse test for an amateur radio licence. Morse (often called CW, for continuous wave) is still popular with radio amateurs. A Morse signal is very narrow and can be copied by ear through noise that would drown out a voice. Aviation navigation beacons (VOR and NDB) identify themselves with two- or three-letter Morse idents that pilots check by ear. Morse is also an accessibility method: one switch, a puff of breath or an eye blink is enough to type, and phone keyboards such as Gboard offer a Morse input mode. Puzzle hunts, escape rooms and CTF challenges still hide clues in dots and dashes, which is why this tool decodes the messy formats people actually paste.

Radio operators also use short codes such as CQ (-.-. --.-), a general call to any station, 73 (--... ...--), meaning best regards, and Q codes like QTH (location) and QRS (please send more slowly).

Frequently Asked Questions

How do I translate Morse code to text?

Paste the Morse code and press Translate (Ctrl+Enter). The tool sees that the input contains only dots, dashes and separators and decodes it. Put a space between letters and a slash between words, for example .... .. / - .... . .-. . for HI THERE. A vertical bar, three or more spaces, or a new line also separate words, and a trailing slash is ignored.

Why does my decoded text contain codes in square brackets?

A code in brackets, such as [.-.-.-.-], matches no known character. Usually two letters have been run together because a space is missing: .-... is the single character &, while .- ... is A S. Add the missing space and translate again. Brackets are used because a question mark is itself a Morse character (..--..), so a plain ? would hide the error.

Can I paste Morse code that uses · or − instead of dots and dashes?

Yes. Wikipedia and many documents write Morse with the middle dot (·), bullet (•), minus sign (−), en dash or em dash, and word processors turn three periods into an ellipsis (…). The translator converts all of these to plain dots and dashes before decoding.

Which characters does the translator support?

Letters A-Z, digits 0-9, the ITU punctuation set (. , ? ' / ( ) : = + - " @), the accented É from the ITU standard, and the widely used extras ! & ; _ $ À Ä Ç È Ñ Ö Ü. Other accented letters are sent without their accent and listed in a note. Characters with no Morse code, such as € or emoji, are skipped and also listed, so nothing disappears silently.

How do I write a prosign like SOS, AR or SK?

Wrap the letters in angle brackets: <SOS>, <AR>, <SK>, <BT>. A prosign is sent as one run-together code with no letter gaps, so <SOS> becomes ...---... while the plain word SOS becomes ... --- ... with gaps. When decoding, ...---... comes back as <SOS>.

Can I hear the Morse code?

Press Play to hear the input as a sine tone generated in your browser with the Web Audio API. Speed sets the character speed in words per minute, Farnsworth lowers the overall speed by stretching only the gaps, and Tone sets the pitch. Press Stop to end playback early.

What is the difference between International and American Morse code?

International Morse is the version used today by radio amateurs, aviation beacons and this translator. American Morse is the older landline telegraph code, which uses spaces inside some letters and dashes of different lengths. It is not compatible: C in American Morse is two dots, a space and a dot, but in International Morse it is -.-.

Is my text sent to a server?

No. Translation and audio both run entirely in your browser with JavaScript. Nothing you type is uploaded, logged or stored on a server. The last input is saved only in your own browser's local storage so it is still there when you come back.