Skip to content
CodeShift
Menu

History of Morse Code

Morse code was invented by Samuel Morse and Alfred Vail in the 1830s. Learn how it went from the first telegraph line to a global standard still in use today.

By The CodeShift DeskPublished September 1, 2026

Morse code was invented in the 1830s by Samuel F. B. Morse and Alfred Vail as the signaling language for the electric telegraph. What began as a system of short and long electrical pulses on a wire became the world’s first practical long-distance communication method — and shaped global communication for over 150 years.

Samuel Morse and Alfred Vail

Samuel Morse, an American painter and inventor, began experimenting with the electric telegraph around 1832. By 1837 he had a working prototype and had begun collaborating with machinist Alfred Vail. Vail is widely credited with redesigning the dot-dash assignments to favor the most common letters — assigning the single dot to E (the most common letter in English) — though the historical record on how much Vail contributed versus Morse is debated. The Library of Congress Samuel F. B. Morse Papers document their partnership in detail.

The code they produced was not yet the International Morse code used today. It was American Morse (also called landline or railroad Morse), which used three mark lengths and encoded some letters with internal pauses.

The First Telegram Line

On May 24, 1844, Morse transmitted the message “What hath God wrought” from the US Capitol in Washington, D.C., to a railroad station in Baltimore — a distance of about 40 miles (64 km). This was the first message sent over the first commercial telegraph line in the United States, funded by Congress. The Smithsonian National Museum of American History holds the original tape from that transmission.

Within a decade, telegraph lines crisscrossed the eastern United States. The transatlantic telegraph cable, completed in 1866, linked North America and Europe — and Morse code went with it.

International Morse vs. American Morse

As telegraph spread worldwide, the lack of a standard code became a problem. European operators developed Continental Morse (later called International Morse), which used only two mark lengths — dots and dashes — making it cleaner and less error-prone, especially over radio. The International Morse code was formally adopted at international conferences in the late 19th and early 20th centuries and is now codified in ITU-R Recommendation M.1677-1.

American Morse continued in use on US landline telegraph systems through much of the 20th century but eventually gave way to International Morse.

Key Milestones

Year Event
1837 Morse and Vail develop working telegraph prototype
1844 First commercial telegraph line: Baltimore to Washington, D.C.
1851 Continental (International) Morse agreed at European conference
1866 Transatlantic telegraph cable completed
1906 SOS adopted as international distress signal at Berlin conference
1908 SOS effective internationally on 1 July
1912 Titanic operators send both SOS and CQD during sinking
1999 Morse code retired as primary marine distress system
2007 FCC removes Morse exam requirement for US amateur radio (effective Feb. 23)

Radio Changes Everything

Morse code leaped from wires to radio waves in the early 1900s. Wireless (radio) telegraphy used the same dots and dashes, now transmitted as bursts of radio frequency energy. This made maritime communication possible for the first time over open ocean. Ship radio operators — called “sparks” — became critical safety personnel, and Morse code became the language of the sea.

The international distress signal SOS (· · · — — — · · ·) came into effect on 1 July 1908 following the 1906 Berlin International Wireless Telegraph Convention, as the PBS American Experience documents in detail. When the Titanic sank in April 1912, her radio operators sent both the older CQD and the newer SOS.

World War I and II

Morse code was the backbone of military communications in both world wars. Operators could transmit and receive hundreds of characters per minute. It was also harder to intercept and decode than voice radio, making it valuable for intelligence work. The US Navy trained thousands of radiomen in Morse during World War II.

The End of Mandatory Morse

The Global Maritime Distress and Safety System (GMDSS), which uses satellite and digital radio, replaced Morse as the mandatory maritime distress standard in 1999. In the US, the FCC had required a Morse code exam for General and Amateur Extra Class amateur radio licenses, but removed that requirement effective February 23, 2007 (Federal Register, FCC 06-178).

Morse Code Today

Morse code is still used actively by amateur radio operators worldwide, who call it CW (continuous wave). It remains part of the ITU Radiocommunication Sector’s active standards. Some operators prefer it because a Morse signal can punch through interference that defeats voice modes. And anyone with a flashlight, a buzzer, or a piece of wire can transmit it — no specialized electronics required.

Use the Morse code translator to convert text into dots and dashes. For more on how the code works today, see does anyone still use Morse code and international vs. American Morse code.

Frequently asked questions

Who invented Morse code?+

Samuel F. B. Morse developed the concept, but Alfred Vail is credited with designing most of the dot-dash assignments. Both worked together from 1837 onward.

What was the first Morse code message?+

The first official message sent over the Baltimore-to-Washington telegraph line on May 24, 1844 was 'What hath God wrought,' transmitted by Samuel Morse.

When did Morse code stop being required for amateur radio licenses?+

The FCC eliminated the Morse code exam requirement for US amateur radio licenses effective February 23, 2007, per FCC order 06-178.

Is Morse code still used anywhere officially?+

Yes. Amateur (ham) radio operators worldwide still use Morse code, and the ITU maintains the official International Morse code standard in Recommendation M.1677-1.

What is the difference between American and International Morse code?+

American Morse (landline telegraph) used three mark lengths and different character encodings. International Morse, standardized by the ITU, uses only dots and dashes and became the global standard.

Keep reading