Morse Code Converter

Convert text to Morse code and back, with audio playback and adjustable speed.

runs locally on your browser. Your data never leaves your device.
Speed: 15 WPM

Format: .- -... / -.-., with letters separated by spaces and words by /

Morse Code Reference (A–Z, 0–9)
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--..

Common Use Cases

Translate a short message to Morse and play it back to practise recognising the codes by ear
Decode a Morse-encoded string found in a CTF (Capture The Flag) security challenge
Learn or teach the Morse alphabet using the interactive reference table
Verify the correct Morse encoding of a callsign or distress signal for amateur radio study

About Morse Code Converter

International Morse code was developed in the 1830s by Samuel Morse and Alfred Vail for use with the electric telegraph, one of the first long-distance communication systems. Each letter and digit is represented by a sequence of short signals (dots) and long signals (dashes). The timing ratios are standardised: a dot is 1 unit, a dash is 3 units, the gap between symbols within a letter is 1 unit, between letters is 3 units, and between words is 7 units. At 20 words per minute (WPM), one unit is approximately 60 milliseconds.

The encoding scheme that survives today is ITU-R Recommendation M.1677-1, which covers all 26 Latin letters, digits 0–9, and common punctuation. The format used by this converter separates letter symbols with spaces and words with a forward slash surrounded by spaces (e.g. `.... . .-.. .-.. --- / .-- --- .-. .-.. -..` for "HELLO WORLD").

Morse code remains operationally relevant in several fields. Amateur (ham) radio operators are tested on Morse proficiency in many countries. International aviation uses Non-Directional Beacon (NDB) identifiers broadcast in Morse. The maritime SOS distress signal, `... --- ...`, is defined in Morse. Military and special operations units use it as a fallback when voice communications are compromised.

The audio playback feature here implements correct ITU timing: the WPM slider adjusts the unit duration, and each beep uses a smooth envelope (brief fade in/out) to reduce the harsh clicking you'd hear with abrupt square waves. This makes it practical for learning and practising Morse recognition by ear.

Frequently Asked Questions

How does this converter handle characters that have no Morse equivalent?
Standard Morse code only covers the 26 letters A–Z and digits 0–9. Characters that fall outside this set, such as punctuation, accented letters, and symbols, are silently dropped when converting text to Morse. If you need to encode punctuation, standard Morse does define codes for . , ? ' ! / ( ) & : ; = + - _ " $ @, but they are not included in this tool's current reference table.
What is WPM and how does it affect the audio?
WPM stands for words per minute, measured using the standard word 'PARIS' (which takes exactly 50 units to transmit). At 20 WPM, one unit is 60ms (1200ms ÷ 20). At 5 WPM, one unit is 240ms, noticeably slower and easier for beginners. At 40 WPM, one unit is 30ms, which is very fast and requires significant practice to follow by ear. The slider adjusts the unit duration proportionally.
What are valid characters in the Morse input field?
The Morse input field accepts only dots (.), dashes (-), forward slashes (/), and spaces. A forward slash surrounded by spaces ( / ) is the word separator. Any other character, such as letters, numbers typed directly, or commas, will trigger a validation error. If you want to type actual text, use the left panel and let the converter produce the Morse automatically.
Why does the audio use a sine wave at 650 Hz?
650 Hz sits in the range most commonly used for Morse code tone generators (600–800 Hz), which human hearing resolves most clearly for tonal discrimination. A sine wave is used rather than a square wave because sine waves have no harmonic content above the fundamental frequency, which avoids the harsh clicking artefacts and buzzing you'd hear with a square wave tone.
What is the SOS signal in Morse code?
SOS is ... --- ..., three dots, three dashes, three dots, sent as a continuous sequence without letter spacing. Contrary to popular belief, 'SOS' was chosen because it's easy to send and recognise, not because it stands for 'Save Our Souls' or 'Save Our Ship'. The ITU Morse distress signal on the international distress frequency (500 kHz for ships, 156.8 MHz for VHF maritime) is still legally defined in Morse code.