- Translator
- Who invented it
Who invented Morse code?
Samuel F. B. Morse, an American painter, conceived the electric telegraph and a dot-and-dash code for it in 1832 and patented the system in 1840. Alfred Vail, a young technician who became his partner, designed many key parts of the equipment. The alphabet used around the world today already appears in the international telegraph regulations of 1865; its timing rules were revised later.
In short: Samuel Morse had the idea in 1832, switched to a code for each letter in 1838, patented the system in 1840 and opened the line from Washington to Baltimore in 1844. Alfred Vail, a young technician who became his partner, designed many of the working parts. Whether Vail designed the letter codes is disputed, and the evidence for it is thin. The alphabet used today is the international version already present in the telegraph regulations of 1865, rather than Morse's original American alphabet.
Who invented Morse code?
Samuel F. B. Morse, a painter and professor at the University of the City of New York, now New York University (Library of Congress). According to the Library of Congress, which holds his papers, the idea is said to have come to him in 1832 during a conversation on board ship on the way home from Europe, when passengers were discussing the recently invented electromagnet and Morse wondered whether a coded message could be sent over a wire (Library of Congress).
He did not build it alone. Morse found he knew too little about electricity and turned to a colleague, the chemistry professor Leonard D. Gale. Gale knew the work of Joseph Henry at Princeton, who had already rung a bell at a distance by opening and closing an electric circuit, and he showed Morse how a relay of the kind Henry had invented could boost a fading signal over long distances. The Library of Congress names Henry's experiments, Gale's help and the hiring of the young technician Alfred Vail as the keys to Morse's success (Library of Congress).
Why did Morse create it?
To send messages by electricity. Before that, “telegraph” meant visual signaling: an observer on a tower read a signal from a distant hill and passed it on to the next station (Library of Congress). An electric line could carry a message without anyone watching for it in between.
Until January 1838 the plan was not an alphabet at all: words were represented by numbers. Then Morse changed to a code for each letter, which removed the need to encode and decode every word through a dictionary (Library of Congress). His 1840 patent still describes the dictionary, “so that each word in the language has its telegraphic number”, and it also describes signs of letters made from dots and lines (US Patent 1,647). The switch to letters is the moment Morse code as we think of it begins.
| When | What happened | Source |
|---|---|---|
| Autumn 1832 | On the voyage home from Europe aboard the Sully, Morse sketches an electromagnetic recording telegraph and a dot-and-dash code. | LoC |
| September 1837 | Alfred Vail sees a demonstration and joins Morse and Leonard Gale as a partner. | LoC |
| 28 September 1837 | Morse files a caveat, the first step toward a patent. | LoC |
| November 1837 | A message goes through ten miles of wire wound on reels in Gale's lecture room. | LoC |
| January 1838 | Morse drops his dictionary of numbered words for a code for each letter. | LoC |
| February 1838 | Demonstrations at the Franklin Institute in Philadelphia (8 February) and for President Van Buren (21 February). | LoC |
| 20 June 1840 | US Patent 1,647 is granted. | patent |
| 3 March 1843 | Congress votes $30,000 for a line from Washington to Baltimore. | LoC |
| 24 May 1844 | “What hath God wrought?” goes from the Capitol to Baltimore. | LoC |
| 1854 | The US Supreme Court upholds most of Morse's patent claims; it strikes down the broad eighth claim in O'Reilly v. Morse. | Court opinion |
| 17 May 1865 | The first International Telegraph Convention is signed in Paris; its regulations require Morse code. | ITU |
| 1906 | The radiotelegraph regulations name the International Morse Code for radio. | ITU |
Did Alfred Vail invent Morse code?
Vail's role was large. He joined in 1837 for his money, his mechanical skill and his family's iron works, where telegraph models could be built (Library of Congress). The historian William Ashworth of the Linda Hall Library says he designed many key elements of the first successful telegraph system, including the key and the register (Linda Hall Library).
The claim that he also invented the dot-and-dash alphabet is another matter. His gravestone calls him “Inventor of the telegraphic dot and dash alphabet”, but Ashworth reads that as an assertion by Vail's heirs and finds no evidence for it; Vail never made the claim himself, even in his 1845 book on the telegraph (Linda Hall Library). Morse, for his part, claimed the code in his patents: the reissue of 1846 claims “the system of signs consisting of dots and lines” as part of his invention (US Reissue RE79).
Who drew up which letter codes is not settled by any source we could check. Alfred Vail looks more closely at his contribution.
What was the first Morse code message?
On 24 May 1844 Morse sent “What hath God wrought?” from the Capitol in Washington; sources differ on the exact room. The message went to Vail at the railroad depot in Baltimore. The words come from the Bible, Numbers 23:23, and were suggested by Annie Ellsworth, the young daughter of a friend; Morse credited her across the top of the surviving paper tape. His early system embossed raised dots and dashes on that tape, and an operator translated them afterwards (Library of Congress). The full story is in What hath God wrought.
It was not the first message Morse ever sent: by November 1837 messages were already going through ten miles of wire on reels (Library of Congress). It was the one that showed a working line between two cities, forty miles apart, paid for by Congress (Library of Congress).
How the line itself worked, from the key to the paper tape, is in How the telegraph worked.
When was Morse code invented?
There is no single date; the table above shows the steps. One more step is the first public demonstration of crucial elements of their telegraph system. An IEEE plaque at Historic Speedwell in Morristown, New Jersey, records that in January 1838 Morse and Vail first showed those elements to the public, using instruments Vail had built: electrical pulses crossed two miles of wire and an electromagnet inked dots and dashes (IEEE Engineering and Technology History Wiki). The message that day went as numbers, each standing for a word in a dictionary (IEEE Engineering and Technology History Wiki). The Library of Congress timeline in the table puts the switch to a code for each letter in the same month; we found no source that says which came first.
So was Morse code invented before the telegraph? No. It was designed for the electric telegraph, and the table dates the idea for both to 1832.
Was Morse code invented before the telephone?
Yes, by 32 years if you count from the 1844 line. Alexander Graham Bell's US Patent 174,465 was granted on 7 March 1876 (US Patent 174,465). Its title is “Improvement in Telegraphy”: it describes sending several telegraph signals over one wire, and it also describes transmitting speech (US Patent 174,465).
Did Thomas Edison invent Morse code?
No. Edison was born on 11 February 1847, three years after the 1844 line (National Park Service). As a boy he learned to work a telegraph on the railroad, and that skill let him leave home and travel the United States as a telegraph operator (National Park Service). In Indianapolis he devised a “telegraph practice instrument” that recorded Morse code on paper tape and played it back more slowly so the message could be written down (Edison Papers, Rutgers). Telegraph operators describes the trade he worked in. For Edison's own connection to the code, see Edison's Morse code proposal.
From Morse's code to the 1865 table
The code did not stand still. The letter signs in the drawing of Morse's 1848 reissued patent are fewer than the letters: G and J share one, as do I and Y, and S and Z (US Reissue RE117). By 1872 the American operators' alphabet had a sign for every letter, along with features the international code does not have, such as a gap inside some letters and a long dash for L (Pope, 1872). American vs International Morse compares the two letter by letter.
Between Morse's American code and the 1865 table, the code was revised in Europe. Friedrich Gerke, who supervised the first Morse telegraph line in Hamburg, changed Morse's alphabet (Museum for Communication Berlin); the sources we found disagree on the year, so this page gives none.
The international alphabet was fixed by treaty. On 17 May 1865 delegates of twenty states, most of them European, signed the first International Telegraph Convention in Paris. It came with regulations that required Morse code and Morse instruments, a rare case of the ITU naming a particular piece of equipment (ITU). The table of signals in those regulations already gives the letters A to Z exactly as they are sent today (Paris, 1865, regulation VII). The timing rules were not identical: its word gap was four dot lengths (Paris, 1865, regulation VII), while the current standard gives seven (ITU-R M.1677-1, 2.4). Forty-one years later, the radiotelegraph regulations of 1906 prescribed the International Morse Code for radio (Berlin, 1906).
The ITU's current standard for the code opens by noting that versions of Morse code have been in use since 1844 (ITU, 2009). That is the code in the Morse code alphabet on this site, the one behind SOS, and the one you can hear by typing any word into the translator. To learn it by ear, start with How to learn Morse code by ear.
Sources
- Invention of the Telegraph, Samuel F. B. Morse Papers at the Library of Congress. Library of Congress, Manuscript Division, checked 6 November 2026.
- Timeline 1791–1839, Samuel F. B. Morse Papers at the Library of Congress. Library of Congress, Manuscript Division, checked 6 November 2026.
- Timeline 1840–1872, Samuel F. B. Morse Papers at the Library of Congress. Library of Congress, Manuscript Division, checked 6 November 2026.
- First telegraphic message, 24 May 1844 (paper tape). Library of Congress, Samuel F. B. Morse Papers, 24 May 1844.
- S. F. B. Morse, US Patent 1,647: Improvement in the mode of communicating information by signals by the application of electro-magnetism. United States Patent Office, via Google Patents, 20 June 1840.
- S. F. B. Morse, US Reissue Patent RE79. United States Patent Office, via Google Patents, 15 January 1846.
- S. F. B. Morse, US Reissue Patent RE117: Improvement in electro-magnetic telegraphs (text and drawing sheet 1). United States Patent Office, via Google Patents, 13 June 1848.
- Scientist of the Day: Alfred Vail, by William B. Ashworth, Jr.. Linda Hall Library, checked 6 November 2026.
- O'Reilly v. Morse, 56 U.S. (15 How.) 62, December Term 1853. Legal Information Institute, Cornell Law School, decided 1854.
- The invention of Morse code and the advent of German telegraphy. Museum for Communication Berlin, Museumsstiftung Post und Telekommunikation, on Google Arts & Culture, checked 6 November 2026.
- Frank L. Pope, Modern Practice of the Electric Telegraph: A Handbook for Electricians and Operators, tenth edition. D. Van Nostrand, New York; scan at the Internet Archive, copyright 1872.
- The 1865 International Telegraph Conference. ITU History Portal, checked 6 November 2026.
- Convention télégraphique internationale de Paris (1865) et Règlement de service international (1865). ITU History Portal, scan of the Documents diplomatiques de la conférence, signed 17 May 1865.
- International Radiotelegraph Convention and Service Regulations, Berlin 1906 (English text). ITU History Portal, signed 3 November 1906.
- Recommendation ITU-R M.1677-1, International Morse code. ITU Radiocommunication Sector, October 2009.
- Milestones: Demonstration of Practical Telegraphy, 1838. IEEE Engineering and Technology History Wiki, checked 11 November 2026.
- US Patent 174,465, Improvement in Telegraphy. United States Patent Office, via Google Patents, 7 March 1876.
- Thomas Edison biography: 1847-1882, birth to Pearl Street. National Park Service, checked 11 November 2026.
- Itinerant Telegrapher. Thomas A. Edison Papers, Rutgers University, checked 11 November 2026.