Morse Code Translator

Convert text to Morse code and back, with an audible playback of the dots and dashes at an adjustable speed. Nothing is uploaded.

267 views

A dot (.) is a short signal, a dash (-) is a long one; letters are separated by spaces, words by /.

Why Morse Code Uses Dots and Dashes at All

Morse code, developed by Samuel Morse and Alfred Vail in the 1830s-40s for the electric telegraph, works on a deceptively simple idea: represent every letter as a sequence of short and long signal pulses — a "dot" (one unit of duration) and a "dash" (three units) — separated by gaps, so that a single wire carrying nothing more complex than on/off electrical pulses could transmit full text over long distances. The genius of the system is not the dots and dashes themselves but the timing: a dot, a dash, the gap between symbols within a letter (one unit), the gap between letters (three units), and the gap between words (seven units) are all defined relative to one base unit, so the whole code scales cleanly to any transmission speed — faster operators just use a shorter base unit, without changing a single dot-dash pattern.

The letter-to-code assignments were not arbitrary either. Morse and Vail assigned the shortest codes to the most frequently used letters in English text — E is a single dot, T is a single dash — a design choice that, decades before Claude Shannon formalized information theory in 1948, intuitively anticipated the core idea of entropy coding: spend fewer symbols on common events. This is the same principle later formalized in Huffman coding, used today in ZIP compression and JPEG.

SOS ('· · · — — — · · ·') became the international distress signal in 1906 not because it stands for "Save Our Souls" or "Save Our Ship" — it does not officially stand for anything — but because three dots, three dashes, three dots is unmistakably distinctive and nearly impossible to mishear or garble, even over a noisy signal, which is exactly what matters when the message is a matter of survival.

This tool converts in both directions and can play back the result as audible tones using the Web Audio API, spaced according to the exact timing ratios above at a speed you control in words-per-minute (WPM) — the standard unit for measuring Morse transmission speed, based on the reference word "PARIS" (chosen because it works out to a convenient 50 timing units).

Where Morse Code Is Still Actually Used

  • Amateur (ham) radio operators still use Morse code (CW mode) extensively, because it cuts through noise and requires far less bandwidth than voice, letting weak signals be understood where voice would be unintelligible.
  • Aviation beacons still identify themselves with a Morse-coded call sign, audible on the correct radio frequency, so pilots can confirm they are tuned to the right navigation aid.
  • It remains a recognized accessibility input method: some assistive-technology switches let users spell out text with two-state (dot/dash) inputs.
  • Unsupported characters are silently skipped rather than guessed, since Morse only officially defines Latin letters, digits, and a handful of punctuation marks.

Frequently Asked Questions

Why do dots and dashes have specific timing ratios?

A dash is defined as exactly three times the duration of a dot, with the gap between symbols in a letter equal to one dot, between letters equal to three dots, and between words equal to seven dots. This relative timing means the whole code works identically at any speed - only the base unit duration changes.

What does SOS actually stand for?

Nothing, officially - it was chosen as the international distress signal in 1906 purely because "···---···" is short, symmetrical, and very hard to misread or garble over a noisy radio signal, not because the letters abbreviate a phrase.

Why do common letters like E and T have the shortest codes?

Samuel Morse and Alfred Vail assigned code length based on how frequently each letter appears in English text, so operators spent less time transmitting common letters. This is the same "fewer symbols for common events" principle that modern compression algorithms like Huffman coding formalized a century later.

What does WPM (words per minute) mean here?

It is the standard speed measurement for Morse code, calibrated against the reference word "PARIS," which conveniently works out to exactly 50 timing units. Setting a WPM value determines how long one timing unit (and therefore every dot, dash, and gap) lasts.

Is Morse code actually still used anywhere today?

Yes - amateur radio operators use it heavily because it needs far less bandwidth than voice and remains readable through noise that would make speech unintelligible, and aviation navigation beacons still identify themselves with a Morse-coded call sign.

Comments

No comments yet — be the first to write one!

Similar Tools