Convert text to and from Morse code, visualize dots and dashes, and even hear the telegraph tone.
Morse encodes each character as a sequence of short and long signals. Three separators make it readable:
So SOS is ... --- ...: three letters, each already a three-symbol group.
| Letter | Code | Reason |
|---|---|---|
| E | . | The most frequent letter in English gets the shortest code |
| T | - | The second most frequent gets the second shortest |
| A | .- | Designed by frequency, not alphabetically |
| O | --- | Long code, less common |
| Q | --.- | One of the longest, being rare |
This was deliberate: the code was designed to shorten messages, which is the same principle behind modern data compression and Huffman coding.
Because there are no gaps between the symbols of one character, decoding needs correct recognition of the pause lengths. A dit is one unit, a dah is three units, the space between symbols within a character is one unit, between characters three, and between words seven. Misjudging a single unit merges two letters into one — which is why automatic decoders struggle with fast or irregular hand-sent Morse.
Morse speed is quoted in words per minute (WPM), where the reference word is PARIS: it occupies exactly 50 dot-units, so the whole minute divides evenly. One dot-unit therefore lasts 1200 / WPM milliseconds, and every other element is a multiple of it — a dash is three dots, the gap inside a character one, between characters three, between words seven.
| Speed | Dot | Dash | Character gap | Word gap |
|---|---|---|---|---|
| 5 WPM | 240 ms | 720 ms | 720 ms | 1,680 ms |
| 10 WPM | 120 ms | 360 ms | 360 ms | 840 ms |
| 15 WPM | 80 ms | 240 ms | 240 ms | 560 ms |
| 20 WPM | 60 ms | 180 ms | 180 ms | 420 ms |
| 25 WPM | 48 ms | 144 ms | 144 ms | 336 ms |
This is the number to use when programming a practice oscillator, a beacon or a script that generates audio: get the dot right and let the multipliers follow. Below roughly 12 WPM operators tend to stretch the gaps rather than the symbols, which is why hand-sent Morse at low speed sounds distinctly uneven.
A handful of short sequences carry meaning without any further message, and they are the first things learned on air:
CQ -.-. --.- calling any station, inviting a reply
SOS ... --- ... international distress, sent as one continuous group
73 --... ...-- best regards, used to close a contact
88 ---.. ---.. love and kisses
QTH --.- - .... my location is
Numbers follow their own pattern rather than an arbitrary table, which makes them easy to recall. Each digit is five symbols long: 1 through 5 begin with dots and add one dash at a time from the end, while 6 through 0 begin with dashes and add one dot.
1 .---- 6 -....
2 ..--- 7 --...
3 ...-- 8 ---..
4 ....- 9 ----.
5 ..... 0 -----