Morse Code Generator
Convert text to Morse code or decode Morse back to text. Play it as sound or flash it as light.
ResultAbout the Morse Code Generator
Converts plain text into International Morse Code — sequences of dots (dits) and dashes (dahs) — and often decodes Morse back into text, with audio playback so you can hear the signal.
How to use
- Type or paste your text (letters A–Z, digits 0–9, and common punctuation) into the input box.
- The tool converts each character instantly — letters are separated by a space and words by a `/` (for example, HELLO WORLD becomes `.... . .-.. .-.. --- / .-- --- .-. .-.. -..`).
- Press Play to hear the code as audio tones, then copy the result.
Key features
- Follows the International Morse Code standard (ITU-R M.1677): a dash is three times as long as a dot, and Morse has no separate upper/lower case.
- Many tools offer audio playback with adjustable speed (words per minute) and tone, plus a character-by-character breakdown table for learning.
Frequently asked questions
SOS — `... --- ...` — the international distress signal.
Many tools are bidirectional: paste dots and dashes (letters separated by spaces, words by `/`) to get plain text back (unverified for this specific tool).
In browser-based tools the conversion and audio run locally with JavaScript and nothing is sent to a server (unverified for this specific tool).
Table of Contents
A Morse code generator converts text into Morse code, a system that writes letters, numbers and punctuation as short signals (dots) and long signals (dashes). Type a message above and it turns into dots and dashes instantly. You can also paste Morse code to decode it, play it as sound, flash it as light, or download it as a WAV audio file.
What Is a Morse Code Generator?
Morse code was designed for sending messages over telegraph wires, and it works with any on and off signal such as sound, light or radio. A Morse code generator does the translation for you, so you do not have to look up every letter in a chart. This tool works in both directions, so it also works as a Morse code translator and decoder.
How to Use This Morse Code Generator
- Choose Text to Morse to encode, or Morse to Text to decode.
- Type or paste your message. The result updates as you type.
- Press Play sound to hear it. Change the speed (WPM) and pitch (Hz) to suit you.
- Use Copy result or Download WAV to save it, or Swap to reverse the direction.
Features
- Real-time conversion in both directions
- Audio playback with adjustable speed (5 to 30 WPM) and pitch (400 to 1000 Hz)
- Flashing light that follows the signal while the sound plays
- Download the Morse code as a WAV audio file
- Letters, numbers and common punctuation
- Pasted Morse with special dot and dash characters is cleaned up automatically
- Free, no signup, and your text stays in your browser
Morse Code Alphabet Chart
| Letter | Morse | Letter | Morse |
|---|---|---|---|
| A | .- | N | -. |
| B | -... | O | --- |
| C | -.-. | P | .--. |
| D | -.. | Q | --.- |
| E | . | R | .-. |
| F | ..-. | S | ... |
| G | --. | T | - |
| H | .... | U | ..- |
| I | .. | V | ...- |
| J | .--- | W | .-- |
| K | -.- | X | -..- |
| L | .-.. | Y | -.-- |
| M | -- | Z | --.. |
Morse Code Numbers
| Number | Morse | Number | Morse |
|---|---|---|---|
| 0 | ----- | 5 | ..... |
| 1 | .---- | 6 | -.... |
| 2 | ..--- | 7 | --... |
| 3 | ...-- | 8 | ---.. |
| 4 | ....- | 9 | ----. |
Morse Code Punctuation
| Symbol | Morse | Symbol | Morse |
|---|---|---|---|
| . | .-.-.- | : | ---... |
| , | --..-- | ; | -.-.-. |
| ? | ..--.. | = | -...- |
| ' | .----. | + | .-.-. |
| ! | -.-.-- | - | -....- |
| / | -..-. | _ | ..--.- |
| ( | -.--. | " | .-..-. |
| ) | -.--.- | $ | ...-..- |
| & | .-... | @ | .--.-. |
How Morse Code Timing Works
Morse code is built on one basic unit of time, the length of a dot. Everything else is a multiple of it:
| Element | Length |
|---|---|
| Dot (dit) | 1 unit |
| Dash (dah) | 3 units |
| Gap between dots and dashes in a letter | 1 unit |
| Gap between letters | 3 units |
| Gap between words | 7 units |
Speed is measured in words per minute (WPM), based on the word PARIS. At 15 WPM one unit lasts 1.2 ÷ 15 = 0.08 seconds, and at 20 WPM it lasts 0.06 seconds. This generator uses the same timing when it plays your message.
Morse Code Examples
| Text | Morse code |
|---|---|
| SOS | ... --- ... |
| Hello | .... . .-.. .-.. --- |
| I love you | .. / .-.. --- ...- . / -.-- --- ..- |
| Hello World | .... . .-.. .-.. --- / .-- --- .-. .-.. -.. |
| Good morning | --. --- --- -.. / -- --- .-. -. .. -. --. |
A Short History of Morse Code
Samuel Morse and Alfred Vail developed Morse code for the electric telegraph in the 1830s and 1840s. The first public telegraph message was sent between Washington, D.C. and Baltimore in 1844. The International Morse Code used today evolved from that early American version, and the distress signal SOS became a standard in the early 1900s.
Where Morse Code Is Still Used
- Amateur radio: many operators still send Morse code, often called CW.
- Aviation: some navigation beacons identify themselves with a short Morse code signal.
- Learning and fun: scouts, puzzle makers, escape rooms and STEM classes use it.
- Accessibility: some devices and keyboards offer Morse input for people who cannot use a standard keyboard.
Tips for Learning Morse Code
- Learn the sound of each letter, not the picture of dots and dashes. Use the Play button and listen.
- Start with a slow speed, then raise the WPM as you get comfortable.
- Practice a little every day. Ten to fifteen minutes works better than one long session.
- Try decoding short words you already know, such as SOS, then move to sentences.
Why Is My Morse Code Not Converting?
- Use only dots (.) and dashes (-). Other symbols are not recognised.
- Separate letters with one space and words with a slash (/) or three spaces.
- Characters that Morse code does not cover, such as accented letters and emoji, are skipped.
Related Tools
If you work with codes and encodings, these tools may also help: Binary to Text Converter, Text to ASCII converter, Decimal to Binary and Hex converter, Base64 encoder and decoder and Unicode Text Generator.
Frequently Asked Questions
How do I convert text to Morse code?
Type your message in the box with Text to Morse selected. Each letter becomes dots and dashes, letters are separated by a space, and words are separated by a slash.
How do you write SOS in Morse code?
SOS is ... --- ... (three dots, three dashes, three dots). It does not stand for any words. It is simply a pattern that is easy to recognize.
What is Hello in Morse code?
Hello is .... . .-.. .-.. --- in Morse code.
How do I translate Morse code to text?
Switch to Morse to Text, then paste your dots and dashes. Separate letters with one space and words with a slash or three spaces.
What does the slash mean in Morse code?
The slash marks the gap between words. In audio Morse the same gap is a pause of seven units.
Is Morse code case sensitive?
No. Capital and lowercase letters have the same Morse code.
Can I hear or download the Morse code?
Yes. Press Play sound to hear it, change the speed in WPM and the pitch in Hz, or download the audio as a WAV file.
Is this Morse code generator free and private?
Yes. It is free, needs no signup, and the conversion runs in your browser, so your text is not sent to a server.
Final Thoughts
Whether you want to learn Morse code, send a hidden message or make an audio clip, this Morse code generator gives you the dots, dashes and sound in one place. Type your message, press play, and share it.
