Morse Code Converter

Convert text to and from Morse code, visualize dots and dashes, and even hear the telegraph tone.

Text → Morse
Morse → Text

How the code is structured

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.

Why the code is short for common letters

LetterCodeReason
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.

Where it is still used

Decoding is harder than encoding

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.

Converting speed into actual timing

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.

SpeedDotDashCharacter gapWord gap
5 WPM240 ms720 ms720 ms1,680 ms
10 WPM120 ms360 ms360 ms840 ms
15 WPM80 ms240 ms240 ms560 ms
20 WPM60 ms180 ms180 ms420 ms
25 WPM48 ms144 ms144 ms336 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.

Signals and abbreviations worth memorising

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 -----

Related tools

Base64 encoder ASCII table Roman numerals

FAQ

What do the dot and dash mean in Morse code?
A dot (·) is a short tone and a dash (—) a long one, about 1:3 in duration. This tool separates letters by a space and words by three spaces.
Can Chinese be converted to Morse?
Standard Morse is based on Latin letters and digits. This tool handles letters, digits and common punctuation; for Chinese it prompts you to romanize to pinyin or English first.
Is my data uploaded?
No. All conversion and playback happen locally in your browser; nothing is sent anywhere.