History
The Complete Morse Code History: Who Invented It, Why, and What Happened Next
Last updated: June 2026
Every “dit” and “dah” you've ever heard traces back to one 40-mile wire strung between Washington and Baltimore in 1844. What started as a numbers-only telegraph code for looking up words in a book turned into the alphabet that ran the world's news, war rooms, and shipping lanes for the next 160 years.
Here's the full story: who actually built it, why it had to exist, the first words ever sent, and how a 19th-century workaround for “we have electricity but no telephone yet” outlived two world wars and the telephone itself.
Quick answer
Morse code was invented between 1837 and 1844 by the American painter-turned-inventor Samuel Morse, working with physicist Joseph Henry and mechanical engineer Alfred Vail. Morse built the telegraph and conceived a numbers-only code; Vail redesigned it into the dot-and-dash alphabet the world actually used, basing letter lengths on how often each letter appears in English. The code was created to solve one specific problem: sending full sentences over an electric wire using nothing but pulses of current and silence. The version used internationally today is a later 1848 simplification by German engineer Friedrich Gerke, standardized in Paris in 1865.
The origin of Morse code: why it started
The origin of Morse code starts with a hardware problem. By the 1830s, several inventors in Europe and America had figured out how to send an electric current down a wire and use it to deflect a magnetic needle on the other end. That part worked. The real question was what to do with it.
A needle twitching left or right doesn't spell out words on its own. Early systems like William Cooke and Charles Wheatstone's telegraph (patented in Britain in June 1837, and demonstrated on the London and Birmingham Railway as the first commercial telegraph) used multiple needles and multiple wires to spell out letters directly, which worked but needed expensive, complicated equipment. Carl Friedrich Gauss and Wilhelm Weber had a single-wire system in Germany as early as 1833, and Carl August von Steinheil built another in 1837. Each used its own code, and none of them were built for speed.
So why did Morse code start where the others didn't? Samuel Morse, an American portrait painter, had been chasing a single-wire, single-needle telegraph since the early 1830s, working alongside Princeton physicist Joseph Henry (whose electromagnet research made a strong, long-distance signal possible) and a young mechanical engineer named Alfred Vail. Their system reduced the problem to its simplest possible form: one wire, one electromagnet, and a single moving part. That simplicity is what made a new code necessary in the first place. A system with only “on” and “off” needed a way to turn those two states into actual words, and that gap is where Morse code was born.
Who invented Morse code? Samuel Morse, Alfred Vail, and Joseph Henry
Here's the direct answer: Morse code was invented by Samuel Morse, with the working alphabet built out by Alfred Vail, on top of electromagnet research from physicist Joseph Henry. Morse's name is on the patent and the system. The actual code, the part where each letter gets its own pattern of dots and dashes, was Vail's work.
Morse's first version, sketched out around 1837, wasn't an alphabet at all. It only handled numbers. The plan was to send a string of digits, then look up the matching word in a numbered dictionary. That's a workable idea for short, formal messages. It's a terrible idea for an actual conversation.
In 1838, Vail rebuilt it. He needed to know which English letters showed up most often, so he walked over to the type case of a local Morristown, New Jersey newspaper and counted the physical lead letters sitting in the drawers. Printers kept more copies of common letters on hand, so the type case worked as a rough frequency count. Vail assigned the shortest signals (a single dot) to the most common letters and saved the longer sequences for rare ones. That's why E, the most frequent letter in English, is just one dot, and Q, J, and Z all take four signal elements.
That 1838 design, refined and put into public use in 1844, became known as American Morse Code, or Railroad Morse. It's the version that ran US and Canadian land-line telegraphy into the 1970s.
Who is the real inventor of Morse code?
If you're asking who deserves credit, the honest answer is two names, not one. Morse owned the patent, financed the project, lobbied Congress for the money to build the line, and became the public face of the telegraph. Vail built the alphabet, designed the sending key, and improved the receiving mechanism, and historians at the Smithsonian and the Franklin Institute have argued for over a century that the dot-and-dash system itself was substantially his work, not Morse's.
Vail never fought publicly for the credit while he was alive. His son did, starting a decades-long campaign after Vail's 1859 death to get the alphabet renamed. It never stuck. The patent had Morse's name on it, and patents are what history remembers. Joseph Henry's contribution gets a similar squeeze: his high-intensity electromagnet research is what made a workable long-distance signal possible at all, and Vail's own 1845 book on the telegraph barely mentioned him.
The fairest summary: Morse invented the telegraph system and the original numeral code. Vail invented the practical alphabet that made the system usable. Henry supplied the physics that made the signal travel far enough to matter. “Morse code” is really shorthand for all three.
How was Morse code invented? From a numbered dictionary to an alphabet
How was Morse code invented, mechanically? Morse's original telegraph receiver dragged a strip of paper tape through a clockwork mechanism at a steady speed. When current flowed, an electromagnet pulled a lever that pressed a stylus into the moving tape, leaving an indentation. When the current cut off, a spring pulled the stylus back, leaving the tape blank. A short pulse left a short dent. A long pulse left a long one. Those two shapes are the entire technical basis of the dot and the dash.
The alphabet got built around that hardware constraint. Vail's 1838 redesign assigned each letter a unique sequence of short and long pulses, with the most common letters getting the shortest sequences, to keep the average message as fast to send as possible. Once it worked on paper tape, telegraph operators noticed something the inventors hadn't planned for: the receiving armature made an audible click every time it moved. Skilled operators learned they could just listen to the clicks and write the message down by ear, skipping the paper tape entirely. That accidental shortcut is the reason Morse code became a sound-based language rather than a printed one, and it's the same skill ham radio operators still use today.
Why was Morse code invented (and why was it created)?
Why was Morse code invented comes down to one constraint: the telegraph could only do two things, send current or not send current. There was no way to transmit a voice, a written letter shape, or anything more complex than “on” and “off.” If you wanted to move an actual sentence down that wire, you needed a translation system between human language and electrical pulses. That's the entire reason the code had to exist.
Why was Morse code created in the specific shape it took, rather than some other code, is a separate and more interesting question, and the answer is speed. Vail didn't just need any code that mapped letters to symbols. He needed one that could be sent and received as fast as a human hand and ear could manage. Weighting the code by letter frequency, so E and T get one signal element and Q and Z get four, shaved real time off every message sent on the line. That single design choice is why Morse code outcompeted every other 19th-century signaling code and is still the fastest manual text encoding most people will ever learn.
The first Morse code message: “What hath God wrought”
The first Morse code message went out on May 24, 1844, sent by Samuel Morse from a committee room in the US Capitol to Alfred Vail, waiting at the Baltimore and Ohio Railroad's Pratt Street station in Baltimore, 40 miles away. Congress had put up $30,000 the year before to build the line.
The text was “What hath God wrought,” a line from the Bible, Numbers 23:23. Morse had promised Annie Ellsworth, the teenage daughter of his friend and ally Patent Commissioner Henry Ellsworth, that she could choose the first message. She picked the verse with her mother's help. Vail received it in Baltimore and immediately sent it back to confirm. The original paper tape from that transmission is preserved at the Library of Congress.
That single message is also where Morse code's story ends, 155 years later, almost to the word. The final US commercial Morse transmission, on July 12, 1999, signed off with the same line: “What hath God wrought,” followed by the prosign SK, the standard signal for “end of contact.”
The complete Morse code timeline (1794 to today)
Use the interactive timeline below for the visual version. The quick-reference table that follows is also available for no-JS environments and AI crawlers.
Chappe's semaphore network
Claude Chappe's optical semaphore network goes live in France, the first practical long-distance signaling system, using relay towers instead of electricity.
Orsted discovers electromagnetism
Hans Christian Orsted discovers electromagnetism.
Sturgeon invents the electromagnet
William Sturgeon invents the electromagnet.
Gauss and Weber's telegraph
Carl Friedrich Gauss and Wilhelm Weber build a working telegraph in Germany.
Cooke and Wheatstone patent
William Cooke and Charles Wheatstone patent an electrical telegraph in Britain, the first commercial telegraph system.
Morse, Henry, and Vail begin building
Samuel Morse, Joseph Henry, and Alfred Vail begin developing an American electrical telegraph; Morse's first code is numbers-only.
Vail rebuilds the code around letters
Vail redesigns the code as a letter-based alphabet, weighted by English letter frequency.
First message: "What hath God wrought"
First public long-distance Morse message, "What hath God wrought," sent from Washington, DC to Baltimore.
American Morse Code is born
Vail's code becomes known as American Morse Code, or Railroad Morse.
Gerke's Hamburg alphabet
Friedrich Gerke simplifies the code into the Hamburg alphabet, using only two signal lengths.
Germany and Austria adopt Gerke
Germany and Austria officially adopt Gerke's code.
International Morse Code standardized
The International Telegraphy Congress in Paris standardizes International Morse Code; only E, H, K, and N keep their original 1838 patterns.
Morse goes wireless
Morse code becomes the standard for early radio communication, years before voice transmission is possible.
World War I
Zeppelins and military aircraft use Morse for bombing runs and naval scouting.
Lindbergh crosses the Atlantic
Charles Lindbergh crosses the Atlantic with no radio of any kind.
Southern Cross crosses the Pacific
The Southern Cross crosses the Pacific (California to Australia) with an onboard radio operator sending Morse the entire way.
World War II
Encrypted Morse carries ship-to-shore and ship-to-ship traffic; fast-moving land armies rely on radiotelegraphy because field wire can't keep pace with tanks.
French Navy signs off
The French Navy sends its final Morse message and retires the code.
Final US commercial Morse transmission
Final US commercial Morse transmission, signing off with Morse's original 1844 message.
Retired as global maritime distress standard
Morse code is dropped as the international maritime distress standard, replaced by GMDSS.
FCC drops Morse from US ham licensing
The US FCC eliminates all Morse code requirements for amateur radio licenses.
Still on air
Amateur radio's CW operators keep Morse active worldwide; the US Air Force and Australia's Defence Force still train small numbers of operators.
Quick-reference table
| Year | Event |
|---|---|
1794 | Claude Chappe's optical semaphore network goes live in France, the first practical long-distance signaling system, using relay towers instead of electricity |
1820 | Hans Christian Orsted discovers electromagnetism |
1824 | William Sturgeon invents the electromagnet |
1833 | Carl Friedrich Gauss and Wilhelm Weber build a working telegraph in Germany |
June 1837 | William Cooke and Charles Wheatstone patent an electrical telegraph in Britain, the first commercial telegraph system |
1837 | Carl August von Steinheil builds a separate telegraph system in Germany |
1837 | Samuel Morse, Joseph Henry, and Alfred Vail begin developing an American electrical telegraph; Morse's first code is numbers-only |
1838 | Vail redesigns the code as a letter-based alphabet, weighted by English letter frequency |
May 24, 1844 | First public long-distance Morse message, "What hath God wrought," sent from Washington, DC to Baltimore |
1844 onward | Vail's code becomes known as American Morse Code, or Railroad Morse |
1848 | Friedrich Gerke simplifies the code into the "Hamburg alphabet," using only two signal lengths |
1851 | Germany and Austria officially adopt Gerke's code |
1865 | The International Telegraphy Congress in Paris standardizes International Morse Code; only E, H, K, and N keep their original 1838 patterns |
1890s | Morse code becomes the standard for early radio communication, years before voice transmission is possible |
1910 | The US Navy tests sending Morse from an airplane; Morse on the airship America helps coordinate a mid-air rescue |
1914-1918 | World War I: Zeppelins and military aircraft use Morse for bombing runs and naval scouting |
1927 | Charles Lindbergh crosses the Atlantic with no radio of any kind |
1928 | The Southern Cross crosses the Pacific (California to Australia) with an onboard radio operator sending Morse the entire way |
1939-1945 | World War II: encrypted Morse carries ship-to-shore and ship-to-ship traffic; fast-moving land armies rely on radiotelegraphy because field wire can't keep pace with tanks |
July 1939 | Theodore McElroy sets the still-standing manual copying record of 75.2 words per minute |
1997 | The French Navy sends its final Morse message and retires the code |
July 12, 1999 | Final US commercial Morse transmission, signing off with Morse's original 1844 message |
1999 | Morse code is dropped as the international maritime distress standard, replaced by GMDSS |
2003 | The ITU's World Radiocommunication Conference makes Morse proficiency optional for amateur radio licensing worldwide |
Feb 23, 2007 | The US FCC eliminates all Morse code requirements for amateur radio licenses |
Today | Amateur radio's CW operators keep Morse active worldwide; the US Air Force and Australia's Defence Force still train small numbers of operators |
American Morse code vs. International Morse code
“American Morse code” refers specifically to Alfred Vail's original 1838-1844 alphabet, the version used on US and Canadian railroads and land lines, not the version most people learn today. The version taught in ham radio classes and used worldwide is International Morse Code, a 1865 standard built on a German revision of Vail's original work.
| American Morse (Railroad Morse) | International Morse | |
|---|---|---|
| Built by | Alfred Vail, 1838-1844 | Friedrich Gerke (1848), standardized at Paris, 1865 |
| Signal lengths | 4: dot, short dash, long dash, extra-long dash | 2: dot and dash only |
| Inside letters | Some letters (C, O, R, Y, Z, &) have a pause built into the middle of the letter itself | Every letter is one unbroken signal |
| Used for | US and Canadian railroad and land-line telegraphy | Radio, maritime communication, and almost everywhere outside North American land lines |
| Status today | Retired; survives only in historical re-enactments | Active; the standard for amateur radio CW worldwide |
| Codes shared | E, H, K, N | Same 4 letters |
Bottom line: if you're learning Morse code today for radio, for fun, or for an assistive-technology use case, you're learning International Morse, not American Morse. The two systems share a few letters and a name, but they're not interchangeable. For a deeper side-by-side breakdown, see our International vs. American Morse code comparison.
Why was Morse code used in WW2?
Why was Morse code used in WW2 instead of voice radio, which already existed by 1939? Three reasons, and none of them are nostalgia.
Range and reliability. Shipboard voice radio in the 1930s and 40s had limited range and was easy to jam or drown out in noise. Morse's on-off signal punches through static and weak signal conditions far better than a voice transmission does, which is still true on amateur radio bands today.
Security. Long-range ship-to-ship and ship-to-shore traffic between naval bases and warships went out as encrypted Morse, not voice, because the voice radio systems of the era weren't secure enough for military use. Long-range patrol aircraft scouting for enemy ships used the same encrypted Morse traffic to report back.
Speed of advance. Fast-moving land campaigns couldn't wait for wired telegraph and telephone lines to catch up with the front. This was the deciding factor in the German Wehrmacht's blitzkrieg through Poland, Belgium, and France in 1940, and later in Allied advances through North Africa, Italy, and into Germany in 1944 and 1945. Radiotelegraphy could move with the tanks. Field wire crews couldn't.
Morse code in aviation
Morse code in aviation started slowly. There was no standard radio system on the most famous flight of the era: Charles Lindbergh crossed the Atlantic alone in 1927 with zero radio equipment of any kind, no Morse, no voice, nothing. The following year, the Southern Cross crossed the Pacific from California to Australia with a dedicated radio operator on board, sending Morse to ground stations the entire way.
By the 1930s, both civilian and military pilots were required to know Morse code, partly for communication and partly to identify navigation beacons, which transmitted a continuous two- to three-letter Morse identifier so pilots could confirm they were tuned to the right station. Aeronautical charts still print these identifiers next to each beacon's location. Today, pilots in the US don't need to know Morse by ear; the dot-dash pattern for each beacon is printed directly on the chart, and many modern receivers decode the identifier automatically.
The decline (and surprising survival) of Morse code
Morse code's retirement didn't happen all at once. The French Navy stopped using it on January 31, 1997, sending a final message that read: “Calling all. This is our last call before our eternal silence.” The US Coast Guard followed by ending all radio monitoring of Morse frequencies, including the international 500 kHz distress frequency. The biggest blow came in 1999, when the Global Maritime Distress and Safety System (GMDSS) officially replaced Morse as the international standard for ships in distress, ending 155 years of “SOS” as the universal call for help on the high seas. The final US commercial Morse transmission went out on July 12, 1999.
And yet it never actually disappeared. The FCC still issues commercial radiotelegraph operator licenses to anyone who passes the code test. The CW Operators' Club organizes amateur radio operators worldwide who use Morse as their primary mode. As of the end of 2025, roughly 700 of Australia's 12,000 licensed amateur radio operators knew Morse, with around 300 using it regularly, and the Royal Australian Navy still considers it essential for close-quarters ship-to-ship work where staying off the radio entirely matters. The US Air Force was training around 10 people a year in Morse as of 2015, and Australia's Defence Force was still teaching it as of the end of 2025.
Morse also found a second career as assistive technology. Android has supported Morse code as a text input method since version 5.0. People with severe motor disabilities can send Morse using a single switch or a sip-and-puff tube, since unlike scanning-based input methods, it doesn't require looking at a screen once it's memorized. In 1966, prisoner of war Jeremiah Denton, paraded on television by his captors, blinked the word “TORTURE” in Morse code on camera, and the interpreters watching caught every letter.
How Morse code works: a 60-second primer
International Morse code runs on five timing units, all measured relative to one base unit called a “dit”:
- Dot (dit): one unit of sound
- Dash (dah): three units of sound
- Gap inside a letter: one unit of silence, between each dot or dash in the same character
- Gap between letters: three units of silence
- Gap between words: seven units of silence
E (one dot) is the shortest letter because it's the most common letter in English. Q, J, X, and Z take four signal elements each because they're rare. Speed gets measured in words per minute, using a standard reference word (usually “PARIS”) to make different operators' speeds comparable. Competitive copying records sit around 75 words per minute by ear, with a handful of operators historically claiming speeds north of 100.
Use our interactive Morse code translator and CW practice trainer to hear this in action rather than just read about it.
Frequently asked questions
Who invented Morse code?
Morse code was invented by Samuel Morse, working with physicist Joseph Henry and mechanical engineer Alfred Vail, between 1837 and 1844. Morse built the telegraph system and the original numbers-only code; Vail redesigned it into the letter-based alphabet that became the working version of Morse code.
Who was Morse code invented by?
The Morse code was invented by Samuel Morse together with Alfred Vail and Joseph Henry. Morse gets the public credit and the patent. Vail built the actual dot-and-dash alphabet, basing it on English letter frequency. Henry's electromagnet research made the long-distance signal possible in the first place.
Why was Morse code invented?
Morse code was invented because the electrical telegraph could only send two states, current on or current off, with no way to transmit voice or handwriting. A translation system was needed to turn ordinary language into a sequence of those two states, and that system is Morse code.
Why was Morse code created?
Morse code was created specifically to make telegraph messages fast to send and receive by hand. Alfred Vail weighted the code by how often each letter appears in English, giving common letters like E and T the shortest signals, so an average message would take the least possible time to transmit.
Why was Morse code used in WW2?
Morse code was used heavily in WW2 because it traveled farther and more reliably through noise and jamming than voice radio could, it allowed encrypted long-range communication between ships and naval bases, and it let radio operators keep pace with fast-moving armored advances when telegraph and telephone wire crews couldn't lay lines fast enough.
Why did Morse code start?
Morse code started because several inventors in the 1830s had built working single-wire electric telegraphs but had no efficient way to send full sentences over them. Samuel Morse, Joseph Henry, and Alfred Vail solved that problem between 1837 and 1844, and their solution became the first widely used version of Morse code.
How was Morse code invented?
Morse code was invented in two stages. Morse's original 1837 telegraph used current pulses to indent a moving paper tape, with short and long indentations as the only two signal types available. Vail then built an alphabet on top of that hardware in 1838, assigning dot-and-dash sequences to the most common English letters after counting movable type in a local newspaper's type case to estimate letter frequency.
Who is the real inventor of Morse code?
Historians generally credit Alfred Vail as the real inventor of the practical Morse code alphabet, even though the system carries Samuel Morse's name. Morse owned the patent and built the telegraph itself. Vail designed the actual dot-and-dash letter system, weighted by letter frequency, that the world came to know as "Morse code."
What was the first Morse code message?
The first Morse code message was "What hath God wrought," sent by Samuel Morse from the US Capitol to Alfred Vail in Baltimore on May 24, 1844. The line came from the Bible, Numbers 23:23, chosen by Annie Ellsworth, daughter of a friend of Morse's, who had been promised the right to pick the first message.
What is the origin of Morse code?
The origin of Morse code goes back to the limitations of the earliest electrical telegraphs, which could only send current pulses with no way to represent letters or words. Samuel Morse, Joseph Henry, and Alfred Vail developed a system of dots and dashes between 1837 and 1844 to solve this exact problem and built the first practical version of what we call Morse code.
What is American Morse code?
American Morse code, also known as Railroad Morse, is Alfred Vail's original 1838-1844 version of the code. It was used for US and Canadian railroad and land-line telegraphy until the 1970s. It used four different signal lengths and built pauses into some letters, unlike the simpler two-signal International Morse code which is used worldwide today.
Is Morse code still used today?
Yes. Morse code is not required for amateur radio licensing or maritime distress signaling, but it's still actively used by amateur radio operators worldwide in a mode called CW, by a small number of military training programs, including the US Air Force and Australia's Defence Force, and as an assistive communication tool for people with motor or speech disabilities. And of course, we are using it because we love morse code. Ain't that right?
Sources and further reading
Hear Morse code in action
Every signal on this page can be played out loud. Open the translator, type any phrase from the 1844 first message to today, and press Play.