About Morse code
International Morse code represents each letter and digit as a sequence of short signals (dots) and long signals (dashes). A space separates letters; a slash ( / ) separates words. Developed in the 1830s and standardized internationally, it was the first form of electrical communication.
Standard encoding: A=dot-dash, B=dash-dot-dot-dot, S=dot-dot-dot, O=dash-dash-dash, giving the famous SOS as ...---...
How do I convert text to Morse code?
To convert text to Morse code, look up each letter and digit in the standard International Morse Code table, write its dot-dash pattern, separate letters with a space, and separate words with a slash. Example: "SOS" becomes "... --- ..." and "HELLO" becomes ".... . .-.. .-.. ---".
Steps to encode and decode Morse code
- Convert the input text to uppercase, since Morse code does not distinguish between uppercase and lowercase letters.
- Look up each letter or digit in the standard code table (for example A = .-, S = ..., O = ---).
- Join the codes for the letters of one word with a single space between them.
- Join separate words with a slash ( / ) surrounded by spaces, so the receiver can tell where one word ends and the next begins.
- To decode, reverse the process: split on / to find word boundaries, split each word on spaces to find letters, then look up each dot-dash pattern back to its letter.
Morse code structure
Letter -> sequence of dots (·) and dashes (−) | Letters within a word -> separated by 1 space | Words -> separated by " / "
- Dot (.) = a short signal, one unit of time
- Dash (-) = a long signal, three units of time
- The space between dots/dashes within one letter is one unit; between letters, three units; between words, seven units
Common letters and words in Morse code
What is SOS in Morse code?
SOS is ... --- ... — three dots, three dashes, three dots, the international distress signal.
What is A in Morse code?
A is .- — one dot, one dash.
What is HELLO in Morse code?
HELLO is .... . .-.. .-.. --- (H=...., E=., L=.-.., L=.-.., O=---).
What is the number 1 in Morse code?
1 is .---- — one dot followed by four dashes.
What is S in Morse code?
S is ... — three dots, the same pattern used at the start and end of SOS.
What is O in Morse code?
O is --- — three dashes, the pattern in the middle of SOS.
Example text-to-Morse conversions
| Text | Morse code |
|---|
| SOS | ... --- ... |
| HELLO | .... . .-.. .-.. --- |
| A | ·− |
| S | · · · |
| O | − − − |
Frequently asked questions
Why is SOS the universal distress signal?
SOS was chosen in the early 1900s because its Morse pattern, three dots, three dashes, three dots (... --- ...), is simple, unmistakable, and easy to send even under stress or with damaged equipment, not because the letters stand for any phrase like "Save Our Ship" — that is a popular backronym invented after the fact.
Does Morse code have separate codes for uppercase and lowercase letters?
No. Morse code represents the 26 letters of the alphabet and 10 digits without any case distinction, since it was designed for audio and visual signaling where case has no equivalent. This tool converts input to uppercase internally before encoding for that reason.
What do the spaces and slash actually represent in timing?
In real Morse code timing, a dot is one unit, a dash is three units, the gap between symbols within a letter is one unit, the gap between letters is three units, and the gap between words is seven units. This tool represents those larger gaps with a plain space between letters and a slash between words for readability on screen.
Can Morse code represent numbers and punctuation, or only letters?
The full International Morse Code table also defines codes for digits 0-9 and common punctuation like periods, commas, and question marks, in addition to the 26 letters; this tool supports the letters, digits, and the most common punctuation marks.
This tool encodes and decodes standard International Morse Code letters, digits, and common punctuation as text; it does not play or record actual audio tones or light signals, and unsupported characters in the input are shown as-is or as a question mark during decoding.
Sources: ITU-R M.1677 - International Morse Code