Morse Code Generator

Convert any text to dots and dashes

Ad placeholder (leaderboard)

This tool translates text into International Morse code and back, shows the result as clean dots and dashes, and can beep it aloud through your speakers. It is built for learning the code, sending quick puzzle messages, and practising the rhythm that makes Morse readable by ear.

How it works

Encoding looks up each character in the International Morse table — E is a single dot, T a single dash, S is ..., and so on. Letters are joined with a single space and words are separated by a forward slash so the output is unambiguous. Decoding reverses the lookup: it splits on slashes to recover words, splits each word on spaces to recover letters, and maps every dot-dash group back to its character.

Audio playback uses the Web Audio API and follows standard Morse timing:

  • A dash is three times the length of a dot.
  • Symbols within a letter are separated by one dot length.
  • Letters are separated by three dot lengths and words by seven.

Each tone is a short 600 Hz sine burst with a smooth envelope so it sounds like a real key.

Tips and notes

  • The classic distress signal SOS encodes to ... --- ... — try it to hear the timing.
  • When decoding, mind the spacing: one space between letters, a slash with spaces around it between words.
  • Audio requires a user gesture to start (the Play button), which is why it will not auto-play.
Ad placeholder (rectangle)