Morse Code Translator
Part of Text tools: See all Text tools.
What is Morse Code?
A Morse code translator that works both ways as you type. It turns letters, numbers, punctuation and prosigns such as <SOS> into International Morse Code, decodes dots and dashes back to text, plays the code as sound or a flashing light at 5 to 40 WPM with optional Farnsworth spacing, and saves it as a WAV file. It runs in your browser.
How to use Morse Code
- Choose Text to Morse code or Morse code to text.
- Type or paste your message. The result appears straight away.
- When decoding, put one space between letters and a slash or two spaces between words.
- Set the character speed, overall (Farnsworth) speed and tone, then press Play sound or Download WAV.
- Copy the result, download it as a .txt file, or switch mode to check that it converts back.
Why use this tool?
Most Morse translators drop punctuation, lose word gaps or guess silently. This one follows the ITU table, says which characters have no code and which codes it did not recognise, handles prosigns and accented letters, and lets you hear, see and download the signal at real Morse timing without uploading anything.
FAQ
- How do I write Morse code so it decodes correctly?
- Use dots and dashes, one space between letters and a slash (/), a bar (|) or two or more spaces between words, for example .... .. / - .... . .-. . for HI THERE. Middle dots, asterisks, underscores and minus signs are read as dots and dashes too.
- What is SOS in Morse code?
- SOS is ...---... sent as one unbroken run of nine signals, three dots, three dashes and three dots, with no letter gaps. Type <SOS> in angle brackets to get it as a prosign, or SOS to get the three separate letters ... --- ....
- Does it support numbers and punctuation?
- Yes. It covers A to Z, 0 to 9 and the ITU punctuation: . , ? ' / ( ) : = + - " and @. It also covers ! & ; _ and $, which are widely used but not in the ITU table, and tells you when you use them. Characters with no Morse code are listed and left out.
- Can I hear the Morse code or download it as audio?
- Yes. Press Play sound to hear it at 5 to 40 WPM with a tone from 200 to 1500 Hz, while a lamp flashes with each signal. Download WAV saves the same sound as a 16-bit mono WAV file, up to 10 minutes long.
- What is Farnsworth spacing?
- Farnsworth spacing sends each letter at full character speed but stretches the gaps between letters and words, so the overall speed is slower. Set Overall speed lower than Character speed to use it. The gaps follow the ARRL formula.
- How are accented letters handled?
- International Morse has only one accented letter, É. By default accented letters are sent as the plain letter, so café becomes CAFE. Choose Use extended codes to send Ä, Ö, Ü, Ñ, Ç and others with their non-standard codes. The decoder always reads them.
- Is my text sent to a server?
- No. Translation, sound and the WAV file are all made in your browser, and nothing you type is uploaded.
What this Morse code translator does
This page translates in both directions. In Text to Morse code mode, every letter, number and punctuation mark you type is turned into dots and dashes, with one space between letters and a slash between words. In Morse code to text mode, it reads dots and dashes and turns them back into letters. The result updates as you type, so there is no Convert button to press.
You can also hear the code. Press Play sound and the translator sends the message as a tone at the speed you choose, from 5 to 40 words per minute, while a lamp on the page flashes in step with each signal. Press Download WAV to save the same sound as an audio file you can play anywhere. Under the result, a short summary tells you how many characters were converted, which characters have no Morse code, which codes were not recognised, and how long the message takes to send at your speed.
How to translate text to Morse code
- Leave the mode on Text to Morse code and type or paste your message into the Input box.
- The Morse code appears straight away. Choose how words are separated (a slash, three spaces or a bar) and whether to write the code with a dot and hyphen or with a middle dot and minus sign.
- To send a prosign, such as the distress signal, type it in angle brackets: <SOS>. The letters inside are joined into one run of signals with no gap between them.
- Copy the result, download it as a .txt file, press Play sound to hear it, or press Download WAV to keep the audio.
How to decode Morse code to text
- Switch the mode to Morse code to text.
- Paste the code with one space between letters and a slash, a bar or two or more spaces between words. For example, .... . .-.. .-.. --- / .-- --- .-. .-.. -.. reads HELLO WORLD.
- Dots can be written as a full stop, a middle dot, a bullet or an asterisk, and dashes as a hyphen, an underscore, a minus sign or an en dash, so code copied from a website, a puzzle or a book usually works as it is.
- Choose upper or lower case for the letters. Codes that are not in the table are shown in square brackets, so you can see exactly which group was mistyped.
How Morse code is built
Morse code was developed in the 1830s and 1840s by Samuel Morse and Alfred Vail for the electric telegraph. The version used today is International Morse Code, which is set out by the International Telecommunication Union in Recommendation ITU-R M.1677. Each character is a short pattern of two signals: a short one, called a dot or dit, and a long one, called a dash or dah.
The patterns are not random. The letters that appear most often in English got the shortest codes, so E is a single dot and T is a single dash, while rare letters such as Q (--.-) and Y (-.--) are four signals long. Numbers are always five signals: 1 is a dot and four dashes, 5 is five dots and 0 is five dashes, which makes them easy to learn as a set.
Timing is what makes Morse readable. In the standard, a dash lasts three times as long as a dot. The gap between the signals inside one letter is one dot long, the gap between letters is three dots long, and the gap between words is seven dots long. When Morse is written down, those gaps become spaces: one space between letters and a wider gap, usually a slash, between words. If the gaps are lost, the code becomes ambiguous. For example, ..- could be the single letter U, or I followed by T, or E, E and T. That is why the decoder needs the spaces, and why it warns you when a long message has no word gaps at all.
Letters, numbers, punctuation and what is not covered
The translator covers the 26 letters, the digits 0 to 9 and the punctuation in the ITU table: full stop, comma, question mark, apostrophe, slash, both brackets, colon, equals sign, plus sign, hyphen, quotation mark and the at sign (.--.-., added for email addresses in 2004). It also covers a few marks that are widely used by radio amateurs but are not in the ITU table: the exclamation mark (-.-.--), the ampersand (.-...), the semicolon (-.-.-.), the underscore (..--.-) and the dollar sign (...-..-). When you use one of these, the summary says so, because a receiver who only knows the ITU set may not recognise it.
Curly quotes and apostrophes are sent as straight ones, en and em dashes are sent as a hyphen, and the multiplication sign is sent as X, which is how the ITU table writes it. Characters with no Morse code at all, such as # or %, or emoji, are left out of the result, and the summary lists every one of them so nothing disappears silently. Case does not exist in Morse, so a capital A and a small a are sent the same way.
Accented letters
International Morse Code has only one accented letter, É (..-..). Other languages added their own codes over the years, such as Ä (.-.-), Ö (---.), Ü (..--), Ñ (--.--) and Ç (-.-..). These are not part of the ITU standard and not every operator knows them, so by default the translator sends an accented letter as its plain letter: café is sent as CAFE. If you are writing for someone who knows the extended codes, choose Use extended codes under Accented letters. The decoder always recognises the extended codes and shows them as the accented letter.
Prosigns such as SOS, AR and SK
A prosign is a group of letters sent as one character, with no letter gap inside it. The best known is SOS, the international distress signal, which is sent as ...---... in one unbroken run rather than as three separate letters (... --- ...). Type a prosign in angle brackets, for example <SOS>, <AR> (end of message), <SK> (end of contact), <BT> (new paragraph) or <KN> (go ahead, named station only), and the translator joins the letters for you. Turn off the prosign option if you want the angle brackets ignored.
When decoding, patterns that only exist as prosigns, such as ...---... and ...-.-, are always shown in angle brackets. Four prosigns share their pattern with a punctuation mark: <AR> is the same as +, <BT> is the same as =, <KN> is the same as an opening bracket and <AS> is the same as &. By default the decoder shows the punctuation mark; tick the prosign option to see the prosign names instead, which is usually what you want when reading a radio contact. Eight or more dots in a row are shown as <HH>, the error signal.
Speed, words per minute and Farnsworth spacing
Morse speed is measured in words per minute (WPM) using the standard word PARIS, which is exactly 50 dot lengths long including the gap after it. At 20 WPM one dot lasts 60 milliseconds, and the formula is simple: a dot lasts 1.2 seconds divided by the speed in WPM. The Character speed box sets this speed, from 5 to 40 WPM.
The Overall speed box adds Farnsworth spacing. If you set it lower than the character speed, each letter is still sent at full speed, but the gaps between letters and words are stretched so the message as a whole comes out at the slower overall speed. The stretched gaps are worked out with the formula published by the ARRL, the US national association for amateur radio. Many Morse courses teach this way, for example letters at 18 WPM with an overall speed of 5 to 10 WPM, because it helps you learn each letter as one sound rather than counting dots and dashes. When both boxes are the same, normal spacing is used. The summary shows how long the whole message takes at the speed you chose.
Sound, light and WAV download
Play sound sends the message as a sine-wave tone, 600 Hz by default. You can set any tone from 200 to 1500 Hz and adjust the volume. Each signal fades in and out over five milliseconds, which removes the clicks you hear with a plain on-off tone, the same way a good radio transmitter shapes its signal. Press the button again to stop.
The lamp next to the buttons lights for every dot and dash while the sound plays, which is handy for practising light signalling or for a puzzle where you need to see the rhythm. Untick Flash light if you only want the sound.
Download WAV saves the same signal, with the same speed, spacing, tone and volume, as a 16-bit mono WAV file at 22,050 samples per second. WAV files open in any audio player, video editor or game engine. Downloads are limited to 10 minutes of audio so the file stays a sensible size; for longer texts, raise the speed or split the message.
Common uses
- Learning Morse code. Type practice words, listen at your target character speed with slower Farnsworth spacing, and check your copy by decoding what you wrote down.
- Amateur radio. Check the code for a call sign, a CQ call or a standard exchange, including prosigns such as <AR> and <SK>, before you go on the air.
- Puzzles, escape rooms and geocaching. Encode a clue as text, sound or light, or decode one you found. The WAV file can be played from a phone or a speaker hidden in the room.
- Teaching. Morse is an easy way to show how information can be carried by just two signals and timing, and how a variable-length code saves time on common letters.
- Gifts and design. Write a name or a date in Morse for a bracelet, an engraving or a print, then use the middle dot and minus symbols for a cleaner look.
Limits
The translator works on written Morse code. It does not listen to a microphone or read Morse from an audio file. Input is limited to 200,000 characters. Morse has no lower case, so decoded text comes out in all capitals or all small letters, not in sentence case. The decoder cannot guess where letters or words begin if the spaces are missing, so check the spacing if the result looks wrong. Codes outside the table are shown in square brackets rather than guessed.
Privacy
Everything happens in your browser. The text you type, the Morse code, the sound and the WAV file are all made on your device and are not sent to our server.
Related tools
To turn text into binary, hex or decimal codes, use the text to binary converter. For Base64 use the Base64 encoder and decoder, for web addresses use the URL encoder, and to turn special characters into HTML entities use the HTML entity encoder.
Also try
Related tools that work well with this one: