Morse Code Translator

Published Updated

Type text to get International Morse, or paste dots and dashes to get letters back, with the direction detected for you. Play the result as a 600 Hz tone at 80 ms per dot.

The 54 characters it knows

The page knows the 26 letters, the digits 0 to 9 and 18 punctuation marks. Thirteen of those marks come from ITU-R M.1677-1, the Recommendation that defines International Morse: full stop, comma, colon, question mark, apostrophe, hyphen, fraction bar, both brackets, quotation marks, double hyphen (=), plus sign and @. The other five, ! & ; _ and $, are common additions that the ITU table does not list.

The ITU accented e (..-..) is missing, so é is skipped when encoding and shown in brackets when decoding. The ITU service signals, such as understood (...-.), wait (.-...) and end of work (...-.-), are not decoded as signals; wait comes out as &, because the extra & uses the same pattern.

A few inputs and what comes out

InputResultNote
SOS... --- ...Letters separated by single spaces
Hello, world!.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--Comma from ITU, ! from the extras
été 2026- / ..--- ----- ..--- -....Both é are skipped; only the T is sent
x = 5%-..- / -...- / .....% is skipped; ITU would send 5-0/0
........[........]The ITU error signal, kept in brackets
·−· −−−ROMiddle dots and minus signs are read as dots and dashes

How the audio is timed

ITU-R M.1677-1 sets the rhythm in units of one dot: a dash is three dots, the gap inside a letter is one dot, the gap between letters is three and the gap between words is seven. The player follows those ratios with a dot of 80 ms, as a 600 Hz sine tone with a 5 ms fade at each edge to avoid clicks.

At that rate SOS lasts 2.16 seconds and Hello world 8.88. Each press plays from the start. In Morse to Text mode the input itself is played, and anything other than a dot or a dash stays silent.

Every character there and back

All 54 characters were encoded and decoded again by the tool's own code, run in Node.js 22.23.1. Each one came back as itself, and the 54 codes are all different, so no two characters share a pattern. Lowercase text returns in capitals: the quick brown fox decodes as THE QUICK BROWN FOX. A generated text of 109,999 characters gave 437,997 characters of Morse, which decoded back to the same text.

What auto-detect and the decoder do with odd input

InputAuto-detect reads it asResult
.MorseE
... --- ... on two linesMorseSOS SOS (a line break ends a word)
... --- ... // ... --- ...MorseSOS SOS (two slashes make one word break)
..., ---, ... separated by tabsMorseSOS (a tab separates letters)
•••, ––– and ——— (bullet, en dash, em dash)MorseS, O and O
‐‐‐ (the Unicode hyphen U+2010), ∙∙∙, ⋅⋅⋅Textnothing sent; the note lists them as skipped. Forced to Morse to Text, they show in brackets
___ (underscores)Textthree underscores, ..--.- ..--.- ..--.-
... --- ... Texteach dot becomes a full stop (.-.-.-) and each dash a hyphen (-....-). Forced to Morse to Text: SOS[|]SOS
...---... (SOS with no gaps)Morse[...---...], one unknown group
.-.-., -...-, -.--.Morse+, = and ( (the table's own characters for these patterns)
-.-.-, ......, .-.-Morse[-.-.-], [......] and [.-.-]
1.5, -5, e.g.Textencoded as text

Accented and non-Latin letters

Text is turned into capitals before each letter is looked up, and the capital form decides what is sent. Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app) gave the same results as Node.js:

You typeSent asSkipped (listed in the note)
Straße... - .-. .- ... ... . (ß becomes SS)none
file (with the fi ligature)..-. .. .-.. . (F and I)none
dış (dotless ı)-.. .. (ı becomes I)Ş
İstanbulSTANBUL onlyİ
Café-.-. .- ..-.É, shown as the capital
A followed by a combining ring.-the combining ring
σοςnothingΣ, Ο
Hi 🙂.... ..the emoji

Tone lengths the player schedules

These lengths come from the list of tones the code builds before it plays anything, at the fixed 80 ms dot. The first tone is scheduled 50 ms after the press.

MessageTonesFrom first tone to last
SOS92.16 s (27 dot lengths)
Hello world328.88 s (111)
PARIS143.44 s (43)
A to Z8223.12 s (289)
0 to 95013.36 s (167)
... --- ... on two lines, in Morse to Text mode184.88 s, the same as with a slash between the words
..x.. abc --- in Morse to Text mode71.92 s: x and abc make no sound, and abc still adds a letter gap

Translating a message

  1. Step 1

    Type or paste

    Text and Morse share one box, and a Detected line under it says which way the page is translating.

  2. Step 2

    Fix the direction if needed

    Auto-detect treats anything made only of dots, dashes, slashes and spaces as Morse. Pick Text to Morse or Morse to Text to override it.

  3. Step 3

    Copy or listen

    Copy result takes the output. Play Morse audio beeps the Morse once through, and the same button stops it.

Separators and line breaks

  • Output puts one space between letters and " / " between words; pasted Morse may use a slash or two or more spaces.
  • Line breaks in plain text become word breaks, so a three-line note comes out as one Morse line.
  • Look-alikes work too: · and • count as dots, the minus sign and long dashes as dashes.

For speech in place of beeps, try Text to Speech.

Morse code questions

How do I mark a space between words in Morse?

The output puts a slash with a space on each side between words. When you paste Morse, a slash, a line break or a run of two or more spaces counts as a word break, and a single space or tab only separates letters.

Why does decoded text come out in capitals?

Morse has one signal per letter and no way to mark case, so there is nothing to restore. The page prints capitals.

Why did a single dot turn into the letter E?

Auto-detect reads input made only of dots, dashes, slashes and spaces as Morse, and one dot is the letter E. To encode a full stop instead, switch the direction to Text to Morse, which gives .-.-.-

What does a sequence in square brackets mean?

The group matched no character the page knows, so it is kept in brackets and listed in the amber note. Eight dots, the ITU error signal, and ..-.., the ITU accented e, both end up this way.

Can I save the beeps as an audio file?

No. The tone is generated live by the browser's Web Audio engine and only plays on the page, always at 80 ms per dot and 600 Hz.

Which characters are skipped?

Anything outside the 54 it knows, such as accented letters, %, #, * and emoji; the amber note lists them. ITU sends a percent sign as 0/0 and a multiplication sign as X, so type those forms yourself.

Why did my Morse come back as more dots and dashes?

Auto-detect reads input as Morse only when every character is a dot, a dash, a slash or a space (or one of the look-alikes such as the middle dot and the minus sign). One other character makes it text: with a | between the words, ... --- ... | ... --- ... was encoded dot by dot as full stops (.-.-.-) and hyphens (-....-). Choose Morse to Text, or put a slash between the words.

Can I put each Morse word on its own line?

Yes. A line break between groups is a word break, so ... --- ... and ... --- ... on two lines decode as SOS SOS, and the audio leaves a word gap there. A tab, like a single space, only separates letters.

What happens to ß, ligatures and Turkish letters?

The text is turned into capitals first, which changes some letters: Straße is sent as STRASSE, the fi ligature as F and I, and the dotless ı as I. Letters with no Morse code, such as é, ş and İ, are skipped and listed in capitals. Chrome 157, Firefox 155 and the WebKit build agreed on every case.

How long a text can it translate?

A generated text of 109,999 characters became 437,997 characters of Morse and decoded back unchanged. On the tool itself the Morse was on screen after a median of 5.9 ms in Chrome 157, 11 ms in Firefox 155 and 6 ms in the WebKit build, and decoding it back took 12.8, 16 and 10 ms, over 5 runs each.

Related Tools