Morse Code Translator

Translate text to Morse code and back instantly. Listen to your message with audio playback, learn with interactive quizzes, and explore the full Morse code alphabet.

15 WPM

Last updated: March 2026

What Is Morse Code?

Morse code is a communication system that encodes letters, numbers, and punctuation as sequences of short signals (dots) and long signals (dashes). Invented by Samuel Morse and Alfred Vail in the 1830s, it was the foundation of long-distance communication for over a century — from telegraph wires to wartime radio transmissions to the famous SOS distress signal.

Each character has a unique combination of dots and dashes. The letter E, the most common in English, is a single dot. The letter T is a single dash. Rarer letters like Q (--.-) and Z (--..) use longer sequences. This variable-length encoding was a brilliant design choice that made common letters faster to transmit, similar to how Huffman coding works in modern data compression.

While Morse code is no longer the primary method of communication, it remains relevant today. Amateur (ham) radio operators use it worldwide, it is taught in military training, and it serves as an accessibility tool — some people with disabilities use Morse code to communicate through specialized input devices.

How to Use This Morse Code Translator

Text to Morse: Select the "Text → Morse" tab and type any message in the left textarea. The Morse code translation appears instantly on the right. Each letter is separated by a space, and words are separated by a forward slash (/). Click Copy to copy the Morse code to your clipboard.

Morse to Text: Switch to "Morse → Text" mode and enter dots (.) and dashes (-) separated by spaces. Use a forward slash (/) between words. The decoded text appears in real-time as you type.

Audio Playback: Click Play Audio to hear your message in Morse code. Adjust the speed slider from 5 to 30 WPM to match your skill level. Enable Flash Mode to see visual light pulses synchronized with the audio — short flashes for dots, long flashes for dashes.

Learning Mode: Switch to the Learn tab to browse the alphabet one letter at a time or test yourself with the interactive quiz. The quiz supports both directions: type the Morse code for a given letter, or identify the letter from its Morse code.

Key Features

Real-Time Translation: Both encoding and decoding happen instantly as you type. No "translate" button to click — the output updates with every keystroke, making it fast and natural to use.

Authentic Audio Playback: The Web Audio API generates clean 600 Hz sine wave tones with proper timing — dot duration, dash duration (3x dot), intra-character gaps, inter-character gaps, and word gaps all follow the international standard.

Visual Flash Mode: A screen-wide flash overlay pulses in time with the audio. This replicates how Morse code was transmitted via signal lamps and helps develop visual recognition of dot-dash patterns.

Interactive Learning: Browse mode walks through each letter with audio, while Quiz mode tests your recall in both directions. Your score tracks accuracy so you can measure improvement over time.

Character Mapping: Below the translator, every unique character in your message is displayed alongside its Morse code equivalent. This visual breakdown helps you learn patterns while translating.

Complete Reference Chart: An expandable panel shows the full Morse code alphabet including A-Z, 0-9, and common punctuation marks in a clean grid layout.

Frequently Asked Questions

Can I hear what my Morse code sounds like?

Yes. Click the Play Audio button to hear your message in Morse code using authentic sine wave tones at 600 Hz. You can adjust the playback speed from 5 to 30 words per minute using the speed slider. The audio is generated in real-time using the Web Audio API — no files are downloaded or streamed.

How do I decode Morse code back to text?

Switch to Morse → Text mode using the toggle at the top. Enter dots (.) and dashes (-) separated by spaces for each letter, and use a forward slash (/) to separate words. For example, '.... . .-.. .-.. --- / .-- --- .-. .-.. -..' translates to 'HELLO WORLD'. The translation updates in real-time as you type.

What is the Learn Morse Code feature?

The Learn tab provides two modes: Browse Letters shows each character (A-Z, 0-9) one at a time with its Morse code equivalent and a Play Sound button. Quiz Mode tests your knowledge by showing a letter and asking you to type the Morse code (or vice versa). Your score is tracked so you can measure your progress through the full alphabet and digits.

What does Flash Mode do?

When Flash Mode is enabled, a bright white overlay flashes on your screen in sync with the Morse code audio. Short flashes correspond to dots and longer flashes to dashes, with dark gaps between signals. This mimics how Morse code was historically transmitted using light signals and can help you learn to read Morse code visually.

How is Morse code speed measured?

Morse code speed is measured in words per minute (WPM), based on the standard word 'PARIS' which contains 50 dot-lengths. At 15 WPM (the default), a dot lasts 80 milliseconds and a dash lasts 240 milliseconds. Beginners typically start at 5-10 WPM, while experienced operators can decode at 20-30 WPM or faster.

Related Tools