The History of Morse Code: Samuel Morse, Alfred Vail and the First Telegram of 1844

From Painter to Inventor: A Letter That Arrived Too Late

It surprises many people that Samuel F. B. Morse (1791–1872) was a professional portrait painter before he was an inventor. In 1825, while painting the Marquis de Lafayette in Washington, he received a letter saying his wife was gravely ill. By the time he reached home in Connecticut, she had already been buried. The letter had spent days on the road carrying news that should have taken seconds. That loss left Morse obsessed with the problem of instant communication.

In 1832, aboard the ship Sully on his way back from Europe, Morse overheard a conversation about electromagnetism and began sketching out an "electromagnetic telegraph" that would send messages as pulses of current. By 1837 he was publicly demonstrating a working prototype, together with a signaling alphabet built from short and long elements — dots and dashes — that would later carry his name.

Alfred Vail: The Underrated Partner

In 1837 a young machinist named Alfred Vail saw Morse's demonstration at New York University and joined the project. Vail invested money, built far more reliable hardware, and turned a laboratory curiosity into equipment that could actually be deployed. Historical accounts also credit him with much of the code's practical design — including the principle that the most frequent letters should get the shortest codes, reportedly inspired by counting the movable type in a printer's office.

E, the most common letter in English, is a single dot (.); the rare Q is --.-. To see how clever this design really is, read Why Is E a Single Dot?.

1844: "What Hath God Wrought"

In 1843 the U.S. Congress appropriated 30,000 dollars for an experimental telegraph line between Washington and Baltimore, roughly 40 miles long. On May 24, 1844, Morse sat in the Capitol in Washington and tapped out history's first public demonstration telegram to Vail in Baltimore: "What Hath God Wrought" — a phrase from the Book of Numbers 23:23, chosen by Annie Ellsworth, daughter of the Commissioner of Patents. The original paper tape is preserved at the Library of Congress.

That single message proved long-distance instant communication was practical. Within a decade telegraph wires crossed North America and the first submarine cables were being laid; for the first time, information traveled faster than any vehicle could carry it.

From American Morse to International Morse

The original "American Morse" used dashes of several different lengths and irregular spacing, which proved error-prone on radio and international circuits. In 1848 the German telegrapher Friedrich Clemens Gerke simplified it to just two signal lengths — dot and dash. After spreading across Europe, this refined alphabet was standardized in 1865 by the International Telegraph Union (the forerunner of today's ITU) as International Morse Code, the version still in use today.

Every dot and dash you see in our Morse code translator follows that 1865 standard, now formally defined in ITU-R Recommendation M.1677-1. Type your name and hear how a 180-year-old language of communication pronounces it.

Try the Morse Code Translator Now

References

  1. Library of Congress, "The Invention of the Telegraph," Samuel F. B. Morse Papers, Articles and Essays (accessed via the Internet Archive).
    https://web.archive.org/web/20250109153743/https://www.loc.gov/collections/samuel-morse-papers/articles-and-essays/invention-of-the-telegraph/
  2. International Telecommunication Union, "ITU History" — founding of the International Telegraph Union, 1865.
    https://www.itu.int/en/history/Pages/ITUsHistory.aspx
  3. Encyclopaedia Britannica, "Samuel F. B. Morse."
    https://www.britannica.com/biography/Samuel-F-B-Morse
  4. IEEE Engineering and Technology History Wiki, "Morse Code."
    https://ethw.org/Morse_Code