What the Morse Code Translator does, and when you need it
The Morse Code Translator turns text into Morse code, the dots and dashes of the telegraph, and Morse code back into text. Choose Text to Morse code or Morse code to text, type or paste, and the translation appears in the second box as you type, ready to copy or download. It follows the International Morse code: the 26 letters, the 10 digits and the common punctuation marks.
Letters in Morse are separated by a space and words by a slash, and lines stay lines. It runs in your browser: your message is never uploaded and never saved, so closing the page forgets it.
Some jobs it is made for:
- Learning Morse code, by seeing your own words in dots and dashes.
- Puzzles, quizzes and escape rooms, with a message to write or to read.
- Checking a message you have written down by ear or by light.
- Fun messages for friends who know the code, or want to learn it.
- Classroom work on codes, signals and the history of the telegraph.
Step by step: translating
It takes a few seconds, and the same steps work on a phone and on a computer:
- Choose the way under Do: Text to Morse code, or Morse code to text.
- Type or paste in the top box. For Morse, use dots and dashes, a space between letters and a slash between words, for example
... --- .... - Read the translation in the second box. The line under it says, for example, that letters are split by a space and words by a slash.
- Copy or download it.
Press Try a sample: the box fills with SOS help needed at 5 PM, and the result is ... --- ... / .... . .-.. .--. / -. . . -.. . -.. / .- - / ..... / .--. --. Copy that, choose Morse code to text, paste it back, and the result is SOS HELP NEEDED AT 5 PM.
How it translates, exactly
The rules are written here in full, and the same rules are checked by our tests.
| Part | The rule | Example |
|---|---|---|
| The code | International Morse code (ITU-R M.1677-1): A to Z, 0 to 9 and . , ? ' ! / ( ) & : ; = + - _ " $ @ | SOS is ... --- ... |
| Text to Morse | Capitals and small letters are the same. Letters are split by a space and words by / ; each line stays a line | hello world is .... . .-.. .-.. --- / .-- --- .-. .-.. -.. |
| No sign | A character with no Morse sign, such as # or a Hindi letter, is left out, and the note says how many | नमस्ते hi # gives .... .. |
| Morse to text | Letters split by spaces; words split by a slash, a bar | or three spaces or more. The text comes out in capitals | ... --- ... | .... . .-.. .--. is SOS HELP |
| Dots and dashes | A middle dot or a bullet counts as a dot; a minus sign, a long dash or an underscore counts as a dash | ·− is read as .- |
| Unknown codes | A group that is not a Morse sign becomes ?, and the note says how many | ...---... written as one group |
Because the question mark has its own code, ..--.., a ? in the text could be a real question mark or an unknown code: the note tells you how many unknown codes there were.
Real results from our tests
We tested Morse Code Translator with headless Chromium 148, the open-source browser Chrome is built on, on a Windows laptop with an Intel Core i7-1185G7 and 32 GB of memory, on 1 November 2026. Other work was running on the laptop at the same time, so times vary from run to run: each time below is the middle one of 3 runs.
Translating is quick. It took 117 milliseconds or less to translate 500,000 characters of English text into Morse code, the most the page takes at once.
After a text is put in the box, the page waits 0.15 second before it works, so a burst of typing is worked on once, and 0.4 second when the text has more than 400,000 characters. So the result of 500,000 characters of English showed between 0.56 and 0.57 second after it was put in the box in our test. A result of more than 100,000 characters shows only its first 100,000 in the box, and says so, because showing a very long text is slow for the browser; Copy and Download take all of it.
Checked by our tests. Every example on this page is one of our tests, run on the page's own code. They cover every letter and digit both ways, punctuation, words split by a slash, a bar and three spaces, dots and dashes typed as other characters, characters with no sign and unknown codes, and text to Morse and back.
Size and offline. On a first visit the page downloads about 0.1 MB for the tool: the page, its styles, its scripts and the fonts, with Google's ad code not counted. In our test we switched the network off after the page had loaded and pressed Try a sample: the result showed 0.6 seconds later or less in each of 15 runs.
Phone-sized screen. We also ran the tests on a phone-sized screen in headless Chromium (390 × 844 pixels, with touch). That is not a real phone. Every button, box and tick box was 44 pixels high or more, and the page did not scroll sideways. These tests don't cover Safari or Firefox.
Try it yourself: press "Try a sample" at the top of this page. It puts SOS help needed at 5 PM in the box, and the result is its Morse code, starting with ... --- ... and with a slash between words. Then copy it, choose Morse code to text and paste it back.
Try the sampleThe Morse alphabet
Each letter is a short pattern: a dot is a short signal and a dash a long one. The commonest letters have the shortest codes: E is a single dot and T a single dash. Some to remember:
| Letter | Code | Letter | Code |
|---|---|---|---|
| A | .- | N | -. |
| E | . | O | --- |
| I | .. | S | ... |
| M | -- | T | - |
The digits follow a pattern of five: 1 is .----, 2 is ..--- and so on to 5, ....., then dashes take over: 6 is -.... and 0 is -----. Punctuation has longer codes: the full stop is .-.-.-, the comma --..-- and the question mark ..--... Type any letter or sign in the top box to see its code.
Reading Morse, and SOS
To read Morse, the gaps matter as much as the signals. The tool needs a space between letters and a slash, a bar or three spaces between words: ... --- ... .... . .-.. .--. and ... --- ... | .... . .-.. .--. both give SOS HELP. Without the spaces between letters, the dots and dashes run together and can't be told apart: ...---... as one group is not a letter, so it comes out as ?.
That is also the story of SOS. As a distress signal it is sent as one unbroken run of three dots, three dashes and three dots, not as three letters. Written as letters with spaces, ... --- ..., the tool reads it as S, O, S. Signals sent as one run like this are called prosigns; the tool reads only letters, digits and punctuation, so a prosign is read only when its letters are written apart.
Dots and dashes typed with other characters are fine: a middle dot · or a bullet counts as a dot, and a minus sign −, a long dash or an underscore counts as a dash, as they often appear in copied text.
Everyday uses
- Learn the code: type a word, read its code, then cover the text and read the code back.
- Set a puzzle: translate a clue to Morse, and the players translate it back here.
- Check a message you wrote down while listening to Morse, by translating it to text.
- Mix codes: turn the same text into binary with Text to Binary, or write it backwards with Reverse Text.
Morse code is still used by some amateur radio operators, and it shows up in films, games and puzzles. The tool writes it as text; it doesn't play it as sound or light.
For practice, a short word with a mix of signals is a good start: PDF is .--. -.. ..-.. Cover the right-hand box, read the code aloud as short and long sounds, and check your answer by translating it back.
Opening a text file
Choose Open a text file, or drop a file anywhere on the page, and the tool reads it on your device. These files open: .txt, .md, .csv, .tsv, .log, .json, .xml, .srt, .vtt, .html and other plain-text files, with up to 500,000 characters. The file's name and size appear below the box with an x; press the x to remove the file's text. The file is read on your device and never uploaded. The result can be copied, or saved as a new text file; the file you opened is never changed.
- Letters. A file saved as UTF-8 (a byte order mark at the start is dropped) or as UTF-16 with a mark is read correctly, Hindi and Tamil included. A file that is not valid UTF-8 is read as Windows-1252, and the page says so: "This file isn't saved as UTF-8, so it was read as Windows-1252. If letters look wrong, save it as UTF-8 and add it again."
- Windows line breaks. A Windows file stores each line break as two characters. The tool reads the pair as one line break, so each line of a Windows file is translated on its own.
- Several files. Only the first one opens, and the page says so, for example "Opening a.txt only. Open the others one at a time."
- Not a text file. A Word, PDF or picture file renamed to .txt is not read, and the page says it doesn't look like a text file. A file named .docx, .pdf or .rtf gets this message: "Only text files (.txt and similar) can be opened here. For a Word or PDF file, copy its text and paste it into the box."
- Empty or too long. An empty file says it is empty. A file with more than 500,000 characters is not opened, and the page says how many characters it has.
For a Word or PDF file, open it in the program you normally use, select the text, copy it, and paste it into the box. A PDF whose pages are scans holds pictures, not text, so there is nothing to copy.
Private: your text stays on your device
Your text never leaves your device. The tool runs inside your browser and has no upload step: it never sends the text you type, paste or open anywhere, and it keeps no copy of it, so closing the page forgets it. The page's Content Security Policy lets it contact only this site and Google's ad service, which pays for the site; our code never gives your text to the ad code. You can check it yourself in your browser's network panel (F12 on a computer): translating adds no request that carries your text. The site's menu does remember the last few tools you opened, on your device.
A message in Morse code is still a message. This tool turns it into text, or text into Morse, without handing it over. Our privacy policy says what we collect, and How we prove it shows how you can check our claims yourself.
Once the page has loaded, it also works with the internet switched off. In our test we switched the network off after the page had loaded and pressed Try a sample, and the result showed 0.6 seconds later or less in each of 15 runs.
Long texts
The tool takes up to 500,000 characters at once, about 500 KB of English text. What happens when a text is longer:
- A paste that would go over the limit is not added. This holds for Ctrl+V, for press and hold, and for the Paste button. The page says, for example: "That text is very long (550,000 characters), so it was not added. The box can hold 500,000 characters. Split it into smaller parts for faster results."
- A file with too many characters is not opened. The page says, for example: "long.txt has 550,000 characters, more than the 500,000 counted at once. Split it into smaller parts for faster results."
- A text that gets in some other way stays, unchanged. If text is dragged into the box, for example, it stays there, the result stays empty and the note says: "This text is very long (550,000 characters). Split it into smaller parts for faster results."
Translating is quick. In our tests it took 117 milliseconds or less to translate 500,000 characters of English text into Morse code. The slow part is the browser showing a very long text in a box, so a result of more than 100,000 characters shows only its first 100,000, without cutting an emoji in half, and the note says so, for example "Showing the first 100,000 of 164,999 characters. Copy and Download take all of it." Copy and Download always take the whole result.
Tips
- Leave a space between letters and a slash between words when you type Morse.
- Check the note for characters left out or codes not known.
- Write numbers as digits: each digit has its own five-signal code.
- Translate back to check: text to Morse and back gives the text in capitals.
- Hindi and other scripts have no International Morse code; write the words in English letters first.
- Keep your own copy. The page forgets everything when you close it.
Limits
- No sound or light. It writes Morse as dots and dashes; it doesn't play it.
- International Morse only: the 26 letters, the digits and common punctuation. Letters of other alphabets, such as Hindi, have no sign here.
- No prosigns, such as SOS sent as one run.
- Capitals. Morse has no capital letters, so text read from Morse comes out in capitals.
- Gaps are needed between letters and words to read Morse.
- 500,000 characters at once, about 500 KB of English text.
Terms explained
- Morse code
- A way of sending letters as short and long signals, made for the telegraph in the 1800s.
- Dot and dash
- The short and the long signal; also called dit and dah.
- International Morse code
- The standard version of the code, set out by the International Telecommunication Union.
- Prosign
- A signal sent as one run of dots and dashes, such as SOS, rather than as separate letters.
- SOS
- The international distress signal: three dots, three dashes, three dots.