09Language

Morse code

Morse code turns letters into short and long signals. A strip of paper tape from a telegraph holds four messages: tap the key, walk the tree of letters, see why E is one dot, and play a message back at the right speed.

From the telegraph

The tape starts here

Morse code writes letters as short and long signals: dots and dashes. A dot lasts one beat and a dash lasts three. It was made for the telegraph in the 1830s and 1840s, and the same code is still used today.

This tape has four messages, and each one has something to try. Sound is on by default, with a switch above. Your browser keeps sound locked until your first click or key press. Everything also works without sound.

Message one

Tap the key

A telegraph key is a switch. Press it for a short time to send a dot. Press it for three times as long to send a dash. Leave a gap of about three beats between letters, and about seven between words.

Press and hold the big key below, with the mouse, a finger or the space bar. The tool turns your taps into letters. If timing is hard, the four buttons under the key do the same job.

··· −−− ···

S O S

Press and hold with the mouse, a finger or the space bar.

The tape shows the word SOS. Press the key to make your own message.

Message two

Walk the tree

Every letter is a path of dots and dashes. Start at the top and take a dot to go left or a dash to go right. The letter you end on is the letter you spelled. E is one step left. T is one step right.

The whole alphabet fits on one tree. Press Dot and Dash to walk down it, and watch which letters come up on the way.

start
ET
IANM
SURWDKGO
HVF L PJBXCYZQ  

 

You are at the top. Take a dot to go left or a dash to go right.

Message three

Short for the common ones

Samuel Morse and his assistant Alfred Vail gave the shortest codes to the letters that are used most. E is the most common letter in English and its code is a single dot. T is next, and its code is a single dash. Vail is said to have counted the type in the cases of a printer in Morristown, New Jersey, to see which letters were used most.

Sort the bars. Then shuffle the codes between the letters and see how much longer an ordinary message takes to send.

  1. E·12.7%
  2. T−9.1%
  3. A·−8.2%
  4. O−−−7.5%
  5. I··7.0%
  6. N−·6.7%
  7. S···6.3%
  8. H····6.1%
  9. R·−·6.0%
  10. D−··4.3%
  11. L·−··4.0%
  12. C−·−·2.8%
  13. U··−2.8%
  14. M−−2.4%
  15. W·−−2.4%
  16. F··−·2.2%
  17. G−−·2.0%
  18. Y−·−−2.0%
  19. P·−−·1.9%
  20. B−···1.5%
  21. V···−1.0%
  22. K−·−0.8%
  23. J·−−−0.2%
  24. X−··−0.1%
  25. Q−−·−0.1%
  26. Z−−··0.1%

With the real codes, the average letter in English takes about 6.1 units of time to send.

Message four

Hear it and copy it

Morse is a code you hear, and timing is everything. A dot is 1 unit of time and a dash is 3. The gap inside a letter is 1 unit, between letters 3 units and between words 7 units. Speed is counted in words per minute, where one word is PARIS and the gap after it, which together are exactly 50 units long.

Type a message and play it back. Or press Give me a word, and try to copy it from the sound, or from the flashing lamp.

Copy a word

SOS is 27 units long: 27 beats of dots, dashes and gaps. At 12 words a minute that takes 2.7 seconds.

Key takeaways

  1. Morse code writes letters as dots and dashes. A dash lasts three times as long as a dot.
  2. The gaps carry meaning too: 1 unit inside a letter, 3 between letters and 7 between words.
  3. Every letter is a path in a tree: a dot goes left and a dash goes right.
  4. The most common letters have the shortest codes. E is one dot and T is one dash.
  5. Speed is counted in words per minute. The word PARIS and the gap after it, 50 units together, is the standard.
  6. SOS is a pattern of three dots, three dashes and three dots. It was not first an abbreviation.

Sources

Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The unit lengths (1, 3, 1, 3 and 7), the 50 units of PARIS and its word gap, the first telegraph message of 24 May 1844 and the SOS rules of 1906 each appeared in at least two places. The letter frequencies are from a standard table for English; the five largest (E, T, A, I and N) were checked in two places and the rest are from the table. The tools are simple models made for this page. How much longer a message takes with shuffled codes comes from the English table, so it will differ for other texts.