CalculatorSwitch
Calculator Switch
Fun

Morse Code Converter

Last updated:

How to Use This Calculator

Step 1: Type or paste your text into the input field. You can enter regular text (like HELLO) or Morse code (like .... . .-.. .-.. ---).

Step 2: Click Calculate. The converter automatically detects whether you entered text or Morse code. If you entered text, it converts to Morse code. If you entered dots and dashes, it converts back to text.

Step 3: The breakdown shows the direction of conversion (Text → Morse or Morse → Text). Copy the result for use in learning exercises, escape room puzzles, or encoding messages.

What Is Morse Code?

Morse code is a communication system that represents letters and numbers as sequences of short signals (dots, written as ".") and long signals (dashes, written as "-"). Developed by Samuel Morse and Alfred Vail in the 1830s for use with the electric telegraph, it became the primary long-distance communication method for over a century.

How Morse code works: Each letter is a unique combination of dots and dashes. E is a single dot (the most common letter gets the shortest code). T is a single dash. Common letters have shorter codes, while rare letters have longer ones. This efficiency was intentional — it minimized transmission time.

The SOS signal (... --- ...) is the most famous Morse code sequence. Chosen as the international distress signal in 1906, it was selected not because it stands for "Save Our Souls" (a common misconception) but because its pattern is easy to recognize and transmit.

Morse code today is still used in aviation (identifying navigation beacons), amateur radio, military communication, accessibility devices (some assistive technology uses Morse code input), and as a hobby. Learning Morse code trains pattern recognition and has been shown to remain accessible even when other communication abilities decline.

Character spacing: In transmitted Morse code, a dot is 1 unit long, a dash is 3 units, the gap between parts of a letter is 1 unit, the gap between letters is 3 units, and the gap between words is 7 units. In text representation (used by this converter), spaces separate letter codes and " / " separates words.

Morse Code Encoding System

Morse code uses a binary encoding system — each character is represented by a unique combination of two symbols (dot and dash). The encoding follows a rough frequency optimization where common letters have shorter codes.

Encoding rules:
- Each letter/number maps to a fixed sequence of dots and dashes
- Letters within a word are separated by a space
- Words are separated by " / " (space-slash-space)
- The converter handles uppercase and lowercase identically (case-insensitive)

Detection logic: The converter determines direction automatically. If the input contains dots (.) or dashes (-), it treats the input as Morse code and decodes to text. Otherwise, it encodes text to Morse code.

Supported characters: All 26 English letters (A-Z) and 10 digits (0-9). Unsupported characters (punctuation, special symbols) are passed through as-is. Spaces in the input become " / " in the Morse output.

Morse Code Alphabet

LetterMorseLetterMorseNumberMorse
A.-N-.0-----
B-...O---1.----
C-.-.P.--.2..---
D-..Q--.-3...--
E.R.-.4....-
F..-.S...5.....
G--.T-6-....
H....U..-7--...
I..V...-8---..
J.---W.--9----.
K-.-X-..-
L.-..Y-.--
M--Z--..

Examples

Example 1: Encode a Word
Enter "HELLO". Result: .... . .-.. .-.. ---. Each letter is separated by a space: H(....), E(.), L(.-..), L(.-..), O(---).

Example 2: Decode a Message
Enter "... --- ..." (with spaces between letters). Result: SOS. The international distress signal decoded.

Example 3: Encode a Sentence
Enter "HELLO WORLD". Result: .... . .-.. .-.. --- / .-- --- .-. .-.. -.. The slash separates the two words.

Tips for Using Morse Code

Start by learning E, T, A, I, N, S. These six letters cover a large percentage of English text and have the shortest Morse codes. E is just a single dot, T is a single dash.

Use the space and slash conventions correctly. When entering Morse code, separate letters with a single space and words with " / " (space-slash-space). Without proper spacing, the decoder cannot tell where one letter ends and the next begins.

Case does not matter. The converter treats uppercase and lowercase identically. "Hello", "HELLO", and "hello" all produce the same Morse code output.

Morse code only supports letters and numbers. Punctuation marks have Morse equivalents in the full international standard, but this converter focuses on the 36 most common characters (A-Z, 0-9).

Practice decoding as a brain exercise. Translating Morse code by hand builds pattern recognition skills. Try decoding short messages before checking with the converter.

Frequently Asked Questions

How does the converter know which direction to translate?
It checks the input for dots (.) and dashes (-). If the input contains these characters, it assumes Morse code and decodes to text. Otherwise, it encodes text to Morse code. This automatic detection works for all standard inputs.
Does it support punctuation?
Currently, the converter supports the 26 English letters (A-Z) and 10 digits (0-9). Punctuation marks like periods, commas, and question marks are not encoded. The full international Morse code standard includes punctuation, but this converter focuses on the most commonly used characters.
How do I separate words in Morse code input?
Use a forward slash surrounded by spaces: " / ". For example, "HELLO WORLD" in Morse is ".... . .-.. .-.. --- / .-- --- .-. .-.. -..". The slash tells the decoder where one word ends and the next begins.
Is Morse code still used today?
Yes, though less commonly than in the past. It is used in aviation to identify radio navigation beacons, in amateur (ham) radio as a reliable long-distance communication method, in military contexts, and in assistive technology for people with limited mobility.
Why are some letters shorter than others?
Samuel Morse and Alfred Vail designed the code so that the most frequently used letters have the shortest codes. E (the most common letter in English) is a single dot, while Q and Z (rare letters) require four characters. This minimizes average transmission time.
What does SOS mean?
SOS (... --- ...) is the international Morse code distress signal, adopted in 1906. It does not actually stand for "Save Our Souls" or "Save Our Ship" — those are backronyms. It was chosen because its pattern (three dots, three dashes, three dots) is easy to send, recognize, and remember.

Related Calculators

Was this useful?