Morse Code preview

Morse Code

Convert text to Morse code and back. Listen to audio playback with dot and dash sounds via Web Audio. Includes a full A-Z and 0-9 reference table.

Key features

  • Two-way conversion: text to Morse and Morse to text
  • Audio playback with authentic dot and dash sounds
  • Complete reference table for A-Z and 0-9
  • Standard International Morse Code support

Guide

Morse code is a character encoding system that represents letters, numbers, and punctuation as sequences of short signals (dots) and long signals (dashes). Invented by Samuel Morse and Alfred Vail in the 1830s for use with the electric telegraph, it was the first widely adopted system for long-distance electronic communication. Before Morse code, sending a message from New York to Philadelphia required a physical courier on horseback, a process that took days. After Morse demonstrated his telegraph in 1844 with the message "What hath God wrought," information could travel at the speed of electricity. This was arguably the most significant communication breakthrough since the invention of the printing press. WebRecast Morse Code Translator converts text to Morse code and Morse code back to text, with audio playback that lets you hear the encoded message as authentic dot-and-dash beeps. The tool follows International Morse Code (ITU) standards, covering all 26 Latin letters, digits 0-9, and common punctuation marks. Type regular text and see it converted to dots and dashes instantly. Paste in a Morse code sequence (using dots, dashes, and spaces) and see it decoded to readable text. Click the play button to hear the message rendered as audio tones through your browser's Web Audio API. The encoding scheme has an elegant structure that reflects a deep understanding of language patterns. The most frequently used letter in English, E, has the shortest code: a single dot. The second most common letter, T, is a single dash. A and I, both very common letters, use only two elements. Common letters have short codes, and rare letters have longer codes. This frequency-based optimization minimizes total transmission time, a design principle that predates modern data compression algorithms like Huffman coding by over a century. In fact, Huffman coding (invented in 1952) uses the exact same principle: assign shorter codes to more frequent symbols. Morse and Vail arrived at this optimization through practical observation and trial rather than mathematical theory. Here is the complete encoding for letters. A is dot-dash. B is dash-dot-dot-dot. C is dash-dot-dash-dot. D is dash-dot-dot. E is dot. F is dot-dot-dash-dot. G is dash-dash-dot. H is dot-dot-dot-dot. I is dot-dot. J is dot-dash-dash-dash. K is dash-dot-dash. L is dot-dash-dot-dot. M is dash-dash. N is dash-dot. O is dash-dash-dash. P is dot-dash-dash-dot. Q is dash-dash-dot-dash. R is dot-dash-dot. S is dot-dot-dot. T is dash. U is dot-dot-dash. V is dot-dot-dot-dash. W is dot-dash-dash. X is dash-dot-dot-dash. Y is dash-dot-dash-dash. Z is dash-dash-dot-dot. Numbers follow a systematic pattern that is easy to memorize. 1 is dot-dash-dash-dash-dash. 2 is dot-dot-dash-dash-dash. 3 is dot-dot-dot-dash-dash. 4 is dot-dot-dot-dot-dash. 5 is dot-dot-dot-dot-dot. 6 is dash-dot-dot-dot-dot. 7 is dash-dash-dot-dot-dot. 8 is dash-dash-dash-dot-dot. 9 is dash-dash-dash-dash-dot. 0 is dash-dash-dash-dash-dash. Notice the pattern: numbers 1 through 5 start with increasing dots followed by decreasing dashes. Numbers 6 through 0 start with increasing dashes followed by decreasing dots. The pattern is symmetric around 5, making it one of the easiest parts of Morse code to learn. Punctuation marks have longer codes because they occur less frequently. Period is dot-dash-dot-dash-dot-dash. Comma is dash-dash-dot-dot-dash-dash. Question mark is dot-dot-dash-dash-dot-dot. Exclamation mark is dash-dot-dash-dot-dash-dash. Slash is dash-dot-dot-dash-dot. These longer codes illustrate the trade-off in variable-length encoding: less frequent symbols get longer codes so that the overall message length stays minimized. Timing is critical in Morse code and distinguishes it from a simple substitution cipher. The standard timing relationships are: a dot is one unit long. A dash is three units long. The space between parts of the same letter (between dots and dashes within a character) is one unit. The space between letters is three units. The space between words is seven units. These ratios ensure that a listener (or decoder) can distinguish between dots and dashes and identify the boundaries between characters and words. Without precise timing, the sequence dot-dash-dot could be read as R (dot-dash-dot as one character) or as E-T-E (three separate characters). The timing structure resolves this ambiguity. The audio playback in this tool follows these standard timing ratios, producing output that matches what you would hear on an actual telegraph or amateur radio transmission. The Web Audio API, a powerful browser technology for generating and manipulating sound, creates an oscillator that produces a sine wave tone at a configurable frequency (typically around 600-800 Hz, the range traditionally used for Morse code practice). Dots play as short tones, dashes play as tones three times longer, and the silence between characters and words provides the rhythmic structure that makes Morse code listenable. You can hear the natural rhythm of the language in the patterns. Common words produce short, punchy sequences. The word "the" is dash dot-dot-dot-dot dot, a quick rhythm. The word "it" is dot-dot dash, even quicker. Uncommon words with rare letters produce longer, more complex patterns. Skilled Morse code operators learn to recognize words by their overall rhythmic pattern rather than decoding individual characters. This is similar to how experienced readers of printed text recognize whole words by shape rather than individual letters. The speed of Morse code transmission is measured in words per minute (WPM). The standard reference word is "PARIS" (dot-dash-dash-dot dot-dash-dot dot-dash-dot-dot dot-dot dot-dot-dot), which contains 50 dot-units including all internal and inter-character spacing. At 20 WPM, a proficient operator sends and receives 20 instances of this reference word per minute. Beginner operators typically start at 5-10 WPM. Skilled operators work comfortably at 20-30 WPM. Competition-level operators can exceed 40 WPM. The Farnsworth method for learning Morse code sends individual characters at a faster speed (like 18 WPM) but adds extra spacing between characters and words, resulting in an effective speed of perhaps 10 WPM. This trains the ear to recognize characters by their overall sound pattern rather than counting individual dots and dashes. Let's look at who uses Morse code today and why this tool is useful. Amateur radio operators (ham radio). Morse code, referred to as CW (continuous wave) in amateur radio terminology, remains one of the most popular modes of communication among ham radio enthusiasts. CW signals can be decoded at much lower signal strengths than voice, which means Morse code transmissions travel farther with less power. A CW signal of just a few watts can make contact across continents under the right propagation conditions. Many ham radio operators practice sending and receiving Morse code, and a translator tool helps with learning and verification. The International Telecommunication Union removed the Morse code requirement for amateur radio licensing in 2003, but the mode remains widely used voluntarily because of its efficiency, tradition, and the satisfaction of mastering a manual communication skill. Emergency communication. The international distress signal SOS (dot-dot-dot dash-dash-dash dot-dot-dot) is the most recognized Morse code sequence in the world. It was adopted in 1906 as the international radiotelegraph distress signal, replacing the earlier CQD used by British operators. It was chosen not because the letters stand for anything ("Save Our Souls" and "Save Our Ship" are backronyms created after the fact) but because the pattern is easy to transmit and unmistakable to hear. Three quick dots, three long dashes, three quick dots. In survival situations, people have used Morse code with flashlights, whistles, tapping sounds, mirror reflections, and even blinking. Knowing the SOS pattern and a few basic characters could be genuinely useful in an emergency where other communication methods are unavailable. Navigation and aviation. Aviation navigation beacons (NDBs, Non-Directional Beacons) identify themselves by broadcasting their identifier in Morse code. Pilots listen for these identifiers to confirm they are tuned to the correct beacon. VOR (VHF Omnidirectional Range) stations also broadcast their identifier in Morse code. While GPS has largely replaced these legacy navigation systems, they remain operational as backups, and pilots are still trained to identify them. Education. Students studying telecommunications history, information theory, or early computing encounter Morse code as one of the foundational encoding systems. The tool provides a hands-on way to experiment with encoding and decoding messages. Teachers use it to demonstrate concepts like variable-length encoding, signal timing, the relationship between character frequency and code length, and the fundamentals of digital communication (two discrete states: signal and no signal). Morse code is an excellent entry point for understanding how all digital communication works because it reduces the concept to its simplest form. Puzzle design and escape rooms. Morse code is a popular encoding for puzzles, scavenger hunts, geocaching clues, and escape room challenges. Puzzle designers encode clues in Morse code, and participants need to decode them. The translator tool helps both designers (for encoding) and players (for decoding). The audio feature adds another dimension, as some puzzles provide Morse code as audio that must be decoded by ear. Geocaching puzzles frequently use Morse code because it is recognizable enough that participants know what they are looking at but still requires effort to decode. Accessibility technology. Morse code has found a new and important role in assistive technology. People with limited mobility can use Morse code as an input method, entering dots and dashes through switches, head movements, or eye blinks. Google's Gboard keyboard for Android includes a Morse code input mode that translates dot-and-dash taps into text. Apple's iOS accessibility settings support switch control with Morse code input. The simplicity of two symbols (dot and dash) makes Morse code one of the most accessible input methods for people who cannot use a standard keyboard. Tania Finlayson, an engineer born with cerebral palsy, uses Morse code as her primary communication method and has been an advocate for Morse code accessibility. Cultural and creative uses. Morse code appears in music (the Morse code for V, dot-dot-dot-dash, inspired the opening motif of Beethoven's Fifth Symphony as used in Allied World War II broadcasts, where V stood for Victory). It appears in jewelry (bracelets and necklaces encoding names or messages in dot-and-dash beads are popular gift items). It appears in tattoos (people encode meaningful words or dates in Morse code as a subtle personal design). It appears in film and television as a plot device (prisoners tapping on walls, spies hiding messages in innocuous signals). It appears in architecture (the neon signs on some buildings blink patterns that encode messages in Morse code). The translator tool lets people encode personal messages for all of these creative applications. Military history. Morse code was the primary long-range communication method for military forces from the American Civil War through World War II. The Union Army used telegraph lines extensively during the Civil War, providing a decisive communications advantage. During World War I, Morse code carried battlefield communications across wired and wireless telegraph systems. During World War II, Morse code was the backbone of naval communication. The Battle of Midway, a turning point in the Pacific Theater, was made possible partly by code-breaking efforts against Japanese Morse code transmissions. The development of code-breaking capabilities, including the Enigma machine and the Bombe computers at Bletchley Park, led directly to the development of early electronic computers. Alan Turing's work on breaking Morse-transmitted Enigma codes is considered a foundational contribution to computer science. Let's walk through some practical exercises with the tool. Encode your name. Type your full name and see the Morse code representation. Play the audio and listen to the rhythm. Notice how common letters (E, T, A, I, N, S) produce short, quick patterns while less common letters (Q, X, Z) produce longer sequences. Your name has a unique rhythmic signature in Morse code. Decode the distress signal. Enter "... --- ..." (three dots, three dashes, three dots with letter spaces) into the Morse-to-text field and verify that it decodes to SOS. Try encoding "SOS" from the text side and compare it with what you entered manually. Practice common words. Encode words you use frequently and listen to their audio patterns. With practice, you can start to recognize short words by their sound alone. The word "the" in Morse code is dash dot-dot-dot-dot dot, which has a distinctive rhythm. "Hello" is dot-dot-dot-dot dot dot-dash-dot-dot dot-dash-dot-dot dash-dash-dash. Create a secret message. Encode a message for a friend using the text-to-Morse function. Send them the dots and dashes via text message or email. They can paste it into the Morse-to-text field to decode it. The audio feature lets them hear the message as well, adding a layer of experience beyond just reading dots and dashes. Learn the alphabet gradually. Start with the most common letters: E, T, A, O, I, N, S, H, R. These nine letters make up about 70% of English text. Learn their Morse codes and practice until you can recognize them by sound. Then add the next most common letters: D, L, C, U, M, W, F, G, Y, P, B. Finally, learn the remaining letters: V, K, J, X, Q, Z. This frequency-based learning approach mirrors how professional operators learned Morse code. The tool includes a complete reference table showing the Morse code for every supported character. This table serves as a quick lookup during learning and as a verification reference when manually encoding or decoding. The table follows ITU international Morse code standards, which are the universally accepted standard used by amateur radio, aviation, maritime, and military communications worldwide. A few technical notes about the implementation. The encoding and decoding functions are straightforward character mapping operations. Each text character maps to a specific dot-dash sequence through a lookup table. Encoding concatenates the sequences with appropriate spacing (three units between characters, seven units between words). Decoding splits the input on spaces and maps each dot-dash sequence back to its character. The tool handles edge cases like multiple spaces between words, mixed case input (converted to uppercase before encoding, since Morse code does not distinguish case), and unrecognized characters (which are skipped with a note). There are several methods for learning Morse code, and the translator tool supports all of them. The Koch method, developed by German psychologist Ludwig Koch, teaches characters at full speed (typically 20 WPM) but introduces them two at a time. You start with just K and M (or E and T, depending on the variant), practice until you can recognize them reliably, then add one more character. This method trains pattern recognition rather than counting dots and dashes. The Farnsworth method, mentioned earlier, sends characters at full speed but with extended gaps between them. This also trains pattern recognition while giving beginners time to process. The translator tool complements both methods because you can verify your decoding by typing the Morse code you heard and checking whether the text output matches what was sent. For those interested in the physics of Morse code transmission, the original telegraph system worked by completing and breaking an electrical circuit. When the operator pressed the key, current flowed through the wire and activated an electromagnet at the receiving end, which produced a clicking sound or moved a stylus to mark paper tape. The duration of the key press determined whether the signal was a dot or a dash. This simple on/off binary signaling was revolutionary because it required only a single wire (with earth return) to transmit complex messages. Modern amateur radio Morse code works differently: a radio transmitter sends a continuous carrier wave that is turned on and off (keyed) to produce the dot-and-dash pattern. The receiver filters this signal and produces an audible tone, which is what you hear when listening to CW on a ham radio. The prosigns (procedural signals) in Morse code add another layer of communication. AR (dot-dash-dot-dash-dot) means "end of message." SK (dot-dot-dot-dash-dot-dash) means "end of contact." BT (dash-dot-dot-dot-dash) is a paragraph separator. These are sent as single characters without the normal inter-letter spacing, creating a distinct sound that operators recognize immediately. While the translator tool focuses on standard character encoding and decoding, knowing about prosigns gives you a more complete picture of how Morse code functions as a complete communication system. Morse code occupies a unique place at the intersection of history, technology, education, and culture. It was the first digital communication system, predating binary computers by over a century. It encoded information into two discrete symbols, making it fundamentally digital rather than analog. The principles behind its variable-length encoding directly influenced later developments in information theory and data compression. Claude Shannon's foundational work on information theory in 1948 formalized concepts that Morse and Vail had intuited through practice a century earlier. Learning Morse code connects you to 180 years of communication history, and this tool makes that connection as easy as typing a message and pressing play.

Frequently asked questions

What is Morse code?

A communication system using dots (.) and dashes (-) to represent letters and numbers, invented by Samuel Morse.

Can I hear the Morse code?

Yes! Click the play button to hear your message as authentic Morse code beeps using Web Audio.

Related guides

Related WebRecast sections