
Free Morse Code Encoder/Decoder
Encode text to Morse code or decode Morse code back to text. Supports letters, numbers, and common symbols.
The Morse Code Encoder/Decoder converts text to Morse code and back, covering letters, numbers, and common symbols. It is a fun and practical way to work with this classic signalling system.
Morse Code Reference
A = ·−, B = −···, C = −·−·, D = −··, E = ·, F = ··−·, G = −−·, H = ····, I = ··, J = ·−−−, K = −·−, L = ·−··, M = −−, N = −·, O = −−−, P = ·−−·, Q = −−·−, R = ·−·, S = ···, T = −, U = ··−, V = ···−, W = ·−−, X = −··−, Y = −·−−, Z = −−··
0 = −−−−−, 1 = ·−−−−, 2 = ··−−−, 3 = ···−−, 4 = ····−, 5 = ·····, 6 = −····, 7 = −−···, 8 = −−−··, 9 = −−−−·
About Morse Code Encoder/Decoder
This Morse Code tool converts English text to Morse code sequences (dots · and dashes −) and decodes Morse code back into readable text. It supports letters A–Z and digits 0–9, with proper spacing conventions: letters are separated by single spaces, while words are separated by " / " in the output. This tool is useful for hobbyist radio operators, cryptography enthusiasts, educators demonstrating classic communication methods, or anyone encoding secret messages. The reference chart at the bottom of the page provides a quick visual guide for all character mappings, and the clean interface allows for quick entry without distractions or unnecessary complexity.
The implementation uses a morseMap object that maps each character to its International Morse Code equivalent. Encoding splits the input string into individual characters, converts them to uppercase, looks up the code, and joins them with spaces; decoding does the reverse using a reverseMorse lookup table. The tool also supports punctuation marks such as period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, equals, plus, dash, underscore, double quote, dollar sign, and at symbol, which are mapped to their standard Morse equivalents. When decoding, the user must separate Morse symbols for letters with spaces and words with " / " for accurate results, mimicking the natural rhythm of Morse transmission and producing authentic output that mirrors historical telegraph practices.
All processing occurs locally in the browser using the calc() function, with no data transmitted to external servers. The result box supports a click-to-copy feature that uses the Clipboard API to paste the output directly. Since no network calls are made, the tool works offline and ensures complete privacy for any sensitive content being encoded or decoded. Users can encode urgent messages for backup communication, decode historical radio intercepts, or practice their Morse code proficiency with real-time feedback on accuracy and formatting, and the immediate output display helps users learn and verify their understanding of the encoding process.
How to use this Morse Code Encoder/Decoder
- Select Encode to convert text to Morse code, or Decode to convert Morse code to text.
- Enter your text or Morse code sequence in the input field below.
- For encoding, use standard letters and numbers. For decoding, use dots (·), dashes (−), and spaces between letters.
- Click on the result box to copy your output to the clipboard.
FAQ
What is Morse code?
Morse code is a method of encoding text as sequences of dots (·) and dashes (−), representing letters and numbers. It was historically used in telegraphy and remains popular in amateur radio.
Does the Morse code tool transmit my text to a server?
No. All encoding and decoding happens locally in your browser using JavaScript. Nothing is uploaded or stored.
Is this Morse code tool free?
Yes, completely free with no limits on usage or character count.
How do I use spaces?
Letters are separated by a single space, and words are separated by " / " in the output. When decoding, use the same format for best results.
