Morse Code Translator

Translate text to Morse code and back. Listen to the Morse code audio with authentic dot and dash sounds.

6,800 AI Tokens Used
Feb 1, 2026 Created
encoderfun
Categories
· − · − · −
0-----
1.----
2..---
3...--
4....-
5.....
6-....
7--...
8---..
9----.
A.-
B-...
C-.-.
D-..
E.
F..-.
G--.
H....
I..
J.---
K-.-
L.-..
M--
N-.
O---
P.--.
Q--.-
R.-.
S...
T-
U..-
V...-
W.--
X-..-
Y-.--
Z--..
Morse Code Timing

Dot (·): 1 unit  | Dash (−): 3 units  | Letter gap: 3 units  | Word gap: 7 units

All encoding/decoding and audio playback happens locally in your browser.

How This Tool Was Built

This tool was created entirely by AI. Here's the exact prompt used to generate it:

Prompt Used
Create a Morse Code Translator tool with these features:

1. Two modes: Text to Morse, Morse to Text
2. Text to Morse:
   - Text input area
   - Real-time conversion
   - Morse output with dots and dashes
3. Morse to Text:
   - Morse input (. and -, space between letters, / between words)
   - Hint showing input format
4. Audio playback using Web Audio API:
   - Play button to hear the Morse code
   - Stop button
   - Proper timing (dot=1 unit, dash=3 units, gaps)
5. Reference chart showing all letters and numbers
6. Copy and swap buttons
7. Use character mapping object (no external APIs)

Make it fun with cyan as the accent color.
AI
Claude AI Model
#
6,800 Tokens Used
100%
AI-Generated Code Origin