Morse Code Translator

Translate text to Morse code and back, then play it aloud as beeps at the speed you choose — right in your browser.

🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.

The Morse Code Translator converts plain text into Morse code and decodes Morse back into readable text. Type a message and get the classic dots and dashes — letters separated by spaces, words by a / — or paste Morse and read it back as text. Switch direction with one button, and copy or download the result. It covers the full alphabet, digits 0–9 and common punctuation.

You can also hear it. Press Play and the tool sounds the code out as beeps using the Web Audio API — no sound file needed — with a speed control in words per minute so you can slow it down to learn the rhythm or speed it up once it clicks. The dot, dash and gap timing follows the standard ratios (a dash is three dots long, with proper spacing between letters and words), so it sounds like real Morse.

It's built for learning Morse, decoding a message someone sent you, adding a hidden layer to a puzzle or escape room, or just having fun with a classic code. Unrecognised characters are flagged rather than silently dropped, so you always know what happened to your input. Everything runs in your browser — nothing you type is uploaded.

How to use

  1. Choose a direction: “Text → Morse” to encode, or “Morse → Text” to decode.
  2. Type or paste your text or Morse code — use spaces between letters and / between words when decoding.
  3. Read the result and copy or download it.
  4. Press “Play sound” to hear the code as beeps, and drag the WPM slider to change the speed.
  5. Use Swap to flip the input and output and translate the other way.

Examples

Encode a word
“SOS” becomes “... --- ...”, the internationally recognised distress signal.
Encode a sentence
“Hello World” becomes “.... . .-.. .-.. --- / .-- --- .-. .-.. -..”, with the slash marking the word break.
Decode a message
Paste “.-- .... .- - / .... .- - .... / --. --- -..” to read the message back as text.
Hear the rhythm
Press Play at a low WPM to learn how each letter sounds, then raise the speed as you get comfortable.

Frequently asked questions

How is the Morse code formatted?
Symbols within a letter have no space (E is “.”, A is “.-”), letters are separated by a single space, and words are separated by a space-slash-space ( / ). This is the most common, unambiguous text convention, and it's what the decoder expects.
Can it decode Morse back into text?
Yes. Switch to “Morse → Text”, paste the code with spaces between letters and / (or a larger gap) between words, and it converts back to readable text. Symbols it doesn't recognise are marked so you can spot input errors.
What does the sound feature do?
It plays the code aloud as tones using your browser's Web Audio API — no audio file is downloaded. The dot, dash and gap lengths follow the standard Morse ratios, and the WPM slider sets the speed, so it's great for learning by ear.
Which characters are supported?
The full A–Z alphabet, digits 0–9, and common punctuation such as . , ? ! / ( ) & : ; = + - _ " $ and @. Letter case doesn't matter — Morse has no upper or lower case. Characters with no Morse equivalent are skipped and counted.
Why do I need to press Play for sound?
Browsers only allow audio to start after you interact with the page, so the first tone plays when you click Play. After that you can replay at any speed.
Is my message private?
Yes. All translation and sound generation happen in your browser, so nothing you type is uploaded or stored anywhere.