Skip to content
SmaftyTools

Morse Code Translator

Translate text to Morse code or decode Morse back to text, with audio playback of the dots and dashes. Free online Morse code translator.

About Morse Code Translator

The Morse Code Translator converts plain text into Morse code, and decodes Morse code back into readable text, in both directions from a single input box — with a Play as Audio button that reproduces the actual dots and dashes as timed beeps using the Web Audio API. It covers the full Latin alphabet, digits and the common punctuation marks defined in the international Morse code standard.

It's used for learning and practicing Morse code (hearing the rhythm of dots and dashes reinforces the pattern far better than reading it as text alone), decoding a Morse message from a puzzle, escape room, or amateur radio context, and for the simple novelty of encoding a short phrase or name into Morse for a tattoo, engraving, or bit of trivia. Letters are separated by a single space in the Morse output, and words are separated by a forward slash surrounded by spaces, matching the conventional written notation for Morse code.

The audio playback follows the standard Morse timing ratios: a dash lasts three times as long as a dot, the gap between dots and dashes within a letter is one unit, the gap between letters is three units, and the gap between words is seven units — all scaled from a base unit duration, so the rhythm sounds authentic rather than just beeping through the symbols at a flat pace. Playback is generated live with an oscillator tone, so no audio files are downloaded or played from a server.

When decoding, unrecognized Morse sequences are simply skipped in the output, and when encoding, characters with no defined Morse equivalent are dropped rather than breaking the whole conversion. This keeps the tool forgiving of minor formatting inconsistencies in pasted Morse (extra spaces are trimmed automatically) while still producing a clean, correct result for well-formed input. Everything, including audio generation, runs entirely in your browser.

How to Use the Morse Code Translator

  1. Choose a direction: Text → Morse or Morse → Text.
  2. Type or paste your text (or Morse code, dots and dashes separated by spaces, words separated by /).
  3. Read the converted result, or click Play as Audio to hear it.

Features

  • Bidirectional: text to Morse and Morse back to text
  • Full Latin alphabet, digits and common punctuation
  • Audio playback with authentic Morse timing ratios
  • Forgiving of extra whitespace in pasted Morse input

Examples

Encoding a distress signal

Input

SOS

Output

... --- ...

Decoding a short message

Input

.... . .-.. .--.

Output

HELP

Encoding a two-word phrase

Input

HI THERE

Output

.... .. / - .... . .-. .

Frequently Asked Questions

How are letters and words separated in Morse output?

Individual dots and dashes for one letter are grouped together with no space; letters are separated by a single space; words are separated by a forward slash surrounded by spaces (' / '), matching standard written Morse notation.

Does the audio playback sound like real Morse code?

Yes — it follows the standard timing ratios (a dash is three times the length of a dot, with proportionally longer gaps between letters and words), generated live as an audio tone rather than played from a pre-recorded file.

What happens if I paste Morse code with a typo or extra spaces?

Extra whitespace is trimmed automatically. An unrecognized dot/dash sequence is simply skipped in the decoded output rather than stopping the whole conversion or throwing an error.

Is the Morse code translator free?

Yes, the Morse code translator is completely free with no usage limits. No signup, no account and no installation required.

Is my data safe?

Yes. All processing happens locally in your browser using JavaScript — nothing you type is uploaded or stored on our servers.