Morse Code Translator

Type text on the left and it turns into Morse code on the right; paste a string of dots and dashes and it is recognised and decoded back to text. Letters, digits and common punctuation are supported, you can play the code aloud at an adjustable speed, and the full chart is further down the page. Everything runs locally in your browser, nothing is uploaded.

Input

Text is converted to code; dots and dashes are decoded to text.

Morse Code

Play:
Try it:
Notes:
1. The code uses . for a dot (dit) and - for a dash (dah); one space between letters, and / between words. Pasted code written with • · _ — is also recognised, and words may be separated by three spaces or | as well.
2. Morse code is case-insensitive — sos and SOS are the same string; decoded text is shown in upper case.
3. Chinese characters have no international Morse code. Will Chinese be converted via pinyin? No — there is no agreed standard, so this page marks characters it cannot encode as # and tells you. Chinese telegraphy uses the four-digit “Chinese telegraph code”, a separate system.
4. Playback uses the browser's built-in audio synthesis and loads no files; speed follows the PARIS standard, and 15 WPM is the usual beginner speed in amateur radio.
5. Your content stays in your browser — nothing is saved or uploaded.

Morse Code Chart

Click any entry to put it into the input box on the left.

About Morse Code

Dots, dashes and three gaps: the whole of Morse code

Morse code uses only two signals: a short “dot” and a long “dash”, with a dash lasting three dots. What really decides whether it can be understood are the three gaps: one dot between the elements of a letter, three dots between letters, seven dots between words. Written down, the convention is . and - for dot and dash, one space between letters, and / between words. The shorter codes for common letters are deliberate: E is a single dot and T a single dash because they are the most frequent letters in English — a principle that predates Huffman coding by a century.

Why SOS is ··· --- ···

SOS is not short for Save Our Souls; that story was made up afterwards. The 1906 International Radiotelegraph Convention chose it simply because three dots, three dashes, three dots is the easiest pattern to key and the easiest to pick out of noise, and sent as one run with no letter gaps it is really a single nine-element symbol. It is in the “Try it” row on this page because a good share of people searching for Morse code are looking up this one code. “I LOVE YOU” and “HELLO” are asked just as often — one click shows and plays them.

The two most common decoding problems

The first is separators. Code copied from many places has no spaces between letters, and a long run such as ...---... can be split in several ways; a machine cannot know which you meant, so this page requires at least one space between letters and a slash, a vertical bar or three spaces between words. The second is the symbols themselves. Code found online often uses bullets, underscores or long dashes instead of the standard dot and hyphen; all of these are accepted and normalised before decoding. A combination that is not in the chart is shown as # rather than guessed.

Chinese and Morse code

International Morse code defines only Latin letters, digits and a set of punctuation; Chinese characters are not included. Chinese telegraphy took another route: each character is first given a four-digit number (the “Chinese telegraph code”, or standard telegraph code), the digits are sent in Morse, and the receiver looks the characters up in a code book. So “translating” a passage of Chinese straight into Morse has no single answer; this page does not guess, and characters it cannot encode are shown as # instead. If what you have is a string of four-digit groups, it is most likely Chinese telegraph code, which this page cannot decode. To count the letters before you type them in, use the Online Word Counter.

Decoded text always comes out in upper case, because Morse code itself has no case. To turn the result into normal sentence case, paste it into the Case Converter and choose “Sentence case”.

FAQ

Is my content uploaded to a server?

No. Encoding, decoding and audio playback are all done by JavaScript in your browser; the page has no backend and nothing you type leaves your device. Disconnect from the network after the page has loaded and the tool keeps working.

How does it decide whether I typed text or code?

If the input contains only dots, dashes, spaces and slashes (and their variants, such as bullets and underscores), it is treated as code and decoded; as soon as any letter or digit appears, it is treated as text and encoded. The note under the input box says which direction is in use. In the rare cases where both readings are possible — a single minus sign, say — it is treated as text.

Which characters are supported?

The 26 English letters, the digits 0–9, and the full stop, comma, question mark, apostrophe, exclamation mark, slash, brackets, colon, semicolon, equals, plus, minus, underscore, quotation mark, dollar sign and @. Accented letters such as é and ü have their accents removed before encoding. Chinese characters, kana, hangul and emoji have no Morse equivalent and are shown as #.

What is SOS in Morse code?

... --- ..., three dots, three dashes, three dots. Sent properly there are no letter gaps in between; the whole thing is treated as one symbol. It is the international distress signal, but it is not an abbreviation of any words.

Can Chinese be converted to Morse code?

International Morse code has no Chinese characters. Chinese telegraphy uses the “Chinese telegraph code”: each character becomes a four-digit number, and the digits are sent in Morse. This page does not attempt pinyin or any other guessed conversion; Chinese characters are marked #. If your goal is to send Chinese, convert it to pinyin first and encode that — and the receiver needs to know it is pinyin.

What does WPM mean, and which speed should I use?

WPM is words per minute, measured with the standard word PARIS (50 dot-lengths). 5 to 10 WPM suits beginners learning to copy by ear, 15 WPM is the usual speed for amateur radio exams and daily practice, and 20 WPM and up is the pace of an experienced operator. A tone between 600 and 800 Hz is generally the easiest to hear.

Why is there no sound when I press play?

Most browsers only allow sound after the page has been clicked once, so press “Play code” with the mouse or a finger rather than triggering it from a script. On a phone, check that it is not muted and the media volume is not zero; the iPhone's silent switch also mutes web audio. If there is no code on the right yet, the play button does nothing.

What do the slash and the three spaces in the code mean?

Both mark the gap between words. The standard form is one space between letters and a / (with a space either side) between words; some people use three spaces or | instead. All three are recognised here, and the output always uses /.