Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Morse Code Translator with Audio Playback

Convert text to and from Morse code and play it as sound.

Use via API

Translate text to International Morse code or Morse back to text, with the playback duration at a given speed. Send JSON, get JSON back.

POST https://pithlab.com/api/v1/tools/morse-code-translator

curl https://pithlab.com/api/v1/tools/morse-code-translator \
  -H "Authorization: Bearer $PITHLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"SOS help","direction":"encode"}'

Fields and responseOpenAPI documentGet an API key

About the Morse Code Translator

Translate text to Morse code and Morse back to text, with letters, numbers, punctuation and prosigns like <SK>. Play the result as audio at the speed you choose.

How to use the Morse Code Translator

  1. Type text or paste Morse code. Auto mode detects which one you entered.
  2. In Morse, separate letters with spaces and words with a slash (/).
  3. Check the note below the result for any characters or codes that could not be translated.
  4. Set the speed in words per minute and press Play to hear the Morse code.
  5. Copy or download the result.

Examples

SOS

Input

SOS

Output

... --- ...
Words are separated by a slash

Input

Hello world

Output

.... . .-.. .-.. --- / .-- --- .-. .-.. -..
Decode the first long-distance telegraph message

Input

.-- .... .- - / .... .- - .... / --. --- -.. / .-- .-. --- ..- --. .... - ..--..

Output

WHAT HATH GOD WROUGHT?

Frequently asked questions

How do I write Morse code so it decodes correctly?

Use . for a dot and - for a dash, one space between letters and / between words. Three or more spaces also count as a word gap. Typographic dots and dashes such as · or − are accepted and converted.

What are prosigns and how do I enter them?

Prosigns are procedure signals sent as one run with no gap between letters, such as SK (end of contact) or SOS. Type them in angle brackets, like <SK> or <SOS>. AR, BT, KN and AS share their codes with +, =, ( and &, so they decode as those characters.

What happens to characters Morse does not have?

Letters with accents, emoji and symbols outside the international Morse set are skipped and listed under the result, so you know what was left out. Unknown codes when decoding show as � and are listed too.

How is the audio speed worked out?

With the standard PARIS timing. At W words per minute a dot lasts 1200 / W milliseconds, a dash three dots, the gap between letters three dots and between words seven. The tone is a 600 Hz sine wave played by your browser.