Home › Morse Code Audio Decoder

Morse Code Audio Decoder

Turn Morse code sound into text. Upload a recording or let the page listen through your microphone, and it finds the beeps, works out the speed and writes out the message. You can also type text and hear it as Morse code.

Decode a Morse code sound file

Text

Morse code heard

Listen with the microphone

Play the Morse code near your phone or computer. The text updates as the page hears more of it.

Text

Morse code heard

Text to Morse code sound

How the Morse code audio decoder works

Most Morse code recordings are a single steady tone switched on and off. The decoder first finds that tone, usually somewhere between 400 and 1000 Hz, by checking which pitch is strongest in the loudest part of the recording. It then follows how loud that one pitch is every few milliseconds. Listening to one pitch only is what lets it ignore a lot of hiss and talking in the background.

Next it decides when the tone is on and off, and measures each beep and each silence. In Morse code a dash is three times as long as a dot, the gap between letters is three dots long and the gap between words is seven. The decoder looks at the beeps it heard, takes the short ones as dots, and uses that length to sort every beep and gap. That is how it works out the speed by itself, so you do not have to set the words per minute.

Getting a good result

Clean recordings decode best: one clear tone, steady speed and not much else going on. Machine-sent Morse code, practice files and most online Morse code sound clips work well. Hand-sent code with uneven timing, very fast code, two signals on top of each other or a strong fading radio signal can produce wrong letters. Groups that are not in the Morse code table show as #. If a recording has a long silence or talking at the start, it usually still works, because the page looks for the tone first.

With the microphone, turn the sound up, keep the speaker close and keep the room quiet. The page needs a few letters before it can judge the speed, so the first letters may change as it hears more.

Morse code translator audio: text to sound for practice

The last box turns text into Morse code sound using standard timing. Pick a speed in words per minute and a tone you find comfortable, press play, or download the WAV file to use offline. The word PARIS is the standard length for counting words per minute, and 18 to 20 WPM is a common speed for practice.

How we tested

We made Morse code recordings of "CQ CQ DE ALAAM TEST 73" at 5, 10, 15, 20, 25, 30 and 40 words per minute, at 500 and 800 Hz, with added hiss from none up to loud and 1.5 seconds of hiss before the code. All 56 decoded correctly. With hiss louder than the tone itself, it still decoded correctly, and so it did with a steady 1200 Hz hum under a 700 Hz signal. To copy hand-sent code, we shifted every beep and gap by a random amount: with up to 20% shift, 28 of 30 tries were exact (two lost one word space), but with 30% almost every try had wrong letters. A WAV file loaded through the file button decoded as "SOS HELP 123" at 18 WPM, a non-audio file showed an error, and plain hiss or a steady tone showed "no clear Morse tone" instead of made-up letters. The speed shown matched the real speed in our tests. The microphone path could not be tested with a real microphone here; we tested its decoding step on simulated 10 ms readings at 10, 20 and 30 WPM (15 of 15 correct). Checked in Chromium on Windows at desktop width and 375 px with no console errors.

Questions

Is my recording uploaded anywhere?

No. The sound file and the microphone are processed in your browser. Nothing is sent to a server.

Why does the decoder show wrong letters?

Usually the timing in the recording is uneven, or noise breaks a long beep into two short ones. Try a cleaner part of the recording, or a recording with less background sound.

Can it decode Morse code from a video?

Many browsers can read the sound from MP4 and WebM video files, so try choosing the video file. If it does not open, save the sound as an MP3 or WAV first.

What speed can it decode?

It works out the speed from the recording itself. Machine-sent code from about 5 to 40 words per minute decodes reliably in our tests.