Morse Code Translator with Audio Playback
Convert text to Morse code and back with audio playback. Hear the dots and dashes played through your speakers as you type.
Runs in your browser. No data leaves your device.
About this tool
Translates text to International Morse code and back, and plays the code as audio tones. Playback can optionally include a synchronized screen flash and phone vibration. Use it to learn Morse, encode short messages or hear what a signal sounds like.
Features
- Encode letters A-Z, digits 0-9 and punctuation . , ? ' ! / ( ) & : ; = + - _ " $ @
- Encoded output separates letters with spaces and words with " / "; spaces and line breaks both become word gaps, and accents are dropped (E with acute -> E)
- Decode Morse written with . and -, spaces between letters and / (or | or a line break) between words; middle dots, bullets and Unicode dashes are accepted; unknown codes become ?
- Audio playback with the Web Audio API: 600 Hz tone, 80 ms dots and 240 ms dashes (about 15 WPM), standard gaps (1 unit inside a letter, 3 between letters, 7 between words), with short fades so tones do not click
- Play button becomes Stop during playback; Stop silences the audio immediately
- Optional Screen Flash (strobe) synchronized with dots and dashes, behind a photosensitive epilepsy warning
- Optional Vibration synchronized with the signal, shown only on devices that support navigator.vibrate (e.g. Android Chrome)
- Quick examples: SOS, HELLO and CQ CQ CQ
- Copy and pipeline buttons on the output
How to use it
- Choose Text -> Morse or Morse -> Text.
- Type a message or Morse code (or click a quick example).
- Copy the output, or click Play Audio to hear it.
- Optionally enable Screen Flash or Vibration before playing.
Inputs
- Text, or Morse code using . - spaces and /
Outputs
- Morse code or decoded text (uppercase), plus audio playback
Limits and notes
- Characters with no Morse code (e.g. # or emoji) are left out; the page lists them under the output.
- Speed and pitch are fixed; there are no WPM or frequency controls.
- Audio cannot be downloaded or exported.
- Once you accept the epilepsy warning, that is remembered in localStorage (overtooled:morse-code:epilepsy-acknowledged); text is not saved and nothing is uploaded.
- Vibration does not work on iOS Safari.
Keyboard shortcuts
- Escape: close the strobe epilepsy warning without enabling it
Frequently Asked Questions
How does the Morse Code Translator work?
Each letter and number is mapped to its International Morse Code sequence (dots and dashes) via a lookup table. Encoding iterates through each character, looks up the Morse pattern, and joins them with spaces (letters) and slashes (words). Decoding reverses the lookup. Audio playback creates short and long Web Audio API oscillator tones for dots and dashes with timed silences between elements.
Can I hear the Morse code?
Yes. Click Play Audio to hear the code as a 600 Hz tone, with 80 ms dots and 240 ms dashes (about 15 words per minute). Gaps follow the standard (3 units between letters, 7 between words), and speed and pitch are fixed. You can also turn on a synchronized screen flash or, on supported phones, vibration.
Can I translate Morse code back to text?
Yes. The tool works in both directions. Paste Morse code using dots (.) and dashes (-) with spaces between letters and the tool converts it back to readable text.
What characters are supported?
All 26 letters (A-Z), digits (0-9), and common punctuation marks. The tool uses the International Morse Code standard used worldwide in amateur radio and emergency signaling.