📡 Morse Code Encoder

Encode and decode Morse code. Convert text to dots and dashes, play audio with adjustable WPM speed and frequency.

About Morse Code

Morse code is a method of transmitting text as sequences of dots (·) and dashes (—). Developed in the 1830s by Samuel Morse and Alfred Vail, it was the primary form of long-distance communication for over a century. This tool encodes and decodes the International Morse Code (ITU) standard and can play the audio using the Web Audio API. Everything runs in your browser — nothing is uploaded.

How it works

  • Encode — Each letter and digit is replaced by its Morse sequence. Letters are separated by a single space, words by /. Unknown characters are skipped.
  • Decode — The input is split on spaces and slashes; each Morse token is looked up and converted back to a character.
  • Audio — A sine wave at the chosen frequency is turned on and off following the standard timing: a dot is 1 unit, a dash is 3 units, intra-letter gap is 1 unit, inter-letter gap is 3 units, and word gap is 7 units. One unit equals 1.2 / WPM seconds (PARIS standard).
  • Supported characters: A-Z, 0-9, and common punctuation (. , ? ' ! / ( ) & : ; = + - _ " $ @).

Use cases

  • Learning and practicing Morse code for amateur radio.
  • Encoding hidden messages in puzzles, geocaches, or games.
  • Generating audio beeps for accessibility or signaling.
  • Exploring one of the earliest digital communication systems.

Frequently asked questions

What WPM should I use? 15-20 WPM is standard for learning. Amateur radio tests typically require 5-20 WPM; expert operators exceed 40 WPM.

Why does audio use a sine wave? A pure sine wave is the classic Morse practice tone and is easy on the ears. Adjust the frequency to your preference.

Can I decode Morse with slashes between words? Yes. The decoder accepts both / and multiple spaces as word separators.

Does this tool upload my text? No. All encoding, decoding, and audio playback happens locally in your browser.