AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I convert text to Morse code online?

Type or paste text into AnyTool Morse Code Converter and it is translated to International Morse instantly, or paste Morse on the other side to decode it back to text. You can play the message as sound with adjustable speed (WPM), tone and volume while a light flashes in time, and copy or download either side. Everything runs in your browser, so nothing is uploaded.

  • Live two-way translation: text to Morse and Morse to text as you type
  • International Morse for A-Z, 0-9, punctuation and common prosigns like SOS
  • Play audio via the Web Audio API with WPM, Farnsworth, tone and volume controls
  • Synced visual flasher that blinks in time with the sound
  • Tolerant decoding, configurable dot/dash glyphs, copy and download — 100% client-side

What is

Morse Code Converter

A Morse code converter is a tool that translates plain text into International Morse code — short and long signals (dots and dashes) representing each letter, numeral and punctuation mark — and decodes Morse back into text, often adding audio playback and a visual flasher so the message can be heard and seen.

Text Tools

Related terms

International Morse CodeDots and DashesCWProsignsWPM

Frequently Asked Questions

Yes. Press Play and the message sounds as a CW tone using the Web Audio API, with a light that flashes in time. Speed, tone and volume are adjustable.

The converter plays your message through a sine-wave oscillator using the browser Web Audio API, so it sounds like real continuous-wave (CW) Morse. You can set the speed in words per minute, choose a tone frequency, adjust the volume, and turn on Farnsworth spacing to slow the gaps for practice. A visual flasher blinks in sync, and the audio is cleaned up the moment you press Stop.

A space separates letters and a slash or wide gap separates words; within a letter the dots and dashes sit together with no gap.

In the standard layout a single space separates the letters of a word, and a forward slash or a wider gap separates whole words. Inside one letter the dots and dashes are written together. The converter follows this convention when encoding and is tolerant of extra spaces, slashes or pipes when decoding.

SOS is three dots, three dashes, three dots, sent as one continuous signal: ...---...

SOS is the internationally recognised distress signal, written ...---... — three dots, three dashes and three dots. It is sent as one run with no gaps between the letters. The converter includes SOS and other common prosigns such as AR (end of message) and SK (end of contact) as one-click inserts.

Yes. All translation and audio happen in your browser, so your text is never uploaded and the tool works offline after the first load.

Encoding, decoding and audio playback all run locally in your browser with JavaScript and the Web Audio API. Nothing is sent to a server, there is no account or tracking, and the page keeps working offline once loaded — so you can convert private messages safely.

Detailed Explanation

Methodology

How the Morse Code Converter Works

AnyTool Morse Code Converter translates entirely in the browser using a lookup table for International Morse code (ITU-R M.1677). Encoding maps each letter, numeral and punctuation mark to its dot/dash pattern, joining letters with a space and words with a slash. Decoding reverses the table and is deliberately tolerant: it normalises unicode dot and dash glyphs, accepts extra spaces, and treats a slash, pipe or wide gap as a word break, silently skipping any token it cannot match.

  • Covers 26 letters, 10 numerals and 18 punctuation marks per ITU-R M.1677
  • Common prosigns such as SOS, AR and SK are available as one-click inserts
  • Decoding accepts unicode dots/dashes and tolerates irregular spacing
  • Configurable dot and dash glyphs and letter/word separators
  • All translation is client-side JavaScript — no server round-trip
How It Works

Audio Playback and Visual Flasher

The converter plays a message as continuous-wave (CW) tone using the browser Web Audio API. The pure engine computes a PARIS-standard timing schedule — dash equals three dot units, the inter-letter gap is three units and the word gap is seven — at the chosen words-per-minute, optionally stretching the gaps for Farnsworth practice. A sine oscillator is gated per element and a visual light flashes in sync. The AudioContext and oscillator are torn down on Stop and on leaving the page, so nothing keeps running.

  • Sine-wave oscillator via the Web Audio API for authentic CW tone
  • Adjustable speed (WPM), tone frequency and volume
  • Optional Farnsworth spacing widens letter and word gaps for learning
  • Light flasher blinks in time with the audio
  • AudioContext is closed on Stop and component unmount — no leaks
Privacy & Security

Privacy and Offline Use

Because encoding, decoding and audio all run in the browser, your text never reaches a server, there is no account or tracking, and the page works offline after first load. Either side can be copied or downloaded as a text file, making it easy to share an encoded message or a decoded transcript without uploading anything.

Morse conversion: in-browser (AnyTool) vs typical online translators
CapabilityAnyToolTypical online translators
Text handlingProcessed in your browserOften posted to a server
Two-way translationLive text ⇄ Morse, both directionsSometimes one direction only
Audio playbackWeb Audio CW tone, adjustableSometimes a fixed beep or absent
Visual flasherSynced light blinkRarely offered
Farnsworth spacingYes, for practiceUsually missing
ProsignsSOS, AR, SK and more built inOften letters and numbers only
Works offlineYes (PWA)No

Server-based translators can retain pasted text; AnyTool encodes, decodes and plays audio locally and uploads nothing.