Morse Code Translator & Converter
: Translate text to Morse code and Morse code back to text, play the dots and dashes as sound at your speed and pitch, download the WAV, and look up any character in the Morse alphabet chartOptions
Morse Code Translator & Converter
A Morse code translator and converter that works both ways: text to Morse code, and Morse code to text. It plays the dots and dashes as sound at the speed and pitch you set, saves that sound as a WAV file, and shows the Morse code alphabet as a searchable chart when the box is empty. It uses International (ITU) Morse and runs in your browser.
How to translate text to Morse code and back
- Type or paste into
Text or Morse, or load a.txtfile. TheExamplesgiveSOS, a text sentence and a line of Morse. With the box empty, the result is the Morse code chart. - Leave
DirectiononDetect, or chooseText to MorseorMorse to text. Detect reads the input as Morse when it holds only dots, dashes, separators and white space, and as text otherwise. - Read the result under
Translation: the Morse code or the text, then aLetter by lettertable andNotes.Swapturns the result into the input and flips the direction. - In
Sound, play the signal or download it as a WAV. SetSpeed (WPM)andTone (Hz)first; the sound follows them.Spacing speed (WPM)adds Farnsworth gaps. - Under
Options,Dots and dashesandWord separatorchange how Morse is written, andDecode aspicks Latin, Cyrillic or Greek for Morse to text.
Example
Two words as text to Morse code: each letter is one group of dots and dashes, groups are split by a space and the two words by " / ". Pasting the result back in gives HELLO WORLD. At 20 WPM the signal is 32 elements and 111 units long.
HELLO WORLD.... . .-.. .-.. --- / .-- --- .-. .-.. -..Details
- What is SOS in Morse code?
... --- ...: three dots, three dashes, three dots. Typed as plain text,SOSis three letters and comes out with a gap between each, as above. SOS as a prosign is sent as one run with no letter gaps,...---..., and you get it by typing<SOS>. Morse to text reads...---...back as<SOS>. - Timing. A dot is 1 unit, a dash 3, the gap inside a letter 1, the gap between letters 3 and the gap between words 7. Speed is in words per minute by the PARIS standard: the word PARIS with the gap after it is 50 units, so a dot lasts 1.2 / WPM seconds. At 20 WPM that is 60 ms, and PARIS takes 2.58 s without the final gap.
Speed (WPM)goes from 5 to 60. - Farnsworth spacing keeps the letters fast and stretches the gaps. Give
Spacing speed (WPM)a number below the speed and the gaps are computed as for that slower speed with the ARRL formula. At 20 WPM spaced as 10 WPM a dot is still 60 ms, but the gap between letters is 654 ms and between words 1525 ms. The box refuses a spacing speed above the speed, and the notes under the result show the figures. - Morse code audio. The WAV is 16-bit mono at 8,000 samples a second, a sine tone from 300 to 1200 Hz (600 by default) with 5 ms soft edges so each element starts and ends without a click, and silence for the gaps. The Sound block gives the length at your settings, for example 2.58 s for PARIS at 20 WPM.
- Morse to text. Dots may be
.·•*∙or⋅, and…counts as three dots. Dashes may be-_−–—‐‑‒or―, one dash each; a long dash—next to plain hyphens is read as two, because that is how a phone writes--. Letters are split by white space. Words are split by/, by|or by three or more spaces, so the seven spaces some tools write work too. Line breaks are kept. The result is in capitals. - A sequence that is no letter shows as
�and is named in the notes with its line and column, for example .-.-.-- (line 1, column 9). Typed the other way, a character with no Morse code is left out of the Morse and named, never dropped silently. A letter with an accent but no code of its own is sent as its base letter and the notes say so (Á → A). Eight dots or more are the error signal, shown as<HH>. - Text to Morse covers A to Z, 0 to 9, the ITU punctuation (. , : ? ' - / ( ) " = + @), the common extra signs (! & ; _ $), accented Latin letters, Russian Cyrillic and Greek. Text to Morse picks the script for each character itself; Morse to text reads one script at a time, set by
Decode as, since the same code means different letters in each. Punctuation uses the ITU codes in every script. The chart lists 155 codes and its search takes a character (A,7,?), a prosign such as<SOS>, or a sound such asdah dit. - Prosigns are letters sent run together. Type one in angle brackets, such as
<AR>(end of message) or<SK>(end of contact), to send it without letter gaps; the chart lists the nine it knows. Going back, a code that is also a punctuation mark reads as the mark:.-.-.comes out as+, and...-.-as<SK>. The letters CH, sent as----in German, Czech and Polish, read asCH. Dots and dashesshows Morse with a full stop and a hyphen, which every tool reads, or with a middle dot and a minus sign, which is easier to read.Word separatorwrites the break between words as/,|or three spaces. Both change only how it is shown; the sound is the same.- The Letter by letter table lists each letter in order for up to 1,000 letters. A longer text is listed as each letter used, once, with how many times. A very long input is read in steps with progress, so the page stays usable.
Limits
- Text Morse only. It does not decode Morse from audio, from a light or from a picture: the input is characters you type or paste, not a microphone, a camera or a file of sound. The WAV goes one way, from your text to sound.
- International (ITU) Morse. American Morse, the older code with different letters, is not supported. Japanese Wabun, Arabic, Hebrew and other scripts are not in the tables.
- Sound is made for signals up to 60 minutes at your settings, about what a browser tab can hold as a WAV. A longer signal is still translated in full; only the sound is not made, and the note says how long it would have been.
- A phone's smart punctuation can turn two typed hyphens into one long dash character. When the Morse holds long dashes beside plain hyphens, each long dash is read as two dashes and a note says so, so
---typed on a phone still reads as O. Morse made only of long dashes is read one dash each, so M typed alone as--on such a phone arrives as one long dash and reads as T. Turn smart punctuation off if a message decodes wrongly. - The tables follow the ITU recommendation and the usual national tables, not every variant. Some signs have more than one use, and the page picks one reading when it decodes (
+for.-.-.).
FAQ
What is SOS in Morse code?
... --- ... when the three letters S, O, S are sent with letter gaps. As the SOS prosign it is sent as one run, ...---..., with no gaps. Type SOS or <SOS> to get each.
How do I write the Morse code alphabet?
Clear the input and the chart lists all 155 codes: letters, numbers, punctuation, prosigns, accented letters, Cyrillic and Greek, with how each sounds (A is dit dah). Type a letter into the chart's search to find it. Or type the alphabet as text and read the letter-by-letter table.
How do I separate letters and words in Morse code?
Put one space between letters and / between words, as in .... . .-.. .-.. --- / .-- --- .-. .-.. -... Morse to text also takes | or three or more spaces as a word break. In sound, a letter gap is 3 units and a word gap is 7.
Can I download Morse code audio?
Yes. The Sound block makes a WAV from the translation at your Speed (WPM), Spacing speed (WPM) and Tone (Hz), up to 60 minutes long. It plays the same signal in the page.
Can it decode Morse code from audio or a flashing light?
No. It is a text converter: it reads dots and dashes you type or paste. It cannot listen to a recording, watch a lamp or read a picture of Morse. It can make audio, but not read it.
Runs entirely in your browser. Nothing is uploaded.