Morse code reference and translator
Morse code represents each character as a sequence of short signals (dots) and long signals (dashes). This tool both translates between plain text and Morse and gives you the complete International (ITU) chart, searchable by character or by pattern.
How it works
Each letter, digit, and punctuation mark maps to a unique string of dots (.)
and dashes (-). Encoding looks up each character in the table and joins the
results; spaces between words become a forward slash (/). Decoding reverses
the lookup: it splits your input on spaces to get individual letters and on the
slash to get word boundaries, then matches each pattern back to a character.
The code is designed for efficiency — the most common English letters get the
shortest patterns. E is a single dot and T a single dash, while rarer letters
like Q (--.-) and Y (-.--) are longer. This frequency-based design comes
from Alfred Vail’s analysis of letter usage in a print shop.
Tips and example
- The classic distress call SOS is
... --- .... As a true prosign it is sent without gaps, but spelled letter by letter the spacing is shown here. - Numbers always use five symbols each, stepping cleanly from
.----(1) up to-----(0), which makes them easy to memorise. - When decoding, double-check your spacing: a missing space merges two letters
into one invalid pattern, which shows as
?in the output.