Morse code was developed in the United States in the late 1830s for the electric telegraph, by Samuel Morse, Alfred Vail and Leonard Gale. The first long-distance message, "What hath God wrought", was sent on 24 May 1844. The International Morse code used today was standardised in Paris in 1865, and Morse stopped being the maritime distress standard in 1999.

Morse code timeline
| Year | What happened |
|---|---|
| About 1837 | Samuel Morse's first code sends numbers that stand for words in a codebook |
| About 1840 | Alfred Vail expands it into a code for letters and characters |
| 24 May 1844 | "What hath God wrought" is sent from Washington, D.C., to Baltimore |
| 1848 | Friedrich Gerke's simpler "Hamburg alphabet" is first used in Germany |
| 17 May 1865 | The International Telegraph Convention standardises International Morse code in Paris |
| 3 November 1906 | The Berlin convention adopts SOS as the worldwide distress signal; it comes into force on 1 July 1908 |
| 2006 | Western Union ends its telegram service |
| 1999 | Satellite-based GMDSS replaces Morse code for maritime distress |
| 2003 and 2007 | The ITU makes Morse proficiency optional for amateur licences, and the US FCC drops its test |
Who invented Morse code?
The telegraph years
Morse code was developed in the United States in the late 1830s for the electric telegraph. Samuel Morse, a painter turned inventor, worked on the telegraph with the chemistry professor Leonard Gale and the machinist Alfred Vail. Read more about him on the Samuel Morse page. Morse's first code, around 1837, sent numbers that stood for words in a codebook. Vail expanded it into a code for individual letters and characters around 1840.
The first message
On 24 May 1844, Morse sent the message "What hath God wrought" over a telegraph line from Washington, D.C., to Baltimore, opening the first long-distance telegraph line in the United States.
The end of Morse code at sea
For most of the 20th century, ships kept radio operators listening for Morse code distress calls. The Global Maritime Distress and Safety System (GMDSS), using satellites and automated alerts, replaced Morse code for maritime distress in 1999.
Radio operators shorten their messages with abbreviations and Q-codes such as CQ and 73. They are explained in Morse code abbreviations and Q-codes.
Teaching a child? The Morse code for kids page has simple games and a word list.
Read more
- The inventor's life: Samuel Morse and Alfred Vail
- The code he and Gerke created: American vs International Morse code
- Where it is still used: Is Morse code still used?
- A famous distress call: SOS in Morse code
Cables, ships and wars
Morse code travelled further than the first telegraph lines. The first transatlantic telegraph cable was laid in 1858 and worked only briefly; a lasting cable followed in 1866. On ships, Morse code over radio became the way to call for help, and the story of SOS and the Titanic is on the SOS page. In wartime, armies and navies sent messages in Morse code by radio, including messages enciphered by machines such as Enigma, which were still transmitted as dots and dashes.
The decline of the telegram
As telephones and later email took over, commercial telegraph traffic fell. Western Union ended its telegram service in 2006. By then Morse code had already gone from ships (1999), and amateur radio had become its main home. The still used today page covers what remains.
Why the history matters
The timing and the shape of the code come from this history. The telegraph needed a signal that was only "on" or "off", which is why Morse code is made of two lengths. International Morse code became a standard because ships and radios from different countries had to understand each other, which is why the American and International versions are different codes with different histories.
Frequently asked questions
Who invented Morse code?
Samuel Morse developed it with Alfred Vail and Leonard Gale in the late 1830s. Friedrich Gerke later simplified it into the International version.
What was the first Morse code message?
"What hath God wrought", sent on 24 May 1844 from Washington, D.C., to Baltimore. See famous Morse code messages.
When did Morse code stop being used at sea?
Satellite-based GMDSS replaced it for maritime distress in 1999.
Sources: Morse code on Wikipedia, ITU-R M.1677-1, ARRL bulletin on the end of Morse testing.