Morse Code Translator

Type a message to get it in International Morse code as you type, or paste dots and dashes to read them as text.

Direction
For Morse to Text, type . and – with a space between letters and a slash between words.
Press Play Sound beside the result to hear it. Speed uses the word PARIS.

Results

22 characters in Morse code

Morse Code

-- . . - / -- . / .- - / - .... . / --- .-.. -.. / -- .. .-.. .-.. / .- - / --... .-.-.-

A space between letters, a slash between words. At 20 WPM a dot lasts 60 ms.

Chart, ITU-R M.1677-1

  1. A.-
  2. B-…
  3. C-.-.
  4. D-..
  5. E.
  6. F..-.
  7. G–.
  8. H….
  9. I..
  10. J.—
  11. K-.-
  12. L.-..
  13. M—
  14. N-.
  15. O—
  16. P.–.
  17. Q–.-
  18. R.-.
  19. S…
  20. T–
  21. U..-
  22. V…-
  23. W.–
  24. X-..-
  25. Y-.–
  26. Z–..
  27. É..-..
  28. 1.—-
  29. 2..—
  30. 3…–
  31. 4….-
  32. 5…..
  33. 6-….
  34. 7–…
  35. 8—..
  36. 9—-.
  37. 0—–
  38. ..-.-.-
  39. ,–..–
  40. :—…
  41. ?..–..
  42. ‘.—-.
  43. –-….-
  44. /-..-.
  45. (-.–.
  46. )-.–.-
  47. “.-..-.
  48. =-…-
  49. +.-.-.
  50. @.–.-.

Common Signs Not in ITU-R M.1677-1

  1. !-.-.–
  2. ;-.-.-.
  3. &.-…
  4. $…-..-
  5. _..–.-

How to Use the Morse Code Translator

  1. Keep Text to Morse picked under Direction and type your message. The Morse code appears beside it, or under it on a phone, as you type.
  2. To read Morse code, pick Morse to Text and paste the dots and dashes. Put a space between letters and a slash, a pipe or three spaces between words.
  3. Press Play Sound to hear the code, and press it again to stop. Pick a slower Sound Speed while you learn the letters.
  4. Press Copy Text to copy the result, or Use Output as Input to copy the result into the first box with the direction reversed. Press Clear to empty the box.

Example With a Short Message

The example message is Meet me at the old mill at 7. With Text to Morse picked it becomes:

-- . . - / -- . / .- - / - .... . / --- .-.. -.. / -- .. .-.. .-.. / .- - / --... .-.-.-

Each letter has its own group of dots and dashes, with a single space after each letter and a slash after each word. The 7 is --..., two dashes and three dots, and the full stop is .-.-.-. Press Use Output as Input and the decoded text is MEET ME AT THE OLD MILL AT 7. in capitals, because Morse code has one signal for a and A.

International Morse Code Chart

The chart is from ITU-R M.1677-1, the International Telecommunication Union recommendation for International Morse code. It has codes for the 26 letters, an accented E, the ten figures and the punctuation marks in the table. Figures always have five signals: 1 is a dot and four dashes, and 0 is five dashes.

CharacterCodeCharacterCodeCharacterCode
A.-B-...C-.-.
D-..E.F..-.
G--.H....I..
J.---K-.-L.-..
M--N-.O---
P.--.Q--.-R.-.
S...T-U..-
V...-W.--X-..-
Y-.--Z--..É..-..
CharacterCodeCharacterCodeCharacterCode
1.----2..---3...--
4....-5.....6-....
7--...8---..9----.
0-----
MarkName in ITU-R M.1677-1Code
.Full stop.-.-.-
,Comma--..--
:Colon or division sign---...
?Question mark..--..
'Apostrophe.----.
–Hyphen, dash or minus-....-
/Fraction bar or division sign-..-.
(Left bracket-.--.
)Right bracket-.--.-
"Quotation marks.-..-.
=Double hyphen-...-
+Cross or plus sign.-.-.
@Commercial at.--.-.

The recommendation also has rules for signs that have no code of their own. A multiplication sign is sent as the letter X, -..-. A percent sign is sent as 0/0, with a hyphen after a number, so 50% becomes ..... ----- -....- ----- -..-. ----- and is decoded as 50-0/0.

Signs Not in the ITU Recommendation

Five marks in many Morse code charts are not in ITU-R M.1677-1. They are sent with the informal codes in this table, and the number of them is in the note under the result. In Wow! Ready? the exclamation mark is one such sign: .-- --- .-- -.-.-- / .-. . .- -.. -.-- ..--...

MarkNameCode
!Exclamation mark-.-.--
;Semicolon-.-.-.
&Ampersand, the same code as the Wait signal.-...
$Dollar sign...-..-
_Underscore..--.-

The recommendation also has signals for procedure rather than text. When decoding, these appear in square brackets by name, and ...---..., SOS sent with no gaps between the letters, is decoded as SOS.

SignalCode
Understood...-.
Error........
End of work...-.-
Starting signal-.-.-

Morse Code Timing and Speed

In ITU-R M.1677-1, the timing is in units of one dot. A dash is equal to three dots. The space between the signals of one letter is one dot, the space between two letters is three dots, and the space between two words is seven dots.

Speed is given in words per minute, using PARIS as the standard word. PARIS followed by a word space is 50 units long, so at W words per minute one dot lasts 1200 divided by W milliseconds. The sound has the same timing at the speed you pick.

Words per MinuteDotDash and Letter SpaceWord Space
5240 ms720 ms1680 ms
10120 ms360 ms840 ms
1580 ms240 ms560 ms
2060 ms180 ms420 ms
2548 ms144 ms336 ms
3040 ms120 ms280 ms

How to Type Dots and Dashes for Decoding

Type a dot as a full stop and a dash as a hyphen. Look-alike characters copied from other pages also count: the middle dot and the bullet count as dots, and the minus sign, the en dash and the underscore count as dashes, so ••• −−− ••• is decoded as SOS.

A code that is not in the chart is kept in the text in square brackets, so .... .. .-.-.-.- / ........ is decoded as HI[.-.-.-.-] [Error]. The eight dots at the end are the error signal of the recommendation.

How Text Is Converted to Morse Code and Back

For Text to Morse, each character is looked up in the chart: letters in either case, the figures, the punctuation marks of ITU-R M.1677-1 and the five common signs. Curly quotation marks, curly apostrophes and the minus sign are sent as their plain forms. An accented letter other than é is sent without its accent and counted in the note, so Naïve becomes -. .- .. ...- .. A character with no code, such as an emoji, is left as typed and underlined.

For Morse to Text, each line is separated into words at a slash, a pipe, a tab or three or more spaces, and each word into letters at one or two spaces. Line breaks are kept. The sound is made in your browser with the Web Audio API at 600 Hz, starts only when you press Play Sound, and stops at the end or when you press the button again. Nothing you type is sent anywhere.

FAQs

Q1. How Do You Write SOS in Morse Code?

SOS in Morse code is three dots, three dashes and three dots: … — … as letters, or …—… when sent as one distress signal with no gaps between the letters. The translator reads both forms as SOS, so you can paste a message copied in either style.

Q2. How Are Words Separated in Morse Code?

Words in written Morse code are separated by a slash, while the letters inside a word are separated by a single space. When Morse code is sent as sound, the gap between words is seven dots under ITU-R M.1677-1 and the gap between letters is three, so the slash stands for that longer pause.

Q3. Is There an Exclamation Mark in Morse Code?

The exclamation mark is not part of International Morse code in ITU-R M.1677-1, but an informal code, -.-.–, the letters K and W run together, is in common use. The translator sends that code and counts it in the note under the result, so you can see when your message has a sign outside the recommendation.

Q4. How Long Is a Dot in Morse Code?

A dot lasts one unit, and the unit depends on the speed: at 20 words per minute it is 60 milliseconds, and at 5 words per minute it is 240 milliseconds. The rule comes from the standard word PARIS, which takes 50 units with the word space after it, so a dot lasts 1200 milliseconds divided by the speed.

Q5. Does Morse Code Have Lowercase Letters?

Morse code has no lowercase letters, since each letter has one code whether it is typed as a or A. The translator therefore shows decoded text in capitals, and when you turn a message into Morse code and back, the words are the same but the mix of capital and small letters is gone.

Sources

ITU-R M.1677-1 (10/2009), International Morse code, International Telecommunication Union. Wikipedia article Morse code (the standard word PARIS and the signs outside the ITU recommendation).