Text to Morse · audio · WAV

Morse Code Generator — Convert Text to Morse Code

Type or paste a message and get International Morse code instantly. The generator adds the spaces between letters and the slashes between words, plays the result at your chosen speed, and exports a WAV file when you need one.

Textinput
10 chars

Letters, numbers and punctuation. Case is ignored.

Morse codeoutput
32 marks

Space between letters, / between words. · — _ and newlines are accepted.

10 characters2 words32 marks6.66s at 20 WPM

Ready — edit either panel.

Try

Conversion and audio run in your browser. Nothing is uploaded.

How to generate Morse code

The generator is the text-to-Morse half of the translator. It runs in the same two-panel tool, so you do not have to switch modes or press a convert button.

  1. Type or paste your text. Letters, numbers and common punctuation are supported. The result appears in the right panel as you type.
  2. Check the spacing. The generator puts one space between character codes and a slash between words. A word gap is longer than a letter gap in the audio, so the receiver can hear where one word ends and the next begins.
  3. Listen, copy or download. Press Play to hear the rhythm, Copy Morse to put the code on the clipboard, or WAV to save the audio as a 44.1 kHz, 16-bit mono file.

If you would rather start from a code and turn it into text, use theMorse code decoder. It follows the same spacing rules in reverse.

What the generator accepts

The Latin set covers A–Z, 0–9 and the punctuation that International Morse code defines, including the period, comma, question mark, slash, parentheses, ampersand, colon, semicolon, equals sign, plus sign, hyphen, underscore, quotation mark, dollar sign and at sign. Latin Extended adds accented letters such as É, Ł and Ó.

The character set selector also exposes Cyrillic, Greek, Hebrew, Arabic, Persian, Japanese (Wabun), Korean and Thai. Encoding searches all of these sets, so you can generate a Cyrillic or Greek message without changing a setting. The selector matters most when you decode, where more than one letter can share the same code.

A character that has no code in any set becomes a # in the output. Emoji, currency signs such as € and symbols outside the tables are the usual causes. Replace them with a supported spelling, or set the API's invalid option to an empty string if you are building your own encoder.

Letters, words and the slash

Written Morse needs a separator because the code itself has no fixed length. The usual convention is one space between letters and a slash between words: SOS becomes ... --- ..., andHELLO WORLD becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -...

In the audio, the same boundaries are three units between letters and seven units between words. A dot is one unit and a dash is three. At 20 WPM one unit is 60 milliseconds, so the silence is short but audible. If you paste the output into another tool, keep the spaces and the slash; removing them changes the message.

The generator also accepts three-space word gaps, newlines and the middle-dot/long-dash forms common in printed charts. It normalises them to the standard ., - and / output.

Speed, tone and WAV export

Words per minute, or WPM, controls how fast the code is sent. The slider runs from 5 to 40 WPM and uses the PARIS standard: one unit is 1.2 / WPM seconds. At 20 WPM a dot lasts 60 ms and SOS takes 1.62 seconds. At 12 WPM the same SOS takes 2.7 seconds; at 30 WPM it takes 1.08 seconds.

The tone slider sets the audio frequency from 400 to 1000 Hz, with 600 Hz as the default. The volume slider is independent. The WAV button renders the current message with the same speed, tone and volume, so the file you download sounds like the preview you just heard.

The generator is designed for short messages, callsigns, puzzle clues and practice words. For a long text, the browser still renders the audio locally, but the WAV file can take a moment to build.

Common Morse code examples

TextMorse code
HELLO WORLD.... . .-.. .-.. --- / .-- --- .-. .-.. -..
SOS... --- ...
I LOVE YOU.. / .-.. --- ...- . / -.-- --- ..-
CQ CQ-.-. --.- / -.-. --.-
MAYDAY-- .- -.-- -.. .- -.--

Try one of the example chips under the tool to load a message, then change the speed and listen for the difference between the three-unit letter gaps and the seven-unit word gaps.

Morse code generator FAQ

How do I generate Morse code from text?

Type or paste your text into the left panel. The right panel updates as you type, with one space between letters and a slash between words. You can copy the code, play it, or download a WAV file.

Does the generator support lowercase letters?

Yes. Morse code is not case-sensitive, so HELLO and hello produce the same patterns. The generator shows the uppercase result.

What happens to characters with no Morse code?

They appear as a # marker in the output. Replace the character with a supported spelling, or remove it, then copy the code.

Can I change the speed of the generated audio?

Yes. The speed slider sets words per minute from 5 to 40. The default is 20 WPM; use 12 WPM for learning and 30 WPM for faster practice.

Is the Morse code generator free?

Yes. There is no account, no message limit and no upload. The conversion, audio and WAV export all run in your browser.

Related tools

Morse Code Alphabet

The full chart, with click-to-hear audio and a printable version.

Morse Code Decoder

Translate dots and dashes back to text, and learn why # appears.

SOS in Morse Code

The most famous signal, its 27-unit rhythm and its history.