What is a Morse code generator?
A Morse code generator turns letters and digits into Morse code — patterns of dots and dashes. S becomes three dots, O becomes three dashes, and SOS becomes ... --- ..., with letters separated by spaces and words separated by a slash. The default text on this page is SOS, 3 characters in, and the output is ... --- ... .
Morse code was invented in the 1830s for the electric telegraph, and it is still used today by radio amateurs, sailors, and learners. It needs no alphabet on the wire — just short and long signals — which is why it worked over crackling radio links where voice could not get through.
This tool outputs Morse symbols as text — dots, dashes, spaces, and slashes on the screen. No audio is generated, and no sound plays. Copy the symbols, read them, or tap them out yourself. Everything runs in your browser — your text never leaves your device, nothing is stored, and there is no account to create.
How Morse code works
Each letter and digit has its own pattern of dots and dashes. Short, common letters have short patterns: E is one dot, T is one dash, and A is dot-dash. Long, rare letters have long patterns: J is dot-dash-dash-dash, and Q is dash-dash-dot-dash. Digits are all five symbols long: 1 is dot-dash-dash-dash-dash, and 0 is five dashes.
Letters in a word are separated by a single space, and words are separated by a slash with spaces around it — ' / '. The default text shows the rule: SOS is one word, so its three letters are separated by spaces, giving ... --- ... . Two words, HELLO WORLD, would give .... . .-.. .-.. --- / .-- --- .-. .-.. -.. .
Only letters A to Z and digits 0 to 9 are converted. Other characters — punctuation, symbols, and accented letters — are skipped, and the conversion carries on with the next letter. A space between words becomes the slash separator, so the shape of your message survives even when a character is skipped.
The output on this page is the written form of the code, and it follows the written convention exactly: a dot is a full stop character, a dash is a hyphen, letters are split by one space, and words are split by a slash with a space on each side. That written form is what radio operators copy into their logbooks, what puzzle makers print in their clues, and what learners write on their practice sheets.
The Morse alphabet: dots, dashes, and timing
The alphabet is built on frequency. E, the most common letter in English, is a single dot. T, the second most common, is a single dash. A, I, M, and N are two symbols each. The rarest letters — J, Q, X, Y, and Z — are four symbols each. The design makes common words fast to send and rare words slow, which is the whole point of the code.
Digits follow their own pattern. Each digit is five symbols, and the number of dots counts up from 1 to 5: 1 is one dot and four dashes, 2 is two dots and three dashes, and 5 is five dots. Then the dashes take over: 6 is one dash and four dots, and 0 is five dashes. Once you know the pattern, the digits are easy to remember.
In real Morse, timing matters as much as the pattern: a dash is three times as long as a dot, and the gaps between letters and words are longer still. This tool outputs symbols as text, so the timing is up to you — a dot is a short tap, a dash is a long one, and the spaces and slashes show where to pause. A base64 encoder decoder does a different kind of letter work for data, turning bytes into safe text.
Beyond the letters there are prosigns — short patterns with a special meaning, sent as one run without gaps between the letters. SOS is the famous one: three dots, three dashes, three dots, sent as a single block. Others mark the end of a message or ask the other station to wait. This tool writes SOS as three spaced groups, which is how learners first meet it, and the spacing is what makes each letter readable on its own.
A worked example: SOS and HELLO
Take the default text exactly as it sits on the page: SOS. It is 3 characters long. S is three dots, O is three dashes, and S is three dots again, so the output is ... --- ... — three groups separated by spaces. SOS is the international distress signal, chosen because it is easy to send and impossible to mistake.
Now try HELLO. H is four dots, E is one dot, L is dot-dash-dot-dot twice, and O is three dashes, so the output is .... . .-.. .-.. --- — five groups, one per letter. Try 123 and the output is .---- ..--- ...-- — three groups of five symbols, one per digit.
Try two words. A B becomes .- / -... — the A group, a slash, and the B group. The slash is the word separator, and it is what keeps the two words apart. A word counter can check the length of the text before you convert it, and a random number generator can pick practice letters for you.
Who uses a Morse code generator, and why
Radio amateurs are the biggest users. Morse code — CW, as they call it — is still a live mode on the air, and a generator is how a beginner checks a call sign or practises a word before sending it. A learner who can read ... --- ... can recognise SOS on the air at once.
Learners and puzzle makers are the second group. Morse code shows up in escape rooms, treasure hunts, and puzzle books, because a message in dots and dashes looks like nonsense until you know the code. A puzzle maker who writes a clue in Morse gives the solver a code to crack, not just a message to read.
History lovers and sailors are the third group. Morse code is nearly two hundred years old, and it saved lives at sea for a century — the Titanic sent SOS in Morse in 1912. The tool on this page handles all three uses — type, read the symbols, copy — which covers most of what anyone needs.
Morse code generator vs a cipher
Morse code is a code, not a cipher. A cipher hides a message — a Caesar cipher shifts the letters so a stranger cannot read them. Morse code does the opposite: it makes the message readable to anyone who knows the code, in a form that can travel over a wire or a radio link. SOS in Morse is public, not secret. Binary is another code in the same sense — it changes the shape of the text without hiding it — and a binary text generator turns letters into 0s and 1s.
The same text-tools family on this site does the cipher job. A base64 encoder decoder moves data safely, and a random number generator picks practice letters. Morse code sits beside them: it changes the shape of the text, but it hides nothing.
The practical rule is simple: use Morse code when the message has to travel as dots and dashes, or when you are learning the code. Use a cipher when the message has to stay secret. And remember that this tool outputs symbols as text — no audio is generated — so the sound, if you want it, comes from you tapping the symbols out.
Common Morse code mistakes
The most common mistake is running the letters together. Morse letters must be separated by spaces, or ... --- ... becomes one long string nobody can read. The tool adds the spaces for you, but if you copy the output and strip the spaces out, the message is lost.
Second: confusing the word separator with a letter. Words are separated by ' / ', not by a double space. A double space looks the same on screen but means nothing in Morse; the slash is the mark that says a new word starts here.
Third: expecting punctuation to convert. Only letters A to Z and digits 0 to 9 are converted; other characters are skipped. A message with commas and full stops in it loses the punctuation, so write the words and add the punctuation back when you read it out.
Fourth: thinking the tool makes sound. It does not. This tool outputs Morse symbols as text — no audio is generated. If you want to hear the code, tap the dots and dashes out yourself, or use a dedicated Morse trainer that plays sound.
How to use this Morse code generator
Using this tool is simple. Type or paste your text into the box — the default is SOS. The Morse symbols appear instantly in the output box, with the input character count shown above it. Letters are separated by spaces, and words by ' / '. There is no button to press.
To convert a second message, select all, delete, and type the new one. To use the symbols somewhere else, copy them from the output box with the Copy button. To practise, cover the input, read the symbols, and work out the letters — E is one dot, T is one dash, and S is three dots.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device. It works offline once the page has loaded, so you can use it anywhere you learn the code. Try it with something real before you need it: type your name, read the symbols, and tap them out. For another way to turn text into code, try the hex encoder.