Skip to main content
1

Morse Code Converter

Convert text to Morse code and back, then play the result as audio beeps with adjustable speed from 5 to 25 WPM.

import TextLineTool from "./_TextLineTool.astro"
Send output to:
Advertisement

How to use Morse Code Converter

  1. Paste or type your text into the input box.
  2. Select direction: Text to Morse or Morse to Text.
  3. Click Convert to see the result, then click Play Audio to hear the Morse code.

What is Morse Code Converter?

Morse code is a method of encoding text as sequences of dots (short signals) and dashes (long signals), invented by Samuel Morse in the 1830s. Each letter, digit, and punctuation mark has a unique pattern. Words are separated by forward slashes (/) in written Morse.

This tool converts text to Morse code and back using a complete character map. You can also play the Morse code as audio beeps using the Web Audio API — no files to download. Adjust the playback speed with the WPM selector to practice at your own pace.

Advertisement

FAQ

What does WPM mean?
WPM stands for Words Per Minute. It controls how fast the Morse code audio plays. At 5 WPM, each unit (one dit length) is 240ms. At 25 WPM, each unit is only 48ms. The "Paris" standard defines one word as 50 units.
How does the audio playback work?
The tool uses the Web Audio API to generate a 700 Hz sine wave. Dits play for 1 unit, dahs play for 3 units, with standardized gaps between symbols, characters, and words. All audio is synthesized in your browser — no files are downloaded.
Can I convert Morse code back to text?
Yes — switch the direction to "Morse to Text" and paste Morse code using dots (.), dashes (-), spaces between letters, and forward slashes (/) between words. The tool decodes it back to plain text.
Advertisement