Morse Code Converter
Convert text to Morse code and decode Morse code back to text.
11 characters · Letters, numbers, and punctuation supported · Converts in real time
What Is the Morse Code Converter?
This Morse Code Converter encodes text to Morse code and decodes Morse back to text in real time as you type. It supports all standard letters, digits 0–9, and common punctuation. An audio playback engine generates the actual Morse sound signal in your browser at any speed from 5 to 35 WPM, and a character-by-character breakdown shows the code for every letter.
- ›Real-time conversion: output updates instantly as you type, no need to click a button.
- ›Audio playback: hear the Morse code at your chosen speed (5–35 WPM) using the Web Audio API, directly in the browser with no download required.
- ›Speed control: slider sets words per minute (WPM). Standard amateur radio speed is 13–25 WPM; beginners start at 5–10 WPM.
- ›Character breakdown: every character is shown with its Morse pattern for easy learning and verification.
- ›Swap direction: one-click button to swap text and Morse fields for quick round-trip testing.
Formula
| Character | Morse | Character | Morse |
|---|---|---|---|
| A | ·− | B | −··· |
| C | −·−· | D | −·· |
| E | · | F | ··−· |
| G | −−· | H | ···· |
| I | ·· | J | ·−−− |
| K | −·− | L | ·−·· |
| M | −− | N | −· |
| O | −−− | P | ·−−· |
| 1 | ·−−−− | 2 | ··−−− |
| SOS | ···−−−··· | 0 | −−−−− |
How to Use
- 1Select "Text → Morse" to encode plain text, or "Morse → Text" to decode.
- 2Type or paste your input in the text area, output appears instantly.
- 3For decoding Morse: separate each letter code with a single space, and use / or three spaces for word gaps.
- 4Click "▶ Play Morse" to hear the audio signal in your browser.
- 5Drag the Speed slider to change playback speed (5–35 WPM).
- 6Click "Copy" to copy the output to your clipboard.
- 7Use the "⇄ Swap" button to move output back into the input field.
Example Calculation
SOS, the universal distress signal
HELLO WORLD
Decoding Morse code
Understanding Morse Code Converter
History of Morse Code
Morse code was developed by Samuel Morse and Alfred Vail in the 1830s and 1840s for use with the electric telegraph. The original American Morse Code was designed for landline telegraphs; International Morse Code (also called Continental Morse Code) was standardised in 1865 and adopted worldwide, including by maritime radio operators.
International Morse Code replaced American Morse after World War II for maritime and aeronautical communication. It is still used today by amateur (ham) radio operators worldwide, in aviation (navigational beacon identifiers), and for accessibility applications. The ITU standard (M.1677) defines the current International Morse Code used in this converter.
- ›Morse was used for transatlantic telegrams, ship-to-shore communication, and World War I/II military signals.
- ›The distress signal SOS (· · · − − − · · ·) was adopted by the 1906 Berlin Radiotelegraph Convention.
- ›Maritime vessels were required to maintain a Morse code watch until 1999, when GMDSS (digital) replaced it.
- ›Amateur radio operators still use Morse code (CW, continuous wave) on HF bands worldwide.
Timing and Speed in Morse Code
Morse code timing is defined relative to one dot duration (one "dit"). All other durations are multiples: a dash (dah) lasts 3 dots; the gap between symbols within a letter is 1 dot; between letters is 3 dots; between words is 7 dots. Speed is measured in words per minute (WPM), where the reference word "PARIS" (· − · · · · · · · · − − − · − − − ·) takes 50 timing units at standard spacing.
At 20 WPM, one dot lasts about 60 ms. At 5 WPM (beginner speed), a dot is 240 ms. Experienced operators can comfortably decode 20–30 WPM by sound alone. The world speed record is over 75 WPM.
- ›Dot duration (ms) = 1200 / WPM
- ›Dash duration = 3 × dot duration
- ›Inter-symbol gap = 1 × dot duration
- ›Inter-letter gap = 3 × dot duration
- ›Inter-word gap = 7 × dot duration
Morse Code in Modern Accessibility
Morse code has found new life as an accessibility tool. Google added Morse code as a keyboard input method for Android and Gboard, allowing users with motor impairments to type using just two inputs (dot and dash). The iOS and Android accessibility frameworks support single-switch scanning where Morse patterns enable full keyboard input with minimal physical movement.
- ›Gboard Morse keyboard: type Morse using two large buttons or sip/puff switch input.
- ›Eye-tracking systems can send Morse code using blinks (dot) and stares (dash).
- ›Stephen Hawking's communication device used a similar binary encoding principle.
- ›Locked-in syndrome patients have used Morse blinking to communicate.
Complete Morse Code Reference
This converter supports all 26 letters (A–Z), digits 0–9, and common punctuation including period, comma, question mark, exclamation mark, slash, hyphen, parentheses, apostrophe, quotation mark, at sign, equals, plus, ampersand, semicolon, and colon, matching the ITU M.1677 standard.
Frequently Asked Questions
What is Morse code and how does it work?
Morse code is a character encoding system that represents each letter and digit as a sequence of short signals (dots ·) and long signals (dashes −). The duration of a dash is three times that of a dot. Letters are separated by pauses equal to one dot; words by pauses equal to seven dots.
Originally transmitted as electrical pulses over telegraph wires, Morse code can be sent as sound (radio), light (flashing), or touch (vibration). The underlying principle is binary, only two signal states (on and off) are needed, making it resilient in poor signal conditions.
How do I decode Morse code?
Use the "Morse → Text" mode of this converter. Paste or type the Morse code with these formatting rules:
- ›Each letter code is separated from the next by a single space
- ›Words are separated by a forward slash / or three consecutive spaces
- ›Dots are · or . and dashes are − or -
Example: .... . .-.. .-.. --- / .-- --- .-. .-.. -.. decodes to HELLO WORLD.
What does WPM mean in Morse code?
WPM stands for Words Per Minute, the standard measure of Morse code speed. The reference word is "PARIS" (a 50-unit sequence at standard timing). At 20 WPM, one dot lasts 60 ms.
- ›5 WPM: beginner learning speed, dot = 240 ms
- ›13 WPM: US amateur radio licence minimum (Element 1 exam historically)
- ›20–25 WPM: comfortable conversational speed for experienced operators
- ›35+ WPM: high-speed contest operating
What is SOS and why is it used as a distress signal?
SOS (· · · − − − · · ·) was adopted as the international maritime distress signal in 1906 because it is easy to send and unmistakable, three dots, three dashes, three dots. It does not stand for any phrase (it was not "Save Our Souls" originally), though that backronym became popular.
SOS is sent as a single prosign without letter spaces. It remains the universal distress code in aviation, at sea, and in survival situations where visual or audio signalling is possible. The corresponding voice code is "Mayday" (from French m'aidez, help me).
Is Morse code still used today?
Yes, in several active contexts:
- ›Amateur (ham) radio: Morse code (CW) is actively used on HF bands for DX contacts and contests.
- ›Aviation: VOR, NDB, and ILS radio beacons transmit their identifier in Morse code.
- ›Accessibility: Google Gboard Morse keyboard and switch-scanning input for motor-impaired users.
- ›Military: some special operations units still train in Morse for covert communications.
- ›Emergency signalling: three dots, three dashes, three dots (SOS) with a torch or mirror.
What punctuation does this converter support?
The converter supports the full ITU M.1677 punctuation set:
- ›. (period) = ·−·−·−
- ›, (comma) = −−··−−
- ›? (question mark) = ··−−··
- ›! (exclamation) = −·−·−−
- ›/ (slash) = −··−·
- ›- (hyphen) = −····−
- ›( ) (parentheses)
- ›' " @ = + & ; :
Characters not in the Morse alphabet (accented letters, etc.) are silently skipped during encoding. During decoding, unrecognised codes are replaced with ?.
How does the audio playback work?
The audio playback uses the Web Audio API built into modern browsers. It generates a 700 Hz sine wave tone in real time, no server round-trip, no downloads. The dot and dash durations are calculated from your chosen WPM setting using the formula: dot duration (ms) = 1200 / WPM.
The audio is generated entirely in your browser. If playback does not work, ensure your browser permissions allow audio. Browsers may require a user gesture (button click) before starting audio, this is why the Play button is required rather than auto-playing.