Morse Code Translator

Convert between plain text and Morse code. Everything runs in your browser.

Advertisement

What the translator does

This page converts ordinary text into Morse code using the International Morse standard. Each letter from A to Z and each digit from 0 to 9 has an entry in the table, and the output places a single space between one character's code and the next. Anything without an entry, including punctuation, accented letters and symbols, is copied through unchanged.

The conversion is one direction. Text goes in, dots and dashes come out. Morse pasted into the input is not decoded, because the page has no lookup from code back to letter and no rule for deciding where one character ends.

How the code is built

Morse assigns the shortest codes to the most frequent letters, which is why E is a single dot and T is a single dash, while Q is dash dash dot dash. The full alphabet uses one to four symbols. Digits use exactly five each, running from one as dot dash dash dash dash through five as five dots, then six as dash dot dot dot dot to zero as five dashes.

In this implementation a space character has no code of its own, so it survives as whitespace. The join already places a space between characters, which means a gap between words appears as extra space rather than a slash. That is readable, but it is not the transmission convention, where a slash or a longer pause marks the word gap.

Worked example

The distress call is the cleanest illustration. S is three dots, O is three dashes and S is three dots again, so SOS becomes dot dot dot, space, dash dash dash, space, dot dot dot. Nothing about the output depends on case, since the input is uppercased before lookup, and the three letters stay grouped exactly as they were typed.

A longer word behaves the same way. HELLO becomes four dots for H, one dot for E, dot dash dot dot for L twice, and three dashes for O, all separated by single spaces. If you then add a space and a year such as 2026, each digit becomes five symbols, and the boundary between the word and the number shows up as a wider gap with no slash in it.

Limits and related converters

Punctuation is missing by design. The full stop, comma, question mark, colon and the procedural signals used by amateur radio all have standard codes, but they are not in this table, so they pass through as themselves and break the visual rhythm of the output. Lowercase input is fine; mixed case is fine; anything outside the Latin alphabet is not converted at all.

The tool also gives no timing information. Real Morse depends on the relative length of dots, dashes and the gaps between them, and a text transcription cannot carry that. For other ways of representing the same text, the text to binary converter and the text to hex converter produce fixed-width representations, while the base64 encoder and decoder produces something that can be pasted into systems that expect plain ASCII.

Frequently asked questions

No. Text to Morse is the only direction. Decoding needs rules for character and word boundaries that this page does not implement.
The output joins each character with a single space, so a typed space simply adds another gap. The slash convention is a transmission aid, not part of the character table.
No. Only A to Z and 0 to 9 have entries. A full stop or question mark is copied through as itself, unchanged.
Yes, in amateur radio, aviation beacons and some maritime and emergency signalling, though it is no longer required for most commercial use.