How this Morse code translator works
Morse code writes each letter, digit and punctuation mark as a short pattern of dots and dashes. This morse code translator looks up every character in the International Morse code table and joins the patterns with one space between letters and a slash between words. Type Hello world and you get:
.... . .-.. .-.. --- / .-- --- .-. .-.. -..Paste that line back in and the tool reads it as Morse, because it contains only dots, dashes, spaces and a slash, and returns HELLO WORLD. There is no separate decode button: the direction is detected each time the input changes, and the status line tells you what was detected.
Morse has no upper or lower case, so Hello and HELLO give the same code. When decoding, the Text case option decides whether the result is shown in capitals, small letters or sentence case.
International Morse code alphabet and numbers
These are the 26 letters and 10 digits of International Morse code, taken from the same table the tool uses. Digits always have five elements, which makes them easy to spot.
A .- J .--- S ... 1 .----
B -... K -.- T - 2 ..---
C -.-. L .-.. U ..- 3 ...--
D -.. M -- V ...- 4 ....-
E . N -. W .-- 5 .....
F ..-. O --- X -..- 6 -....
G --. P .--. Y -.-- 7 --...
H .... Q --.- Z --.. 8 ---..
I .. R .-. 0 ----- 9 ----.The most common English letters got the shortest codes. E is a single dot and T is a single dash, while rarer letters such as Q, Y and J take four elements.
Punctuation and accented letters in Morse
The current international standard, ITU-R M.1677-1, defines codes for the full stop, comma, colon, question mark, apostrophe, hyphen, slash, brackets, quotation marks, equals sign, plus sign and the @ sign. The tool also supports a few signs that are widely used but not in that standard: !, &, ;, _ and $.
. .-.-.- , --..-- ? ..--.. ' .----.
: ---... - -....- / -..-. " .-..-.
= -...- + .-.-. @ .--.-. ( -.--.
) -.--.- ! -.-.-- & .-... ; -.-.-.
_ ..--.- $ ...-..-Accented letters are handled by the Accented letters option, and it works the same way in both directions. Plain letters, the default, writes é as E and Ç as C, which any operator can read, and shows a received accented code such as ..-.. or .--.- as the plain letter E or A. Extended codes writes and shows À Ä Å Ç É È Ñ Ö Ü with their own codes. É (..-..) is listed in the ITU recommendation; the other accented codes come from national use and are not known to every operator. À and Å share one code, .--.-, so it is shown as À and the notes mention Å. Curly quotes, long dashes and the ellipsis are written with their plain equivalents, and the details panel says how many characters were changed this way.
Morse code timing and the PARIS standard
Morse timing is measured in units, where one unit is the length of a dot. The rules are fixed:
- A dot is 1 unit and a dash is 3 units.
- The gap between the dots and dashes inside one letter is 1 unit.
- The gap between letters is 3 units.
- The gap between words is 7 units.
Speed is given in words per minute, using the word PARIS as the standard word. PARIS plus the gap after it is exactly 50 units, so at 20 WPM one unit lasts 1200 / 20 = 60 milliseconds. The tool counts the units of your message, leaves out the gap after the final word, and multiplies by the dot length. For PARIS on its own the details panel shows:
Morse length: 43 units
Duration: 2.6 s at 20 WPM, 60 ms per dotAt 13 WPM the same word takes 4.0 s, because each dot lasts 92.3 ms. The estimate assumes standard timing. Learners often use Farnsworth timing, where letters are sent at a higher speed with longer gaps between them, so a real recording at Farnsworth spacing will run longer than this figure.
Prosigns and SOS
A prosign is two or more letters sent as one signal with no letter gap inside it. They are written with a bar over the letters on paper, and online usually in angle brackets. With the Prosigns option on, type the letters inside < and > and the tool runs their codes together:
<SOS> ...---...
<SK> ...-.-- <SOS> distress signal. It is not short for any phrase; it was chosen because three dots, three dashes and three dots are easy to send and hard to mistake.
- <AR> end of message, the same signal as +.
- <SK> end of contact.
- <BT> break or new paragraph, the same signal as =.
- <KN> go ahead, only the station called should answer, the same signal as (.
- <AS> wait, the same signal as &.
- <HH> error, eight dots.
- <CT> starting signal, also written <KA>. <VE> understood, also written <SN>.
When decoding, signals that are only prosigns, such as ...---... or ...-.-, are shown as <SOS> or <SK>. A signal that is both a character and a prosign, like .-.-., is shown as the character, and the notes tell you which prosign it can also mean.
Examples of text to Morse and Morse to text
A radio-style message with prosigns, using the default options:
QTH Lahore <BT> 73 <SK>
--.- - .... / .-.. .- .... --- .-. . / -...- / --... ...-- / ...-.-Characters with no Morse code, such as # and emoji, are shown as ? by default and listed in the details panel with their Unicode code points:
Price: #5 😀
.--. .-. .. -.-. . ---... / ? ..... / ?Decoding works the other way. The Messy Morse sample mixes plain dots and hyphens on the first line with bullets, minus signs and triple spaces on the second, and still reads cleanly:
HELLO WORLD!
SEND HELP <SOS>With Text case set to Sentence case, the decoded words .-- . / .- .-. . / .... . .-. . .-.-.- / -.-. --- -- . / ... --- --- -. .-.-.- become We are here. Come soon.
Options explained
- Symbols: dot and hyphen (. -), bullet and minus (• −), timing bars, or your own pair. Timing bars draw a dot as ▄ and a dash as ▄▄▄ with 1, 3 and 7 spaces between parts, letters and words, so the line is a picture of the real rhythm. Hi becomes ▄ ▄ ▄ ▄ ▄ ▄.
- Custom dot and dash: any two different symbols, such as * _ or 0 1, or whole words separated by a space, such as di dah. The same pair is read back when decoding.
- Word gap: a slash, a vertical bar or three spaces between words. Letters are always split by one space.
- No Morse code: show such characters as ?, leave them out, or keep them as typed.
- Accented letters: plain letters or the extended national codes.
- Text case: capitals, small letters or sentence case for decoded text.
- Speed: 5 to 40 words per minute for the sending time.
- Prosigns: on to write and read <SOS> style signals, off to treat < and > as ordinary characters.
- Keep lines: on to translate each line on its own, off to join every line into one message.
When decoding, the tool accepts every symbol style at once. Dots can be . · or •, dashes can be - – — − or _, and word gaps can be /, | or three or more spaces. To count which letters appear most in your decoded text, paste it into the Letter Frequency Counter.
Common mistakes when writing Morse code
- Leaving out letter gaps. .... .. is HI, but ...... with no space is not a letter at all. Inside a word, every letter needs a space after it.
- Using one space between words. Two spaces still count as a letter gap, so .... .. .. ... reads as HIIS. Use /, | or at least three spaces to end a word.
- Typing a word processor's long dash. Many editors turn -- into —. This tool reads it as a dash, but other decoders may not.
- Expecting case or extra spaces to survive. Morse has no capital letters and no way to send two spaces, so they are lost in a round trip.
- Sending digits as words. Writing 73 as SEVEN THREE is legal but much longer. The digit codes are faster to send.
- Typing a prosign with spaces. <S O S> is three separate letters; <SOS> is the single distress signal.
A short history of Morse code
Samuel Morse and Alfred Vail developed the code for the electric telegraph in the late 1830s, and the first public message on the line between Washington and Baltimore, What hath God wrought, was sent in May 1844. Their American code used gaps of different lengths inside some letters, which made it hard to use on radio and undersea cables. In 1848 Friedrich Clemens Gerke simplified it, and a version of his code was adopted in Europe in 1865. That is the International Morse code still in use today, now maintained by the International Telecommunication Union.
SOS was agreed as the international distress signal at the 1906 radiotelegraph conference in Berlin and came into force in 1908. Ships moved to the Global Maritime Distress and Safety System, which uses satellites and digital radio, in 1999, but Morse remains in daily use by amateur radio operators, in aviation and navigation beacons that send their identifier in Morse, and as an accessible input method for people who can operate only one or two switches.
Privacy and related tools
The translation runs in your browser. Your text is not uploaded or stored, as described in the Privacy Policy. If you work with other encodings, the Text to Hex converter shows the bytes behind each character, Hex to Text reads them back, and Number to Words spells out figures before you send them.