Morse Code Translator
Text ↔ morse code with audible playback — 100% local.
Morse Code Translator
How was your experience with this tool?
Found a bug? Missing a feature? Tell us — it takes 10 seconds.
See how it works
Watch a quick simulation of this tool in action — no file needed.
How to use Morse Code Translator
Follow these steps — everything happens instantly in your browser.
- 1
Step 1. Type your message into the input box — letters, digits and basic punctuation are supported.
- 2
Step 2. Hit Play to hear the dits and dahs synthesized by the Web Audio API.
- 3
Step 3. Copy the morse code, or hit Swap to decode morse back to text.
- 4
Step 4. Use space between letters and / between words when decoding.
Morse Code Translator: Text to ITU Morse with Audible Playback
Why this matters
Morse code remains one of the most universally recognized encoding systems in the world, even 180 years after Samuel Morse first demonstrated it. Amateur radio operators still use it daily, aviation navigational beacons transmit morse identifiers, and emergency signals like SOS continue to follow the dit-dit-dit dah-dah-dah dit-dit-dit pattern. Understanding how text maps to these rhythmic pulses connects you to a communication method that predates the telephone and still works when every digital channel fails.
The challenge with morse code is not just learning the character mappings but getting the timing right. A dit is one time unit, a dah is three units, the gap between elements inside a letter is one unit, the gap between letters is three units, and the gap between words is seven units. If you simply type dots and dashes without observing these intervals, the result is unreadable to anyone trained in morse. A tool that handles both the character lookup and the audio synthesis with correct ITU timing eliminates the entire manual burden.
This translator uses standard ITU morse code and includes support for letters, digits, and 18 common punctuation marks. It also synthesizes a 700 Hz tone via the Web Audio API at 80 milliseconds per unit, so the audio output follows the exact timing specification. The lookup tables are embedded directly in the page, so nothing is sent over the network.
Reference table
| Element | Duration (units) | Example |
| --- | --- | --- |
| Dit (.) | 1 | E = . |
| Dah (-) | 3 | T = - |
| Intra-character gap | 1 | A = . - (1 unit between . and -) |
| Inter-character gap | 3 | Space between letters |
| Word gap | 7 | Encoded as / in text output |
| Tone frequency | 700 Hz | Sine wave oscillator |
| Time unit | 80 ms | Dit = 80 ms, dah = 240 ms |
How to use it
Type your message into the input box, using any combination of letters, digits, and basic punctuation.
The morse output appears instantly with spaces between letters and forward slashes between words.
Hit Play to hear the dits and dahs synthesized by the Web Audio API at correct ITU timing.
Click Swap to reverse the direction and paste morse code into the input for decoding.
When decoding, use spaces between letter codes and either / or | between words.
Testing your result
After encoding a message, play the audio and follow along with the written morse output to verify each letter. Try decoding the morse output by clicking Swap and pasting it back into the input field, then check that the decoded text matches your original. For a thorough test, encode a sentence with mixed case, numbers, and punctuation such as 'Hello, World! 123' and confirm that all characters round-trip correctly. If the audio playback sounds correct to your ear but the text output has unexpected characters, check that you are not including extra spaces in the encoded string.
Common mistakes
Using periods and dashes without proper spacing between letters, which makes decoding ambiguous since the tool cannot tell where one character ends and another begins.
Expecting lowercase and uppercase letters to produce different morse output; the ITU standard maps both 'A' and 'a' to the same pattern.
Forgetting that the forward slash in encoded output represents a seven-unit word gap, not a division symbol.
Trying to encode characters outside the supported set, such as emoji or accented characters, which will be silently skipped.
Confusing dit (short) and dah (long) when manually entering morse for decoding.
Edge cases and options
The tool supports 18 punctuation marks including period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quote, dollar sign, and at-sign. When decoding, both / and | are recognized as word separators, which is useful when pasting morse from different sources that use different conventions. If the input contains characters with no morse mapping, they are silently ignored rather than producing an error. The audio synthesis uses a continuous sine wave at 700 Hz, which falls in the range most comfortable for human hearing during extended listening sessions.
Real-world use cases
Learning morse code for an amateur radio license exam by encoding practice text and listening to the rhythm.
Creating morse code audio clips for film sound design, escape room puzzles, or educational materials.
Encoding secret messages for puzzles, geocaching clues, or classroom activities.
Verifying morse code sequences before transmitting them over a radio or signaling device.
Frequently asked questions
Q: Which morse standard is used?
A: Standard ITU morse code. Dot (.) is dit (short), dash (-) is dah (long). Word boundaries are marked with / in the encoded output.
Q: What punctuation is supported?
A: Period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quote, dollar sign, and at-sign.
Q: How is the audio generated?
A: The Web Audio API synthesizes a 700 Hz tone with 80ms per unit (dit). Dashes are three units long. Element gaps are one unit; letter gaps three units; word gaps seven units (collapsed to / in the encoded output).
Q: Does decoding handle / and | as word separators?
A: Yes — both are recognized as word separators when decoding morse back to text.
Q: Can I adjust the playback speed?
A: The current version uses a fixed 80ms time unit. Changing the speed would require modifying the unit duration, which is not exposed as a user control in this version.
Q: Is anything uploaded?
A: No. The morse lookup tables are embedded in the page and audio is synthesized locally — no network requests are made.
Start using it now
Try the Morse Code Translator tool. See also ASCII Code Converter and Fancy Text.
Want the extended step-by-step tutorial? Read it here.
Why use this tool
Private by design
All processing happens locally in your browser. Open DevTools → Network and you'll see zero file uploads. Ever.
Instant
No upload wait, no queue, no server round-trip. Results appear the moment you drop a file.
Free & unlimited
No accounts, no watermarks, no daily caps. Use it as many times as you like, forever.
Works everywhere
Desktop, tablet or phone — every tool is responsive and installable as a PWA for offline use.
Frequently asked questions
Everything you might want to know about morse code translator.
❤️ This tool is free — forever.
Sharing it helps more people discover it, and ad revenue from visitors is what keeps it free. No accounts, no catch.
ASCII Code Converter
Convert text to decimal, hex or binary ASCII codes — and back.
Fancy Text
Generate 𝓢𝓬𝓻𝓲𝓹𝓽, ⒮⒬⒰⒜⒭⒠, S̶T̶R̶I̶K̶E̶, 𝕓𝕝𝕒𝕔𝕜𝕓𝕠𝕒𝕣𝕕, fullwidth & more.
Case Converter
UPPER, lower, Title, Sentence, camelCase, snake_case & more.
Reverse Text
Reverse characters, words or lines — instantly.