CalcSeed

Morse Code Converter

Encode text into Morse code or decode Morse back into letters.

Output
—

What this converter does

The converter runs both directions. In encode mode, text becomes dots and dashes: the default input SOS produces ... --- ..., with one space between letters. In decode mode the same string typed back with spaces and slashes returns SOS. The table covers all 26 letters and the digits 0–9, so any mix of them converts cleanly in either direction.

How Morse timing works

S→···,O→−−−S \to \cdot\cdot\cdot, O \to ---

Everything in Morse timing is measured in one unit: the duration of a dot. A dash lasts 3 units, the gap between elements inside a letter lasts 1 unit, the gap between letters lasts 3 units, and the gap between words lasts 7 units. That is why the written notation needs two separators: a single space between letter codes stands for the 3-unit letter gap, and the converter uses a slash between words to stand in for the 7-unit word gap. Sending SOS at 1 unit = 100 ms, each dot runs 100 ms, each dash 300 ms, and the whole signal takes about 2.3 seconds of key-down and key-up time.

The length economy is the design insight. E, the most common letter in English, is a single dot — the shortest possible signal — while Q, Z and the digits stretch to four elements. Samuel Morse counted letter frequencies in printer type trays to assign short codes to common letters, which is the same intuition behind Huffman coding a century later: minimize total transmission time for typical text.

The alphabet in dots and dashes

  • E is a single dot, the shortest signal
  • Common letters like T (−) are shorter than rare ones
  • Digits 0–9 use five-element patterns
  • A slash (/) separates words; a space separates letters

The full letter table

LetterCodeLetterCode
A.-N-.
B-...O---
C-.-.P.--.
D-..Q--.-
E.R.-.
F..-.S...
G--.T-
H....U..-
I..V...-
J.---W.--
K-.-X-..-
L.-..Y-.--
M--Z--..

The digits follow one pattern: 1 is .----, 2 is ..---, 3 is ...--, 4 is ....-, 5 is ..... and then the sequence mirrors, with 6 as -...., 7 as --..., 8 as ---.., 9 as ----. and 0 as -----. Every digit has exactly five elements, so a received five-element group is always a digit and shorter groups are always letters — a useful checksum when copying weak signals by ear.

Encoding and decoding behavior

What encode mode does

In encode mode, lowercase input is uppercased automatically, so sos and SOS produce identical output. Spaces between words become slashes, and characters with no entry in the table — punctuation, symbols, accented letters — are skipped silently rather than causing an error. SOS! encodes as ... --- ... with the exclamation dropped. This tolerant behavior makes the encoder useful for cleaning up text before manual keying: paste a sentence, copy the dot-dash string, and send it without stopping to wonder what an unsupported character should sound like.

What decode mode does

In decode mode, input splits on slashes into words and on spaces into letters. A group that matches nothing in the table — a mistimed dash, a stray five-dot cluster like ..... — decodes as a question mark in place, so ... --- ? ..- tells you exactly where the copy failed without discarding the rest of the message. Extra spaces and slashes are tolerated, so sloppy spacing still decodes as long as the element patterns themselves are intact.

Operators add one more layer on top of the raw letters: standard abbreviations. CQ calls any station, K invites the other side to transmit, AR ends a message and SK ends a contact. Those sequences are just letters run together — CQ is -.-. --.- — so you can build them with this converter, but they are sent as unbroken words and heard as single units, which is why experienced operators parse them by rhythm rather than letter by letter.

Common mistakes when typing Morse

  • Forgetting spaces between letters: --... without gaps is a single group (the digit 7), while -- ... decodes as two letters, T and H
  • Using a slash between letters instead of words — slashes mark word boundaries only
  • Mixing dots and dashes with other characters such as underscores or bullets, which do not match the table
  • Expecting punctuation to encode; only letters and digits are supported, and everything else is skipped
  • Leaving double spaces inside a word during decode, which are simply ignored rather than treated as word breaks

Why Morse still matters

Morse is used in aviation beacons, amateur radio and emergency signaling. It remains readable when voice or digital links fail, which is why pilots and radio operators still learn it. The encoding also survives where bandwidth is scarce: a 60-word-per-minute operator transmits around 5 characters per second, far below any voice channel, and a narrow receiver filter a few tens of hertz wide can pull a Morse signal out of noise that renders speech unintelligible. SOS itself — not an abbreviation but chosen for its unmistakable rhythm — stayed the maritime distress standard until 1999, and the ... --- ... pattern is still required knowledge on the amateur radio exams in most countries.

Frequently asked questions

What separates words in Morse?

This converter uses a slash (/) between words in text form, matching the common written notation. Letters inside a word are separated by a single space.

What is SOS in Morse code?

... --- ... — three dots, three dashes, three dots, with spaces between the letters. The converter produces exactly that from the default input.

How do I type a dash?

Use a normal hyphen-minus (-). Dots are periods, and letters within a word are separated by spaces.

How long is a dash compared to a dot?

Exactly three times as long: a dash lasts 3 time units, a dot 1, the gap between elements 1, between letters 3, and between words 7.

What happens to punctuation?

Basic punctuation is not in this converter’s table, so those characters are skipped during encoding. SOS! still encodes as ... --- ...

What does a question mark in decoded output mean?

A code group matched nothing in the table. It is replaced with ? in place, so ... --- ? ..- shows exactly which letter failed while the rest decodes normally.

Does lowercase text encode differently?

No. Input is uppercased automatically, so sos and SOS both produce ... --- ...

Which letter has the shortest code?

E, a single dot. T is the shortest dash. Samuel Morse assigned short codes to frequent letters based on printer type-tray counts, the same logic as modern Huffman coding.

How are digits encoded?

All digits use five elements: 1 is .----, 5 is ..... and 0 is -----. Any received five-element group is guaranteed to be a digit.

Method and sources

Calculation basis

Conversions and formats follow the relevant IETF RFCs and IEEE standards, including RFC 4648 for Base64 and RFC 791 for IPv4 addressing.

Last updated: November 18, 2026
Formula & data sources
  • International Morse code character table.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 18). Morse Code Converter. https://calcseed.com/c/developer/morse-code-converter/
MLA 9"Morse Code Converter." CalcSeed, 18 Nov. 2026, calcseed.com/c/developer/morse-code-converter/.
ChicagoCalcSeed. "Morse Code Converter." Last modified November 18, 2026. https://calcseed.com/c/developer/morse-code-converter/

Related calculators