mikaio.dev

Morse Code Translator

Type text to see it translated to Morse code. Paste Morse code to decode it back to text. Click Play to hear the code as audio.

Morse code:

Decoded text:

Translate between text and Morse code

Morse code is one of the most recognisable encoding systems in history. Its distinctive dots and dashes communicated messages across continents and oceans long before voice transmission was possible. Today it is used in amateur radio, aviation, accessibility devices, and popular culture. This translator converts any text to Morse code instantly, plays the code as audio, and decodes Morse code back to plain text.

Using the translator

Type your message into the encoding box and the Morse translation appears immediately below it, using dots and dashes with letters separated by a single space and words separated by a slash, exactly matching the standard written convention for Morse. Press play to hear the code as audio tones generated directly in your browser, which is a genuinely useful way to practise recognising Morse by ear rather than only by sight. To go the other way, paste dots and dashes into the decoding box, following the same letter and word separators, and the plain text equivalent appears instantly.

The history of Morse code

Samuel Morse and Alfred Vail developed Morse code in the 1830s and 1840s for use with the electric telegraph, which could send signals as pulses over long copper wires. The code assigned each letter and digit a unique pattern of short signals (dots) and long signals (dashes). The original code, now called American Morse code, was later refined into International Morse code, which standardised the timing ratios and extended the character set. International Morse code is the version used worldwide today.

The famous SOS distress signal — three dots, three dashes, three dots (··· ─── ···) — was chosen for its simplicity and symmetry, making it easy to transmit even under stress.

A note on learning Morse by ear

Proficient Morse operators do not consciously count dots and dashes at all — with enough practice, each letter is recognised instantly as a distinct rhythmic pattern, the same way a fluent reader recognises a whole word at a glance rather than sounding out each letter. Listening to the audio playback from this tool repeatedly, starting with short, common words, is a far more effective way to build that rhythmic recognition than memorising a written table of dots and dashes, which is why serious Morse learners are almost universally advised to train their ears before their eyes.

How Morse code works

Each letter, digit, and common punctuation mark has a unique sequence of dots and dashes. The letter E is just a single dot, while the letter T is a single dash — the most common letters in English get the shortest codes. Letters are separated by a pause equal to three dot lengths. Words are separated by a pause equal to seven dot lengths. This timing structure is what allows Morse to be transmitted audibly, by light, or mechanically.

The standard timing is:

Where Morse code is still used

Amateur (ham) radio operators around the world still use Morse code for long-distance communication, particularly when propagation conditions are poor. Morse code penetrates interference that would make voice communication impossible. International amateur radio licence exams in many countries still include a Morse code component.

Aviation uses Morse code for navigation beacons: VOR (VHF omnidirectional range) and ILS (instrument landing system) transmitters broadcast their identifier in Morse at regular intervals, allowing pilots to verify they are using the correct navaid.

Accessibility technology sometimes uses Morse code as an input method for people with limited mobility. A single button or switch can transmit dots and dashes, allowing full text input at speeds that proficient Morse operators can make surprisingly fast.

Why the code was designed the way it was

The genius of the original design lies in matching code length to letter frequency: because Samuel Morse and Alfred Vail studied which letters appear most often in English text, the single most common letter, E, was assigned the shortest possible signal, a single dot, while T, the next most common, got a single dash. Rare letters like Q, X and Z were given longer, more complex patterns, since the overall goal was to minimise the average time needed to transmit ordinary text, not to make every letter equally quick. This same principle — give shorter codes to more frequent symbols — reappears more than a century later in modern data compression algorithms, making Morse code an unlikely but genuine ancestor of ideas used in computing today.

Punctuation and prosigns

Beyond letters and digits, standard Morse code also defines patterns for common punctuation such as full stops, commas and question marks, which is why this translator can handle whole sentences rather than single words. Amateur radio operators additionally use special combined sequences called prosigns to control the flow of a conversation over the air — a sequence meaning "end of message," for instance, or one meaning "invitation to transmit" — which are sent as a single unbroken string of dots and dashes rather than as separate letters, a layer of convention this tool does not attempt to decode automatically but which is worth knowing exists if you encounter it.

Private and instant

All translation happens entirely in your browser, so encoding and decoding are instant and no text you type is ever sent to any server, logged or shared.

Morse code FAQ

What is Morse code?
Morse code is a system for encoding letters, digits, and punctuation as sequences of dots and dashes (or short and long signals). It was developed in the 1830s and 1840s for use with the electrical telegraph. Each character has a unique dot-dash sequence.
How do I separate letters in Morse code?
Letters are separated by a single space. Words are separated by a slash / or three spaces. The decoder accepts both conventions.
Does the audio playback work?
Yes. The tool uses the Web Audio API to generate tones matching the dots and dashes. Dots are short tones, dashes are three times as long. Make sure your device volume is turned on.