Skip to content

↑↓ navigate ↵ open Esc close Search runs locally

Morse Code Translator with Sound

Translate text to Morse code and Morse code back to text. Play it as sound with a flashing light at any speed, or download it as a WAV file.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
0 chars
Morse code

Sound and light

Runs in your browser. Nothing is uploaded. Tip: press Play to hear it, or download a WAV

How to use the Morse code tool#

  1. Choose Text → Morse or Morse → Text.
  2. Type or paste. Letters are separated by a space and words by / (choose | or three spaces under Word gap). When decoding, · and − also work.
  3. Press Play to hear the code and watch the light flash. Set the Speed in words per minute and the Tone in hertz.
  4. Press WAV to download the sound, or copy the dots and dashes.

Examples#

SOS

Input
SOS
Output
... --- ...

Three dots, three dashes, three dots. In real distress calls it is sent as one continuous signal, without letter gaps.

A short sentence

Input
Hello World
Output
.... . .-.. .-.. --- / .-- --- .-. .-.. -..

Press Play after trying this example to hear it.

Decode Morse code

Input
-.. . ...- ..--- ....- --...
Output
DEV247

Morse has no lowercase, so decoded text is always in capitals.

What is Morse code?#

Morse code writes each letter, digit and punctuation mark as a short sequence of dots (short signals) and dashes (long signals). It can be sent with sound, light, radio or a tapping finger, which is why it is still used by radio amateurs, pilots, sailors and in emergencies. It was developed in the 1830s and 1840s by Samuel Morse and Alfred Vail for the electric telegraph. The version used today, International Morse code, is standardised by the ITU.

Morse code is a code, not a cipher: it is public and has no key. It only changes how a message is sent, not who can read it.

The Morse code alphabet#

CharCodeCharCodeCharCodeCharCode
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----.

Common punctuation: period .-.-.-, comma --..--, question mark ..--.., apostrophe .----., slash -..-., hyphen -....-, equals -...-, at sign .--.-. and quotation mark .-..-..

The most common English letters got the shortest codes: E is a single dot and T a single dash.

Timing: how fast is Morse code?#

Everything is measured in units, where one unit is the length of a dot:

ElementLength
Dot1 unit
Dash3 units
Gap inside a letter1 unit
Gap between letters3 units
Gap between words7 units

Speed is given in words per minute (WPM), using the word PARIS, which is exactly 50 units long including the gap after it. So one unit lasts 1.2 / WPM seconds: 60 milliseconds at 20 WPM. Beginners often start around 5–10 WPM; experienced operators send 20–30 WPM or more.

SOS and prosigns#

... --- ... (SOS) is the international distress signal. It was chosen because it is easy to send and recognise, not because it stands for words such as "Save Our Ship". In real use it is sent as one continuous sequence without letter gaps, which makes it a prosign. Other prosigns include -.-.- (start of transmission) and ...-.- (end of work).

Where Morse code is used today#

  • Amateur radio: CW (continuous wave) Morse gets through when voice cannot.
  • Aviation and navigation: radio beacons identify themselves with a few Morse letters.
  • Accessibility: people with limited movement can type with one or two switches using Morse input.
  • Emergencies and puzzles: signalling with a flashlight, and a favourite in escape rooms.

Morse code in code#

javascript
const MORSE = { A: '.-', B: '-...', C: '-.-.', /* … */ S: '...', O: '---' };const REVERSE = Object.fromEntries(Object.entries(MORSE).map(([k, v]) => [v, k])); const toMorse = (text) =>  text.toUpperCase().split(' ').map((w) => [...w].map((c) => MORSE[c] ?? '').join(' ')).join(' / '); const fromMorse = (code) =>  code.split(' / ').map((w) => w.split(' ').map((c) => REVERSE[c] ?? '').join('')).join(' '); toMorse('SOS'); // "... --- ..."

Common errors and fixes#

  • Some characters became #

    They have no standard Morse code (for example accented letters or emoji), or a dot-dash group in the input is not a valid code. Check the hint under the input for how many were unknown.

  • Decoded words run together

    Word gaps are missing. Separate words with /, | or three spaces, and letters with a single space.

  • There is no sound when I press Play

    Check that the tab is not muted and the volume is up. Some browsers only allow sound after you click on the page, which pressing Play does.

  • Morse copied from a website is not recognised

    It may use special dot and dash characters. This tool accepts ·, •, −, –, — and _ as well as . and -.

Frequently asked questions#

How do I translate Morse code to English?

Choose Morse → Text and paste the code, with a space between letters and / between words. The text appears instantly.

What does SOS look like in Morse code?

... --- ...: three dots, three dashes, three dots. It is the international distress signal.

How fast is 20 WPM?

At 20 words per minute, a dot lasts 60 milliseconds and a dash 180 milliseconds. The speed is based on the standard word PARIS, which is 50 units long.

Is Morse code a cipher?

No. It is a public code with no key, so anyone with the alphabet can read it. It changes the form of a message, not its secrecy.

Can I download the Morse audio?

Yes. Press WAV to download the sound at the chosen speed and tone. The file is generated in your browser.

Is my text uploaded?

No. Translation, audio and the WAV file are all created in your browser.

Your next tool is one search away.

Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.

Browse all tools

Tip: press Ctrl D to bookmark dev247.