← back08 · 09 · 2026

The telegraph key · keyed & counted

SOUNDER

Type a message. It leaves the key as real Morse — the same rhythm an operator would send. Then see the trick hidden in the code itself.

key up

The trick

Morse gave the letters you use most the codes that cost least.

A dit takes one beat, a dah takes three. Line the 26 letters up by how often they appear in English and the codes get longer as the letters get rarer — the whole alphabet is a compression scheme built by hand.

-0.82correlation between a letter's commonness and its code length — the minus sign is the whole idea
Type above and your message is measured here.
  1. E12.7%1
  2. T9.1%3
  3. A8.2%5
  4. O7.5%11
  5. I7.0%3
  6. N6.8%5
  7. S6.3%5
  8. H6.1%7
  9. R6.0%7
  10. D4.3%7
  11. L4.0%9
  12. C2.8%11
  13. U2.8%7
  14. M2.4%7
  15. W2.4%9
  16. F2.2%9
  17. G2.0%9
  18. Y2.0%13
  19. P1.9%11
  20. B1.5%9
  21. V1.0%9
  22. K0.8%9
  23. J0.1%13
  24. X0.1%11
  25. Q0.1%13
  26. Z0.1%11

How they knew

To build the code, Alfred Vail — Samuel Morse's partner — needed to know which letters English leaned on most. The story goes that he walked into a newspaper's composing room and counted the pieces of movable type in the printers' cases: the more worn-down and numerous a letter's type, the more often it was set. E and T had the fullest bins, so they got a single dit and a single dah. Q, J, X and Z sat almost untouched — and drew the longest codes.

Soundera nightly prototype · Web Audio + a printer's tally