Translate any text to International Morse Code and play it back with accurate timing. Control speed and tone frequency. Runs entirely in your browser.
. - . . - . -- . - . . - .
Interaction Dashboard
Plaintext Input
0 characters
Morse Code Output (real-time)
Speed (WPM)20 WPM
Tone Frequency600 Hz
Unit
60 ms
Dot
60 ms
Dash
180 ms
Letter gap
180 ms
Word gap
420 ms
Ready. Enter a message and click Play.
Advertisement
Key Terms Explained
International Morse Code
The modern standardized version of Morse code defined by the ITU, using dots and dashes to represent letters, digits, and punctuation. Replaced the original American Morse system.
Web Audio API
A built-in browser API that lets JavaScript create, process, and synthesize audio entirely on the client side, with no plugins or server calls required.
Words Per Minute (WPM)
The standard unit for Morse code speed. Uses the word PARIS (50 units long) as the benchmark. At 20 WPM, one unit of time is 60 milliseconds.
Oscillator
An audio node that generates a repeating waveform at a set frequency. This tool uses a sine wave oscillator to produce the smooth, pure tone characteristic of Morse code.
Frequency (Pitch)
Measured in Hertz (Hz), frequency determines the pitch of the tone. Lower values produce a deeper beep; higher values a sharper one. Standard CW practice tones typically fall between 500 and 800 Hz.
Dit and Dah
The spoken names for a dot (dit) and a dash (dah) in Morse code. A dit lasts 1 unit of time; a dah lasts 3 units. These names are also the sound a skilled operator hears while copying code.
Continuous Wave (CW)
The ham radio term for Morse code transmission. A CW signal is an unmodulated carrier wave that is simply switched on and off to form dots and dashes. The tone you hear is generated at the receiving end.
GainNode
A Web Audio API node that controls the amplitude (volume) of a signal. This tool ramps the gain up and down at the edges of each dit and dah to prevent audible clicks.
The Complete Guide to Morse Code Audio Synthesis
Whether you are a ham radio operator practicing for your license exam, a history enthusiast, or simply curious about how dots and dashes translate into sound, this tool gives you a fully accurate, browser-based Morse code audio synthesizer with no software to install and nothing sent to a server.
How to Use This Tool
Type or paste any text into the Plaintext Input box on the left. The Morse Code Output box on the right updates in real time with every keystroke, showing the full encoded message using standard dots and dashes. Spaces between words appear as forward slashes in the output.
Adjust the Speed slider to choose a comfortable WPM rate. Beginners typically start at 5 to 10 WPM; experienced operators often practice at 20 to 25 WPM. The Tone Frequency slider lets you match the pitch to your preference or to the tone of a specific radio station you are copying. Click Play Audio to hear the message. Click Stop at any time to interrupt playback immediately.
Standard Morse Code Timing Rules
All Morse timing is derived from a single unit of time (T), calculated as:
T = 1200 / WPM (milliseconds)
At 20 WPM, T = 60 ms. All other durations are multiples of this unit:
Element
Duration
Example at 20 WPM
Dot (dit)
1 unit
60 ms
Dash (dah)
3 units
180 ms
Gap between elements (within one letter)
1 unit
60 ms
Gap between letters
3 units
180 ms
Gap between words
7 units
420 ms
These ratios come from the ITU Morse standard (M.1677) and are what any licensed amateur radio examiner or contest logger will expect. This tool implements them exactly.
Why Sine Waves and Why Ramps?
The Web Audio API generates a pure sine wave for the tone. A sine wave is the simplest periodic waveform: just one frequency, no harmonics, which is why CW operators describe it as a clean or pure tone. When you switch a sine wave on or off instantly, the sudden jump in amplitude creates a discontinuity that your speaker reproduces as a click or pop. This tool applies a short linear ramp of about 5 milliseconds to the volume envelope at the start and end of every dit and dah. Five milliseconds is below the audible threshold for pitch change but long enough to eliminate the click entirely.
International Morse Code: A Brief History
Samuel Morse and Alfred Vail developed the original American Morse code in the 1840s for use with telegraph systems. The International (or Continental) Morse code was standardized in 1865 at the International Telegraph Conference in Paris and has been the global standard ever since. Today it remains an optional element of the amateur radio license in most countries and is used by maritime and aeronautical services for non-voice communication. The ITU formally defines the current standard as Recommendation M.1677-1.
Frequently Asked Questions
Morse code speed uses the word PARIS as the standard benchmark. PARIS is exactly 50 units long when encoded in standard Morse. At 20 WPM, each unit (one dot duration) is 1200 divided by 20, which equals 60 milliseconds. A dash is 3 units (180 ms), the gap between elements of a letter is 1 unit (60 ms), the gap between letters is 3 units (180 ms), and the gap between words is 7 units (420 ms). The timing strip above the playback buttons shows all five values live as you move the WPM slider.
Abrupt on/off switching of a sine wave creates a sharp discontinuity in the waveform that the speaker renders as a click or pop. This tool applies a very brief gain ramp of about 5 milliseconds at the start and end of each dot or dash using the Web Audio API linearRampToValueAtTime method. The ramp is too short to affect the perceived tone but long enough to eliminate the discontinuity, so the audio sounds clean and professional.
Yes, with one caveat. Once the page has loaded in your browser, all translation and audio synthesis runs entirely on your device using the built-in Web Audio API. No network requests are made during use. If you save the page as an HTML file, you can open it directly from your hard drive with no internet connection. The only dependency is a modern browser that supports the Web Audio API, which includes Chrome, Firefox, Safari, and Edge.
Standard International Morse Code timing is built from one unit of time, where the unit equals 1200 divided by WPM in milliseconds. A dot (dit) lasts 1 unit. A dash (dah) lasts 3 units. The gap between elements within a single letter is 1 unit. The gap between letters is 3 units. The gap between words is 7 units. These ratios are standardized by the ITU and are what this tool implements.