Morse Code Translator
Translate to and from Morse code.
Free · Runs in your browser · Nothing is uploaded
/. Letters are separated by spaces.Paste anything into the box and this Morse code translator works out which direction you want. Type ordinary words and it returns Morse; paste dots and dashes and it gives you the text back. There is no mode switch to get wrong, because the tool inspects what you typed — if the input is nothing but dots, dashes, spaces and slashes, it can only be Morse, and it decodes accordingly. Everything runs in your browser, so long messages stay on your machine.
How the spacing works, and why it is the part people get wrong
Morse has three different gaps and they carry as much meaning as the dots and dashes. Within a letter the marks run together with no gap at all. Between two letters there is a single space. Between two words there is a longer gap, which this tool writes as a slash surrounded by spaces.
So HELLO WORLD comes out as .... . .-.. .-.. --- / .-- --- .-. .-.. -.. — five letter groups, a slash, then five more. Strip the slashes out and a decoder has no way to know where one word ends and the next begins; you would get a single run-on string of letters. This is the single most common mistake when people copy Morse from one place to another, and it is why the decoder here accepts both a slash and a run of three or more spaces as a word break.
When you are reading Morse aloud or tapping it out, the classic timing rule is that a dash lasts three times as long as a dot, the gap inside a letter is one dot long, the gap between letters is three dots, and the gap between words is seven. You do not need any of that to use this tool, but it explains why the written form uses those three distinct separators.
Why E is one dot and Q is four marks
Morse is not arbitrary. Samuel Morse and Alfred Vail assigned the shortest codes to the letters that appear most often in English, which is why E is a single dot and T is a single dash — the two most frequent letters in the language get the two shortest possible signals.
Work down the frequency table and the pattern holds: A, I, N and M are all two marks. The rare letters get long codes. Q is --.- and J is .--- , four marks each, because you send them rarely enough that the extra time costs you little across a whole message.
This is a genuinely early piece of compression engineering, done in the 1830s by counting type in a printer's shop. The result is that ordinary English text in Morse is meaningfully shorter to transmit than it would be under a fixed-length code — the same insight that underpins Huffman coding a century later.
SOS is not an abbreviation
SOS encodes as ... --- ... — three dots, three dashes, three dots. It does not stand for Save Our Souls or Save Our Ship. Those are backronyms invented after the fact.
It was chosen in 1906 precisely because that nine-mark sequence is unmistakable and easy to send under pressure. Sent as a continuous string with no letter gaps it forms a distinctive rhythm that cuts through noise and is hard to confuse with anything else, which matters enormously when the operator is panicking and conditions are bad.
Before SOS, the common distress call was CQD. The change was an international agreement, and it took years to fully displace the old signal — the Titanic's operators famously sent both.
What this Morse code translator covers and what it leaves out
The tool handles the twenty-six English letters, the digits zero through nine, and a set of common punctuation marks including period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quotation mark, dollar sign and at sign.
The at sign is the newest addition to International Morse, added in 2004 as .--.-. to make email addresses sendable. It is a fused A and C, and it is the first new character adopted in decades.
What is not covered are the accented and non-Latin extensions. Several languages have their own Morse letters — the German umlauts, the Scandinavian Æ and Ø, Spanish Ñ — and there are entirely separate Morse systems for Cyrillic, Greek, Hebrew, Arabic, Japanese kana and Korean. Characters outside the supported set are dropped rather than mangled, so a message with an accented character will come out missing that letter rather than silently wrong.
Where people actually use this
Amateur radio is the obvious one. Morse, or CW as operators call it, remains popular precisely because it works when nothing else does — a Morse signal punches through noise and weak conditions at power levels where voice is unintelligible. Many countries dropped the Morse requirement for licensing years ago, and the mode is still thriving anyway.
Aviation and marine navigation still use it. Navigational beacons identify themselves by transmitting their callsign in Morse on a loop, and pilots verify they have tuned the right beacon by listening for those letters. It is a live, working system, not a museum piece.
Then there is the accessibility use, which is the one most people never hear about. Morse can be sent with a single switch — a puff tube, a blink sensor, a button pressed by whatever movement someone has available. For people with severe motor impairments it is a genuine input method, and modern phones ship Morse keyboards for exactly this reason.
The rest is puzzles, escape rooms, geocaching, tattoos and games. All perfectly good reasons to need a translator.
Reading it back without a decoder
If you want to actually learn Morse rather than paste it, the advice from every experienced operator is the same and it is counterintuitive: do not learn the dots and dashes visually. People who memorise the written patterns hit a hard ceiling around five words per minute, because they end up translating twice — sound to written pattern, then pattern to letter.
The method that works is called Koch, and it trains recognition by sound from the start. You learn two characters at full target speed, drill until you are accurate, then add a third. The speed never drops; the alphabet grows. The related Farnsworth approach sends each character at full speed but stretches the gaps between them, so your ear learns the correct rhythm of each letter while your brain still has time to catch up.
Use this translator to check your work and to encode things quickly. Use a Koch trainer if you want it in your head.
Morse Code Translator: choosing the right approach
Morse Code Translator is designed around this task: Translate to and from Morse code. When preparing input for morse code translator, specify the intended use and the details that must remain accurate. Use the instructions below to judge whether the current output fits that purpose.
Distinguish translation of meaning from substitution of symbols or letters. An encoding can be reversible without understanding the message, while translation needs context.
Character substitution follows a mapping, while natural-language translation follows meaning and grammar. A novelty encoding can be playful or educational without being a secure communication method.
Decide what would count as a successful result before you begin. For symbol mappings and reversible text, that means checking the relevant constraint rather than choosing whatever looks most polished. Keep a short note of the intended audience or destination, any details that must remain exact, and the change you actually need. This gives you a basis for comparing alternatives and prevents a later edit from quietly changing the task.
Worked examples
sos... --- ...Three dots, three dashes, three dots — chosen in 1906 for being unmistakable under bad conditions, not because the letters abbreviate anything.
hello world.... . .-.. .-.. --- / .-- --- .-. .-.. -..The slash is the word gap. Without it a decoder reads eleven letters in a row with no idea where the break falls.
.-- .... .- - / .... .- - .... / --. --- -.. / .-- .-. --- ..- --. .... -what hath god wroughtThe first message Samuel Morse sent over a long-distance line, in 1844. Paste dots and dashes and the tool decodes automatically.
Frequently asked questions
Do I need to choose encode or decode?+
No. The tool detects direction from what you type. If the input contains only dots, dashes, spaces, slashes and pipes, it is treated as Morse and decoded. Anything else is treated as text and encoded. The detected direction is shown above the result so you can confirm it guessed right.
How do I write a space between words?+
Use a forward slash with spaces around it, which is what the encoder produces. The decoder also accepts a run of three or more consecutive spaces as a word break, so Morse copied from other sources usually works without editing.
Does it handle numbers and punctuation?+
Yes. All ten digits and around twenty punctuation marks are supported, including the at sign, which was added to International Morse in 2004 so email addresses could be sent.
Why did some characters disappear from my message?+
Characters with no International Morse equivalent are dropped rather than guessed at. That includes accented letters and non-Latin scripts, which have their own separate Morse variants that this tool does not implement. Dropping is the safer failure — a missing letter is obvious, a wrong one is not.
Is SOS short for Save Our Souls?+
No. That is a backronym invented afterwards. SOS was adopted in 1906 because the sequence of three dots, three dashes and three dots is rhythmically distinctive, easy to send under stress and hard to mistake for anything else.
Can I learn Morse from this page?+
You can learn what the codes are, but reading them visually is the approach that stalls learners around five words per minute. If you want fluency, use a Koch or Farnsworth trainer that teaches recognition by sound at full speed from the beginning, and use this translator to check yourself.
Is my text sent anywhere?+
No. Encoding and decoding both run in your browser. Nothing you type leaves your device.
Does a reversible encoding keep a message secret?+
No. Reversibility through a simple public mapping makes recovery straightforward. Use appropriate security tools for confidential communication; treat these encodings as utilities, puzzles, or visual transformations.
Why should I check the input format first?+
The same characters can represent different values under different conventions. Identify the expected alphabet, units, separators, or color notation before interpreting the output. A format mismatch can create a plausible-looking result that answers a different question from the one you intended.
How do I test a conversion with a small example?+
Choose a value whose expected interpretation you can check independently. Add one unusual feature at a time, such as punctuation or a separator. This helps identify the tool's practical boundaries without assuming that success on one simple input proves support for every format.
Is an approximate match the same as an exact equivalent?+
No. An approximation selects a nearby or useful representation under particular rules. Keep those rules in mind and verify the result in the destination. A neat label or precise-looking number does not remove uncertainty introduced by a limited palette, mapping, or model.
Can a round-trip check prove that a result is correct?+
It can reveal some problems, but it is not complete proof. Two directions can share the same assumption, and a lossy conversion may discard information. Compare with an independent reference when correctness matters rather than relying only on returning to the starting value.
Why might a result display differently on another device?+
Fonts, character support, screen settings, and application rules can differ. Test the output where it will actually be used. Keep a plain or original reference when the transformed appearance matters, so a display problem is not mistaken for a change in the underlying information.
Can I use novelty text for private communication?+
Do not treat a visual transformation or simple mapping as secure encryption. Someone familiar with the convention may reverse it easily. Use an appropriate secure communication method for confidential material and keep novelty encodings for their intended decorative, educational, or puzzle uses.
Should I preserve leading zeros and separators?+
Preserve them in the original until you know their role. They may be meaningful in identifiers, grouped numbers, or encoded text. A conversion that treats the input as an ordinary quantity can remove structure that another system needs to interpret it correctly.