The Morse code converter translates plain text to Morse code and Morse code back to text, automatically detecting which direction based on your input. It also generates a downloadable WAV audio file at standard timing, exports a PNG image, and includes a complete international reference table. Custom dot, dash, and separator characters are supported.
Encoding Examples
Encoding HELLO WORLD:
···· · ·-·· ·-·· --- ·-- --- ·-· ·-·· -··
The classic distress signal SOS:
··· --- ···
Decoding — paste ·-· --- -·· · and it decodes to CODE.
How Auto-Detection Works
The tool checks whether the input consists entirely of dots, dashes, and spaces. If it does, it decodes from Morse; otherwise it encodes to Morse. Mixed input — text that contains both letters and Morse-like characters — may not be identified correctly. Keep encode and decode passes separate for reliable results.
Audio File Timing
The WAV file is generated at 44100 Hz sample rate with standard Morse proportions: one dot lasts 0.12 seconds, a dash is 3 units (0.36 s), intra-letter gaps are 1 unit, inter-letter gaps are 3 units, and word gaps are 7 units. The tone frequency is 600 Hz. The file can be played in the browser or downloaded for offline use.
Comparison Mode vs. Plain Mode
In comparison mode each character is shown above its Morse encoding — like phonetic annotation — useful for visual learning or creating teaching handouts. Exporting the PNG in comparison mode preserves this paired layout at 2× pixel ratio, staying sharp on high-density screens.
Custom Symbols
What you can change
- Short character: default
·, can be. - Long character: default
-, can be—,=, or_ - Letter separator: default space
- Word separator: default 7 spaces
Custom symbol caveats
- Audio generation attempts to parse custom symbols
- If the symbols can't be mapped to standard dots and dashes, audio generation fails
- Test with a short string after changing symbols