How Was Morse Code Invented? Its History and the Logic of Dots and Dashes
Published
Morse code was developed in the 1830s by Samuel Morse and Alfred Vail for the electric telegraph, and is best known from the first public telegraph message between Washington and Baltimore in 1844. Common letters got the shortest codes, so E is a single dot (1 unit) while Q takes 13 units. Today's International Morse code is a later European revision, and Korean Morse code assigns the same signals to Hangul letters.
Thanks to movie scenes of prisoners tapping on walls and the unforgettable rhythm of SOS, Morse code still feels familiar. How did a system that spells everything with just two signals come about, and why do some letters take so much longer than others? This post walks through how Morse code was created, the logic behind its dots and dashes, and how it was adapted for Korean.
A telegraph invented by a painter
Samuel Morse started out as an American portrait painter. In the 1830s he threw himself into building an electric telegraph, and the machinist Alfred Vail worked with him to refine both the equipment and the code. A single wire could only carry current switched on or off, so letters were built from short pulses (dots) and long pulses (dashes).
In May 1844, a line between Washington and Baltimore carried the Bible verse "What hath God wrought." It is usually described as the first public telegraph message. Telegraph lines soon spread along American railways and, through undersea cables, between continents.
Common letters are short
The cleverest feature of Morse code is that letters differ in length. E, the most common letter in English, is a single dot, and T, the second most common, is a single dash. Rare letters are long: Q is dash dash dot dash, and J is dot dash dash dash. A popular story says Vail estimated letter frequencies by counting type in a printer's type case, though accounts differ on exactly who decided what and how.
Length is measured in units. A dot is 1 unit, a dash is 3, the gap between signals inside a letter is 1, the gap between letters is 3, and the gap between words is 7. By these rules, as computed by the Morse Code Translator, E takes 1 unit, T takes 3 and Q takes 13, so the longest letters are more than ten times the shortest. Giving frequent letters short codes cuts the time it takes to send a sentence. It is the same idea that Huffman coding brought to data compression roughly a century later.
Telegraph speed in words per minute (WPM) also comes from these units. The standard word PARIS takes 43 units including its letter gaps, plus 7 for the word gap, which makes exactly 50. Sending PARIS 20 times a minute is 20 WPM, and at that speed one dot lasts 60 seconds divided by 1,000 units, or 0.06 seconds.
From American to International Morse
The code first used in the United States mixed in pauses of different lengths inside letters, which made it hard to learn. In 1848 Friedrich Gerke in Germany revised it with a single, uniform gap. His version spread across Europe and, through international telegraph conferences, became International Morse code. When people say Morse code today, they almost always mean this version.
Morse survived well into the radio era because an operator only needs to tell a tone from silence, even through heavy noise. The 1906 International Radiotelegraph Convention in Berlin adopted SOS (three dots, three dashes, three dots) as the distress signal. What mattered was not the letters but an unmistakable rhythm, and it is over in 27 units. Ships dropped mandatory Morse for distress calls when satellite-based systems took over in 1999, but it is still used in amateur radio and in aviation navigation beacons.
Korean Morse code
Korean Morse code reuses the dot-and-dash patterns of International Morse and assigns them to Hangul letters (jamo). Syllables are not sent as single symbols; they are broken into jamo, so the word for Morse, 모스, becomes four signals: ㅁ, ㅗ, ㅅ and ㅡ. The shortest codes, a single dot and a single dash, went to the vowels ㅏ and ㅓ.
The table holds only the 14 basic consonants and 12 vowels; everything else is sent in two parts. ㄲ is ㄱ twice, ㅘ is ㅗ then ㅏ, and the double final consonant ㄺ is ㄹ then ㄱ. Since each syllable needs two or three signals, Korean messages tend to run longer than English ones. The two-syllable word 한글 (Hangul) is six jamo and 63 units, and 사랑해 (I love you) is 73 units. Because the same signals also stand for Latin letters, the receiver has to know in advance which alphabet is in use: a single dot is E in English but ㅏ in Korean.
The Morse Code Translator converts English with International Morse and Korean with this jamo table, and can play the result as sound. To tap it out yourself, the Morse Code Keyer turns a short press into a dot and a long press into a dash, and confirms the letter once you pause. At normal speed a dot lasts 0.1 seconds, about 12 words per minute.
Tools in this post
More posts
- Tech JSON vs YAML: What's the Difference and When to Use Each?JSON vs YAML compared side by side: braces and quotes versus indentation, comments, strictness, why APIs use JSON while config files use YAML, and how YAML 1.2 reads almost any JSON.
- Tech How Damaged Can a QR Code Be and Still Scan? Error Correction ExplainedQR code error correction levels L, M, Q and H recover from about 7, 15, 25 and 30% damage. How Reed-Solomon codes make that work, which parts must stay intact, and which level to pick for a logo.
- Tech Is 1 KB 1000 Bytes or 1024 Bytes? KB vs KiB ExplainedWhy 1000-byte KB and 1024-byte KiB coexist, why a 1 TB drive shows up as 931 GB, and how network speeds fit in, worked out with real numbers.