radio Codigo Morse
  1. Home
  2. Learn
  3. History of Morse Code

From 1837 to today

The History of Morse Code

Who invented Morse code, when, and why? The short answer is Samuel Morse and Alfred Vail, in the late 1830s, to make the electric telegraph useful. The long answer runs through a painter's grief, a 40-mile wire, a sinking ship, two world wars and a prisoner who blinked.

Jump to the timeline
1837
First demonstration
1844
First public message
1865
International standard
1999
Retired at sea

Who invented Morse code?

Samuel F. B. Morse (1791–1872) is the name on the code, and he deserves it: he conceived the single-wire electric telegraph, built the first working models, fought for the patents and persuaded Congress to fund the first line. But Morse was a painter, not an engineer, and the system that bears his name was a collaboration.

Alfred Vail (1807–1859), a young machinist from a family of ironworkers in Morristown, New Jersey, saw Morse's crude 1837 demonstration at New York University, joined him, and put up money in exchange for a share of the patent. Vail built the telegraph key and register, and most historians credit him with reworking the code into the dot-and-dash alphabet we recognize. Morse also drew on the electromagnet research of physicist Joseph Henry.

The story of why Morse turned from painting to telegraphy is often told: in 1825, while he was painting a portrait in Washington, a letter arrived by horse saying his wife was ill. By the time he reached home in Connecticut she had already been buried. Whether or not that was the whole motive, Morse spent the rest of his life trying to make distance disappear.

When was Morse code invented?

There is no single date, which is why you will see 1836, 1837, 1838 and 1844 quoted. Here is what happened when:

  • 1832: Morse sketches the idea on the voyage home from Europe.
  • 1837: first working demonstrations and the patent caveat. Vail joins.
  • 1838: the dot-and-dash letter code replaces Morse's original numbered-codebook scheme; public demonstration on January 11 at Speedwell Ironworks.
  • 1840: the US patent is granted.
  • 1844: the first public message over a real line, Washington to Baltimore, on May 24.

If you want one answer for a quiz: Morse code was invented in 1837–1838 and first used publicly in 1844.

Why was Morse code invented?

Because the telegraph needed it. Earlier electrical telegraphs, such as Cooke and Wheatstone's in England, used several wires and needles that pointed at letters on a dial. They were expensive and slow. Morse's insight was to use one wire and a single electromagnet that simply pulled a lever when current flowed. A one-wire system can only say "on" or "off", so the letters had to be encoded as patterns of short and long pulses. That constraint is Morse code.

Morse's first scheme sent numbers only; each number stood for a word in a printed codebook. Vail's alphabet of dots and dashes did away with the book. The two men reportedly visited a local print shop and counted the type in the compositor's cases to find which letters were most common, giving E a single dot and T a single dash. That frequency-based design is why Morse code is still remarkably efficient.

The first Morse code message

What hath God wrought

On May 24, 1844, Samuel Morse sat in the chamber of the Supreme Court inside the US Capitol and tapped out a verse from the Book of Numbers, chosen by Annie Ellsworth, the daughter of the Commissioner of Patents. Alfred Vail received it at the Baltimore and Ohio Railroad depot in Baltimore and sent it straight back. In International Morse it reads:

.-- .... .- - / .... .- - .... / --. --- -.. / .-- .-. --- ..- --. .... -

(Morse himself would have used the original American code, which differs slightly; see American vs International Morse.)

1791 – 2018

Morse code timeline

Highlighted entries are the turning points.

  1. 1791
    Samuel Morse is born

    Samuel Finley Breese Morse is born on April 27 in Charlestown, Massachusetts. He becomes a respected painter before he ever touches a wire.

  2. 1832
    The idea on a ship

    Returning from Europe aboard the packet ship Sully, Morse hears about electromagnets and sketches a system for sending messages by electric pulses.

  3. 1837
    First demonstrations

    Morse shows a working telegraph in New York and files a patent caveat. Alfred Vail, a young machinist, joins him and funds and builds much of the hardware.

  4. 1838
    The dot-and-dash code

    Morse and Vail replace the original numbered-dictionary scheme with a code of dots and dashes for individual letters. On January 11 they demonstrate it publicly at Speedwell Ironworks in Morristown, New Jersey.

  5. 1843
    Congress pays for a line

    Congress approves funding for an experimental telegraph line between Washington, D.C. and Baltimore, about 40 miles.

  6. 1844
    "What hath God wrought"

    On May 24, from the Supreme Court chamber in the Capitol, Morse sends the first public message over the new line to Vail in Baltimore. The phrase comes from the Book of Numbers.

  7. 1848
    Gerke rewrites the code

    Friedrich Clemens Gerke, working on the Hamburg–Cuxhaven line, simplifies the code: only dots and dashes, no odd spaces or extra-long dashes. Most of today's alphabet dates from this revision.

  8. 1858
    First transatlantic cable

    A cable links Ireland and Newfoundland. Queen Victoria exchanges greetings with President Buchanan; the cable fails within weeks. A durable one follows in 1866.

  9. 1865
    International Morse Code

    The newly founded International Telegraph Union adopts Gerke's version as the continental standard. This is the International Morse Code still used today.

  10. 1870s–1890s
    Railroads and newspapers

    Telegraph lines follow the rails across continents. Train dispatching, stock prices and news all travel by Morse; the operator becomes a skilled trade.

  11. 1895–1901
    Wireless

    Guglielmo Marconi sends Morse by radio waves, first across a room, then across the English Channel, and in December 1901 the letter S across the Atlantic.

  12. 1906
    SOS is chosen

    The Berlin International Radiotelegraph Convention adopts ··· ––– ··· as the standard distress signal, effective in 1908. It replaces the earlier CQD used by Marconi operators.

  13. 1912
    Titanic

    On the night of April 14–15, operators Jack Phillips and Harold Bride send CQD and then SOS. The Carpathia hears them and rescues the survivors; the disaster leads to 24-hour radio watches at sea.

  14. 1914–1945
    Two world wars

    Morse carries orders, intelligence and weather on every front. Enemy traffic is intercepted and decoded; operators are identified by the "fist" of their sending. The BBC opens broadcasts with the V (···–) rhythm of Beethoven's Fifth.

  15. 1966
    Blinked on television

    US Navy pilot Jeremiah Denton, a prisoner of war in North Vietnam, blinks T-O-R-T-U-R-E in Morse during a filmed propaganda interview, confirming to US intelligence that prisoners were being tortured.

  16. 1997
    France signs off

    French coastal stations end Morse service with a final message: "Calling all. This is our last cry before our eternal silence."

  17. 1999
    GMDSS replaces Morse at sea

    On February 1 the Global Maritime Distress and Safety System becomes fully effective for ships covered by the SOLAS convention. The Morse radio watch on 500 kHz is over.

  18. 2006
    Last Western Union telegram

    Western Union, whose name was once synonymous with the telegraph, delivers its final telegram in January.

  19. 2007
    No more Morse test

    The United States drops the Morse code requirement for all amateur radio licenses, following most other countries. Morse becomes a skill people learn by choice.

  20. 2018
    Morse on a smartphone keyboard

    Google adds a Morse code layout to Gboard, developed with Tania Finlayson, who has used Morse to communicate for decades.

From American Morse to International Morse

The original code had quirks: some letters used internal spaces, and there were dashes of two different lengths. It worked for the clicking "sounder" of American railroads but was awkward over the long undersea and overland lines being built in Europe. In 1848 Friedrich Clemens Gerke, a telegraph inspector in Hamburg, published a cleaner version with only dots and standard dashes. The German-Austrian Telegraph Union adopted it in 1851, and in 1865 the International Telegraph Union (the ancestor of today's ITU) made it the continental standard. American Morse survived on US landlines into the 20th century, but radio spread the international version everywhere, and it is the one defined today in ITU-R Recommendation M.1677.

Radio, CQD and the birth of SOS

Guglielmo Marconi showed in the 1890s that Morse could travel without wires, and by 1901 he had sent the letter S across the Atlantic. Ships were the obvious customers. Marconi's operators used CQD as a distress call: CQ was the general "attention all stations" signal, and D was added for distress. People later said it meant "Come Quick, Danger", but that was never official.

Different companies used different calls, which was dangerous. In 1906 the International Radiotelegraph Convention in Berlin settled on SOS (··· ––– ···), already in use in Germany, because its nine evenly spaced elements are easy to send and impossible to confuse. It became binding in 1908. SOS stands for nothing; "Save Our Souls" came later. Read more on the SOS in Morse code page and the abbreviations reference.

Titanic, 1912

When the Titanic struck an iceberg late on April 14, 1912, senior wireless operator Jack Phillips began sending CQD, then, at junior operator Harold Bride's suggestion, alternated it with the newer SOS. The Carpathia, about 58 miles away, heard the call and steamed to the scene, picking up just over 700 survivors. Phillips kept sending until power failed and did not survive. The disaster produced the Radio Act of 1912 in the United States and international rules requiring ships to keep a continuous radio watch, with Morse at its heart for the next 87 years.

Two world wars and a blink

Morse was the backbone of military communications in both world wars: field telegraphs in the trenches, naval signal lamps, aircraft radios and the clandestine sets of resistance operators. Intercepting and breaking enemy Morse traffic became a science; intelligence services learned to recognize individual operators by the rhythm of their sending.

The most famous single Morse message of the Cold War had no key at all. In 1966, Commander Jeremiah Denton, a US Navy pilot held prisoner in North Vietnam, was put in front of cameras for a propaganda interview. While answering questions he blinked T-O-R-T-U-R-E in Morse, the first confirmation that American prisoners were being tortured. He survived and later became a US senator. Our guide to Morse with light and blinking tells the story in full.

The end of commercial Morse

Satellites and automated digital distress systems made the Morse watch obsolete. France's coastal stations closed their Morse service in 1997 with a last message that has become famous: "Calling all. This is our last cry before our eternal silence." On February 1, 1999, the Global Maritime Distress and Safety System (GMDSS) took over worldwide. Western Union sent its final telegram in 2006, and in 2007 the United States dropped the Morse exam for amateur radio licenses. None of this killed Morse: it is still used by radio amateurs, aviation beacons, naval signalmen and accessibility tools, as our page on whether Morse code is still used explains. And every April 27, Samuel Morse's birthday, enthusiasts mark Morse Code Day.

Hardware

The telegraph key

The instrument that turns a hand into dots and dashes has had three main forms.

Straight key

The original design: a lever on a spring. Press for a dot, hold for a dash. Every element is timed by the operator's hand, which is why a skilled sender's "fist" is recognizable. Still the usual way to start.

Bug (semi-automatic key)

Patented by Horace Martin in the early 1900s and sold by Vibroplex. A sideways lever: push one way for a dash, the other way and a weighted pendulum produces a string of evenly timed dots. It saved operators' wrists on busy landline circuits.

Paddle and electronic keyer

Two paddles, one for dots and one for dashes, feeding an electronic keyer that makes every element perfectly timed. Squeezing both produces alternating dot-dash ("iambic"). The standard for amateur radio today.

FAQ

Frequently asked questions

Who invented Morse code?

Samuel F. B. Morse conceived the single-wire electric telegraph and is the code's namesake; his partner Alfred Vail did much of the work on the dot-and-dash alphabet and the hardware. The international version used today was reworked by Friedrich Gerke in 1848 and standardized in 1865.

When was Morse code invented?

The telegraph was first demonstrated in 1837 and the dot-and-dash letter code dates from 1838. The first public message over a real telegraph line was sent on May 24, 1844, from Washington, D.C. to Baltimore.

Why was Morse code invented?

Morse's telegraph used a single wire that could only be switched on and off, so letters had to be represented as patterns of short and long pulses. The code made the one-wire telegraph practical, cheap and fast compared with multi-wire needle telegraphs.

What was the first message sent in Morse code?

"What hath God wrought", a phrase from the Book of Numbers chosen by Annie Ellsworth, sent by Samuel Morse from the US Capitol to Alfred Vail in Baltimore on May 24, 1844. Earlier test messages had been sent in demonstrations from 1838 onward.

What does CQD mean in Morse code?

CQD was the distress call used by Marconi wireless operators from 1904: CQ meant "calling all stations" and D was added for distress. It was replaced internationally by SOS in 1908, though the Titanic sent both in 1912.

Is Morse code still used today?

Yes, though not commercially. Amateur radio operators use it daily, aviation navigation beacons identify themselves in Morse, the US Navy still trains signalmen on flashing-light Morse, and accessibility keyboards such as Gboard support it. Commercial maritime Morse ended in 1999.

Send a message the way they did in 1844

Type anything into the translator and hear it in dots and dashes.