All tools

Morse Code Translator

Text ↔ Morse code, with sound

Translate text to Morse code and back, play it as audio or light at your chosen speed, and learn the alphabet.

How to use Morse Code Translator

  1. Type text in the Text box to see International Morse in the Morse box, or paste dots and dashes into the Morse box to decode them.
  2. Choose how words are separated: three spaces, or a slash (/). Letters are always separated by one space.
  3. Set the speed (5–40 WPM), an optional slower Farnsworth overall speed, and the tone pitch, then press Play. Press Stop at any time.
  4. Tick Flash the light to see a lamp light up with each tone. Use the reference table for letters, digits, punctuation and prosigns.

How it works

Text is upper-cased, accents are stripped (é becomes E) and each character is looked up in the ITU International Morse table: A–Z, 0–9 and common punctuation. Prosigns are typed in angle brackets, such as <SOS>, <AR> or <SK>, and sent as one unbroken character. Decoding is tolerant: dots and dashes written as ·, •, – or — are accepted, words may be separated by /, |, a new line or three or more spaces, and a group that is not valid Morse shows as �.

Playback uses the Web Audio API: one sine oscillator is scheduled ahead of time with short fades to avoid clicks. Timing follows the PARIS standard, where a dit lasts 1200 ÷ WPM milliseconds, a dah is three dits, and gaps are one, three and seven units. With Farnsworth spacing, the characters keep their speed while the letter and word gaps are stretched so the overall speed matches the slower setting. Everything runs locally.

Limits

  • Only the International Morse set is supported; there are no Cyrillic, Arabic, Japanese or other national alphabets, and unsupported characters are skipped and listed.
  • The shared patterns for + and <AR>, = and <BT>, and ( and <KN> decode as the punctuation character.
  • Playback is limited to 2000 Morse characters. Audio may need a click first, because browsers block sound until you interact with the page.
  • The light flash is timed with a timer, so it can drift a few milliseconds from the audio, and it is switched off when your system asks to reduce motion (a static “Playing…” indicator is shown instead).

Privacy

Translation and playback happen entirely in your browser; nothing is sent to a server and no sound is recorded. Copy share link puts your text or Morse and the separator in the link’s # fragment, which browsers don’t send to servers.

Frequently asked questions

What is Farnsworth timing?

Letters are sent at full speed but with longer pauses between letters and words. It helps learners recognise each character as a sound pattern while still practising at a slow overall speed.

Why do I need three spaces between words?

One space separates letters, so a longer gap is needed for words. You can switch to the slash separator, which is easier to read and survives copy and paste.

How do I send SOS as a single signal?

Type <SOS>. It is sent as ...---... with no gaps between the letters, unlike S O S.

Why does the speed say WPM?

Words per minute is measured with the word PARIS, which is 50 timing units long. At 20 WPM a dit lasts 60 ms.

More tools