Skip to content

Morse Code Translator and Decoder

Type a message to get its dots and dashes, or paste Morse to read it back as text. Letters are separated by a space and words by a slash.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Morse code

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

Summary

Characters in
11
Words
2
Dots and dashes
32

International Morse code chart

CharacterCodeCharacterCode
0-----I..
1.----J.---
2..---K-.-
3...--L.-..
4....-M--
5.....N-.
6-....O---
7--...P.--.
8---..Q--.-
9----.R.-.
A.-S...
B-...T-
C-.-.U..-
D-..V...-
E.W.--
F..-.X-..-
G--.Y-.--
H....Z--..

Quick answers

What is SOS in Morse code?
SOS is ... --- ... which is three dots, three dashes, three dots. As a distress signal it is sent as one unbroken run of nine symbols with no letter gaps. The letters were picked for the pattern, not as an abbreviation.
What is I love you in Morse code?
I love you is .. / .-.. --- ...- . / -.-- --- ..- with a slash marking each word break. That is 8 letters and 24 dots and dashes in total.
How do you write hello in Morse code?
Hello is .... . .-.. .-.. --- (H, E, L, L, O). Each group is one letter and a single space separates the groups. Case does not matter, because Morse has no capital or small letters.
How do you separate letters and words in written Morse code?
Put one space between letters and a slash between words. On air the same breaks are silences: three dot-lengths between letters and seven between words. Without them ... . (SE) and .... (H) cannot be told apart.
What do the dots and dashes mean?
A dot is a short signal one unit long and a dash is a long signal three units long. Each letter, digit or punctuation mark is a fixed pattern of one to seven of them. E is a single dot and T is a single dash.
How are numbers written in Morse code?
Every digit has five symbols. 1 to 5 start with that many dots and finish with dashes (1 is .----, 5 is .....). 6 to 9 start with dashes and finish with dots (6 is -...., 9 is ----.). Zero is five dashes.

How Morse Code Translator works

This Morse code translator converts in both directions using the international alphabet: 26 letters, the digits 0 to 9 and 18 punctuation marks. Text to Morse writes each letter as dots (.) and dashes (-), puts one space between letters and a slash between words, so Hello world becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -.. Morse to text reverses it and returns capital letters. The decoder also accepts a double space as a word break and reads middle dots, bullets, long dashes and underscores as dots and dashes, which helps when the code was copied from a web page or a document. It is a written translator only: it does not play sound or flash a light.

Morse code alphabet chart: A to Z and 0 to 9

International Morse code for every letter and digit, as used by this tool.

CharacterCodeCharacterCode
A.-S...
B-...T-
C-.-.U..-
D-..V...-
E.W.--
F..-.X-..-
G--.Y-.--
H....Z--..
I..0-----
J.---1.----
K-.-2..---
L.-..3...--
M--4....-
N-.5.....
O---6-....
P.--.7--...
Q--.-8---..
R.-.9----.

The commonest English letters have the shortest codes: E is one dot and T is one dash, while Q, Y, J and X take four symbols each.

Common words and phrases in Morse code

Each row is the exact output of the translator for that text.

TextMorse codeDots and dashes
SOS... --- ...9
Help.... . .-.. .--.13
Hello.... . .-.. .-.. ---16
Yes-.-- . ...8
No-. ---5
OK--- -.-6
Love.-.. --- ...- .12
I love you.. / .-.. --- ...- . / -.-- --- ..-24
I miss you.. / -- .. ... ... / -.-- --- ..-22
Thank you- .... .- -. -.- / -.-- --- ..-22
Good night--. --- --- -.. / -. .. --. .... -24
Happy birthday.... .- .--. .--. -.-- / -... .. .-. - .... -.. .- -.--41
CQ (calling any station)-.-. --.-8
73 (best regards)--... ...--10
88 (love and kisses)---.. ---..10

CQ, 73 and 88 are long-standing amateur radio shorthand.

Morse code for punctuation and symbols

The 18 punctuation marks this translator encodes and decodes. Any other symbol, including % and accented letters, is skipped and counted in a note under the result.

MarkNameCode
.Full stop.-.-.-
,Comma--..--
?Question mark..--..
'Apostrophe.----.
!Exclamation mark-.-.--
/Slash-..-.
(Opening bracket-.--.
)Closing bracket-.--.-
&Ampersand.-...
:Colon---...
;Semicolon-.-.-.
=Equals sign-...-
+Plus sign.-.-.
-Hyphen-....-
_Underscore..--.-
"Quotation mark.-..-.
$Dollar sign...-..-
@At sign.--.-.

A slash typed in Decode mode is always read as a word break. To decode the slash character itself, enter its code -..-. instead.

Worked examples: encoding and decoding

Text to Morse, two words

Direction: Text → Morse code. Your text: Hello world

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

Summary: 11 characters in, 2 words, 32 dots and dashes. A line break in the text is treated as a word break too.

Morse to text with slashes

Direction: Morse code → Text. Your text: .. / .-.. --- ...- . / -.-- --- ..-

I LOVE YOU

Morse copied with typographic dots

Direction: Morse code → Text. Your text: ···· ··

HI

Middle dots and bullets are read as dots; en dashes, em dashes and underscores are read as dashes.

Letters run together

Direction: Morse code → Text. Your text: ...---...

? with a warning that 1 sequence did not match any Morse character

Nine symbols with no spaces is not a letter. Entered as ... --- ... it decodes to SOS.

Text with an unsupported letter

Direction: Text → Morse code. Your text: café

-.-. .- ..-.

The é has no code in the table, so it is skipped and the note reports 1 character with no Morse equivalent.

Morse code timing: dot, dash and gap lengths

Dot = 1 unit. Dash = 3 units. Gap between symbols inside a letter = 1 unit. Gap between letters = 3 units. Gap between words = 7 units. Dot length in seconds = 1.2 / speed in words per minute.

Morse is defined by durations, so the written dots, dashes, spaces and slashes on this page stand for sounds and silences of fixed relative length. Speed is measured with the standard word PARIS (.--. .- .-. .. ...), which lasts exactly 50 units including the gap after it. At 20 words per minute that is 1,000 units a minute, so a dot lasts 0.06 seconds and a dash 0.18 seconds. At 5 words per minute, a common beginner speed, a dot lasts 0.24 seconds.

Why a Morse decode comes out wrong

Nearly every failed decode is a spacing problem, not a wrong symbol. Check these in order.

  • No space between letters: .... .. is HI, but ...... matches nothing and becomes a question mark.
  • A space inside a letter: .- is A, but . - is read as two letters, E and T.
  • Words not marked: without a slash or a double space, every letter joins into one long word.
  • Other separators: a vertical bar or comma between words is treated as an unknown group. Replace it with a slash.
  • A different alphabet: the table here is International Morse. Older American Morse and codes for non-Latin scripts use other patterns and will not decode correctly.

How to get your result

  1. 1

    Set Direction to Text → Morse code to encode, or Morse code → Text to decode.

  2. 2

    Type or paste into Your text. For decoding, put one space between letters and a slash (or two spaces) between words.

  3. 3

    Read the Morse code or Decoded text result and use the copy button to take it with you.

  4. 4

    When encoding, check the Summary for the number of words and the total dots and dashes, and the note listing any characters that were skipped.

  5. 5

    If a decode shows a question mark, fix the spacing around that group and try again.

Answers to common questions

Can this translator play Morse code as sound or light?
No. It converts between text and written dots and dashes only. To practise by ear you need a tool or app with audio playback; use the timing ratios above if you are keying or flashing the message yourself.
Is Morse code the same in every language?
International Morse covers the 26 basic Latin letters, digits and common punctuation, so it works for any language written in unaccented Latin letters. Accented letters and other scripts such as Cyrillic, Greek or Japanese have their own extensions, which this tool does not include.
Why is the decoded text all capitals?
Morse has no upper and lower case, so there is nothing in the code to say which was meant. The encoder treats Hello and HELLO identically, and the decoder returns capitals by convention.
What does a question mark in the decoded text mean?
That group of dots and dashes is not in the table. The decoder puts one ? for each unmatched group and tells you how many there were. Be aware that the code for a real question mark, ..--.., also decodes to ? and is counted in the same warning, so look at the Morse itself to tell the two cases apart.
Is Morse code still used?
Yes, mainly by amateur radio operators, because a narrow Morse signal can be copied through noise that makes speech unreadable. Ships stopped relying on it for distress calls in 1999, when the satellite-based Global Maritime Distress and Safety System took over.
What is the difference between a dash and a dah?
They are the same thing. Operators say dit for a dot and dah for a dash because Morse is learned as sound: A is di-dah, N is dah-dit. Written out, most people type a full stop for a dit and a hyphen for a dah.
How long does it take to learn Morse code?
Memorising the 26 letter patterns from a chart can be done in days, but copying by ear at a useful speed takes regular practice over weeks or months. Learners are usually advised to learn each character as a rhythm, not by counting dots and dashes.
Is my message sent to a server?
No. The translation is a table lookup that runs in your browser, so the text you type and the result stay on your device.

Looking for something else? Browse all text tools or see every tool.