Free tool

Morse code translator

This free morse code translator converts text to morse code and morse code to text live as you type, and can play the result back as real morse code audio using adjustable speed and tone. Everything runs locally in your browser — nothing you type is ever uploaded to a server.

Morse code translator

Translate text to morse code or morse code to text live as you type, then play it back as real morse code audio with adjustable speed and tone.

FreeNo upload — 100% privateLive audio playback
Morse code audio

Playback uses the Web Audio API entirely on your device — nothing is recorded or uploaded. Unit timing follows the standard PARIS convention: a dit is 1 unit, a dah is 3 units, with 1 unit between symbols in a letter, 3 units between letters, and 7 units between words.

Morse code reference chart

Letters, numbers, and punctuation mapped to their morse code
Letters
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 --..
Numbers
0 -----1 .----2 ..---3 ...--4 ....-5 .....6 -....7 --...8 ---..9 ----.
Punctuation
. .-.-.-, --..--? ..--../ -..-.' .----.! -.-.--( -.--.) -.--.-& .-...: ---...; -.-.-.= -...-+ .-.-.- -....-_ ..--.-" .-..-.$ ...-..-@ .--.-.

Text → morse translation runs entirely in your browser. Letters within a word are separated by a single space, words are separated by /, and any character without a morse equivalent is listed above instead of being silently dropped.

A quick history of morse code

Morse code takes its name from Samuel Morse, an American painter turned inventor who, together with his collaborators Alfred Vail and Leonard Gale, developed a working electrical telegraph system in the 1830s and early 1840s. The core problem the team faced was not just building a machine that could send an electrical pulse down a wire — that part was already understood in rough form — but inventing a language the pulses could speak. A single wire carrying a current can really only communicate two states at any instant: on or off. Out of that stark limitation, Morse and Vail built an entire alphabet.

The first public demonstration of the system came in 1844, when Morse sent the now-famous message “What hath God wrought” from the U.S. Capitol in Washington, D.C. to a receiving station in Baltimore. It was a watershed moment: for the first time in human history, a message could travel faster than a horse, a ship, or a human messenger could carry it. Within a few decades, telegraph lines strung across continents and beneath oceans, and Morse code became the connective tissue of the 19th-century world — carrying news, stock prices, diplomatic cables, and personal messages across distances that had previously taken weeks to bridge.

It is worth noting that Alfred Vail's contribution is often underappreciated. While Samuel Morse gets top billing, historical accounts credit Vail with refining much of the actual code — the specific dot-and-dash patterns assigned to each letter — as well as engineering key parts of the telegraph key and receiver hardware. The code that bears Morse's name was very much a joint invention, forged through practical experimentation with real telegraph operators sending real messages, which is part of why it turned out to be so efficient in practice rather than just elegant in theory.

How the code is structured: frequency-based design

What makes morse code genuinely clever, rather than just a historical curiosity, is how deliberately it was engineered around the statistics of the English language. Morse and Vail did not assign dots and dashes to letters randomly, and they did not go alphabetically either. Instead, they reportedly studied the distribution of letters in a printer's type case — literally counting how many of each letter a printing shop kept on hand, which is a reasonable proxy for how often each letter appears in real English text — and used that frequency data to design the code.

The rule is simple once you see it: the most frequently used letters get the shortest codes, and rarer letters get longer ones. E, the single most common letter in English, is represented by just one dit ( . ) — the shortest possible symbol. T, the second most common letter, gets a single dah ( - ) — also as short as a code can be. Contrast that with a rare letter like Q ( --.- ) or Z ( --.. ), which need four symbols each. This is not a coincidence; it is the same core idea that decades later would be formalized in information theory as optimal prefix coding, where symbols that occur more often are assigned shorter representations to minimize the average length of a message. Morse and Vail arrived at a version of this principle by hand, decades before Claude Shannon and David Huffman gave it mathematical rigor.

The practical payoff of this frequency-based design is real: because common letters are quick to send and quick to recognize by ear, a skilled telegraph operator or ham radio operator can transmit and copy morse code remarkably fast, and the average message ends up shorter — and therefore faster to send over a slow, expensive telegraph line — than it would be if letter length were assigned arbitrarily or alphabetically.

Timing rules: dits, dahs, and the PARIS standard

Morse code is fundamentally a timing-based system, not just a set of symbols on paper. Every dot and dash exists as a duration of sound (or light, or a physical mark), and it is the ratio between those durations — not their absolute length — that makes the code readable. The standard timing rules, which any accurate morse code translator and any trained operator both follow, are defined in terms of a single base unit:

  • A dit (dot) lasts 1 unit.
  • A dah (dash) lasts 3 units — exactly three times as long as a dit.
  • The gap between dits and dahs within the same letter (the intra-character gap) is 1 unit of silence.
  • The gap between two letters within the same word (the inter-character gap) is 3 units of silence.
  • The gap between two words (the inter-word gap) is 7 units of silence — long enough to be unambiguous even at speed.

What counts as "one unit" is not fixed in absolute milliseconds — it scales with how fast the operator wants to send, which is where words-per-minute (WPM) speed comes in. The most common way to calibrate this is the PARIS standard: the word "PARIS", sent in full with correct inter-word spacing, is defined as exactly 50 units long. That gives a clean formula for the duration of one unit at a given speed:

unit duration (ms) = 1200 / WPM

So at 20 words per minute, one unit is 1200 / 20 = 60 milliseconds — meaning a dit lasts 60ms, a dah lasts 180ms, and so on down the timing chart above. This formula is exactly what the audio playback engine in the tool on this page uses: adjust the speed slider, and every dit, dah, and gap in the scheduled morse code audio is recalculated from that single unit duration, so the rhythm stays proportionally correct at any speed from a slow, beginner-friendly 5 WPM up to a brisk 35 WPM.

SOS: the story behind the most famous morse sequence

No discussion of morse code is complete without SOS — three dits, three dahs, three dits, sent with no gaps between the letters: ··· −−− ···. It is, without question, the most recognizable pattern in the entire code, instantly associated with distress and emergency. But its actual history is more interesting, and more mundane, than most people assume.

Contrary to popular belief, SOS is not an acronym. It does not stand for "Save Our Ship," "Save Our Souls," or any other backronym that has been retrofitted onto it over the years — those are folk etymologies invented after the fact because the letters happen to spell something memorable. The real reason SOS was chosen as the international distress signal, formally adopted at the 1906 International Radiotelegraph Convention in Berlin and taking effect in 1908, is far simpler and, frankly, more elegant: it was picked purely for how easy and unambiguous the pattern is to send and recognize, even by an inexperienced operator, under the worst possible conditions.

Think about what a distress call actually needs to accomplish. A ship taking on water in a storm, with a panicked or exhausted radio operator working through crackling static and unreliable power, needs a signal that cannot be confused with routine traffic and cannot be easily garbled beyond recognition. SOS's symmetrical, repetitive structure — three short, three long, three short, sent as one continuous string with no letter gaps — is about as close to foolproof as a pattern can get. There is no ambiguity about where one letter ends and the next begins, and even a listener who does not know morse code well can often recognize the rhythm once they have heard it described.

SOS replaced an earlier, more awkward distress signal, "CQD," used mainly by Marconi wireless operators. The two overlapped for a period, most famously in the 1912 sinking of the RMS Titanic, whose radio operators sent both CQD and SOS as they tried to summon help — one of the events that cemented SOS as the standard in the public imagination going forward. Today, radio-based SOS has been formally superseded by satellite-based systems like GMDSS for maritime use, but the pattern itself lives on far beyond ships: as a flashlight signal, tapped on a wall, whistled, or — thanks to tools like the one on this page — generated as clean digital audio for practice and reference.

Practical tips for learning morse code

Anyone who has tried to memorize morse code from a static chart alone knows it does not work well. The letters blur together, and staring at dots and dashes on paper trains a completely different skill than the one you actually need, which is recognizing sound patterns in real time. A handful of practical principles, borrowed from generations of telegraph operators and ham radio enthusiasts, make the learning curve much shorter.

  • Learn rhythm, not shapes. The single most important shift is to stop thinking of dots and dashes as visual symbols and start hearing each letter as a distinct rhythmic pattern — closer to learning a short piece of music than memorizing a chart. Experienced operators do not consciously translate "dit-dah" into "A"; they hear the whole sound-shape of the letter at once, the same way a fluent reader recognizes a whole word instead of sounding out each letter.
  • Start with common letters and small word groups. Because the code itself is built around letter frequency, it makes sense to learn it the same way: master E, T, A, I, N, and O first, since they show up constantly, then build outward. Practicing short, real words (SOS, AND, THE, CQ) reinforces patterns faster than drilling isolated letters in alphabetical order.
  • Use mnemonic phrases. A well-worn trick is pairing each letter with a short spoken phrase whose syllable stresses mimic the code — for example, "dit-dit-dit-dah" for V mirrors the famous opening of Beethoven's Fifth Symphony, which happens to be the same rhythm as the letter V ( ...- ) and was used by the BBC during WWII as a station identifier for exactly that reason.
  • Practice at a fixed, comfortable speed rather than starting too slow. Many instructors recommend the Farnsworth method: send individual letters at a normal, natural speed (so the internal rhythm of each letter is correct) but insert extra space between letters and words while you are still learning. This avoids the common trap of learning a "slow-motion" version of the code that you later have to unlearn to reach real operating speed.
  • Train your ears with real morse code audio, not just a chart. This is exactly why the playback feature on this page matters: passively reading a table of dots and dashes does not build the same skill as listening to timed tones. Set the speed slider low while you are starting out, type a word, and press play — then gradually raise the words-per-minute setting as your ear improves.

Beyond hobbyist learning, morse code remains genuinely useful knowledge in a few specific communities. Ham (amateur) radio operators still use it extensively — it works over exceptionally weak or noisy signals where a normal voice transmission would be unintelligible, since a human ear (or a decoder) can pick out a rhythmic tone from noise far more reliably than it can parse garbled speech. Search-and-rescue and outdoor survival courses still teach SOS as a flashing-light or whistle signal because it requires no equipment beyond something that can make a sound or a flash, on and off. And naval and maritime signaling has a long history of using morse code via signal lamp — flashing a shuttered light across open water — for ship-to-ship communication when radio silence or radio failure makes voice communication impossible.

Using the text to morse code and morse code to text translator

The tool at the top of this page handles both directions of translation, live, with no page reloads or submit buttons. Switch the segmented control to Text → Morse to convert plain sentences into dots and dashes, or to Morse → Text to convert a string of morse code back into readable letters. As you type in the left box, the right box updates instantly.

The encoding follows the standard written convention: individual letters within a word are separated by a single space, and separate words are separated by a forward slash surrounded by spaces ( / ). If you type or paste a character that has no morse equivalent — most symbols outside the standard alphanumeric and punctuation set — the tool does not silently drop it or break the rest of the translation. Instead, it flags every unsupported character in a highlighted notice below the output box, so you always know exactly what did not translate.

Once you have a result, either direction, the Play button turns the current morse output into real audio using your device's speakers, generated on the fly with the Web Audio API — no audio files, no server round-trip. Two sliders control the sound: a words-per-minute speed control from 5 to 35 WPM, and a tone frequency control from 400 Hz to 1000 Hz, matching the range most commonly used in real telegraphy and ham radio practice, where 600 Hz to 800 Hz is typical. While it plays, a small indicator flashes in sync with every dit and dah, so you can watch the rhythm as well as hear it.

Who uses a morse code translator?

  • Ham radio operators and CW enthusiasts use a translator to check unfamiliar words, plan practice sessions, and verify a transcription before they send it over the air.
  • Students and hobbyists learning morse code for the first time use the live audio playback to train their ear, rather than only memorizing a static chart.
  • History and maritime enthusiasts decode old telegrams, ship logs, or historical documents that reference morse sequences, including famous ones like the Titanic's distress calls.
  • Scouts, outdoor educators, and survival instructors teach SOS and basic signaling as a no-equipment emergency communication method.
  • Puzzle and escape-room designers use morse code as a classic, well-understood puzzle mechanic that players can look up and translate quickly.
  • Developers and hobbyist electronics builders reference the exact timing ratios (dit, dah, and the three gap lengths) when building their own morse code generators, blinking-LED projects, or audio decoders.

Is this morse code translator safe and private?

Yes. Every part of the tool — the text-to-morse and morse-to-text conversion, the character-by-character lookup, and the audio synthesis — runs entirely inside your browser using standard JavaScript and the Web Audio API. Nothing you type is ever sent to a server, logged, or stored anywhere, and the tool keeps working offline once the page has finished loading. That makes it just as suitable for a quick classroom demonstration as it is for genuine ham radio practice.

Frequently asked questions

Is morse code still used today?
Yes, though its role has narrowed. Commercial and most maritime radiotelegraphy have moved to satellite-based systems like GMDSS, but morse code (often called CW, for continuous wave) remains actively used in amateur ham radio, where its narrow bandwidth lets it get through under weak-signal conditions that would make voice unreadable. It also persists in aviation navigation beacon identifiers, signal-lamp maritime traffic, and as the basis for the universal SOS distress signal.
How can I learn morse code fast?
Learn it by rhythm and sound rather than by memorizing a static dot-and-dash chart: start with the most frequent letters (E, T, A, I, N, O), practice short real words instead of the alphabet in order, use mnemonic phrases whose spoken rhythm matches the code, and — most importantly — listen to real morse code audio at a comfortable, fixed speed rather than trying to read symbols on paper. This page's playback feature lets you generate that audio for any word or phrase instantly.
What's the fastest way to send SOS?
SOS is already the fastest, least ambiguous distress pattern in the code: three dits, three dahs, three dits, sent as one continuous string with no gaps between the individual letters (·········). Its symmetry is exactly why it was chosen in 1906 as the international distress signal — it's recognizable even by someone who doesn't know morse code, and hard to mistake for anything else even under poor signal conditions.
Is there a standard for morse code punctuation?
Yes. Beyond the core A–Z and 0–9 characters, there is a widely used standard set of punctuation codes — period, comma, question mark, slash, apostrophe, exclamation point, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quotation mark, dollar sign, and at-sign — all covered in the reference chart on this page and fully supported by this translator.
Can morse code represent all languages, including accented letters?
Standard International Morse Code covers the unaccented Latin alphabet (A–Z), digits, and common punctuation, which is what this tool implements. Several countries historically extended it with additional codes for accented characters (like é, ñ, or ü) and for entirely different scripts, such as Japanese Wabun code — but these extensions are not part of the universal international standard and vary by country, which is why most general-purpose translators, including this one, stick to the internationally standardized character set.
How does morse code audio work, and what frequency is standard?
Morse code audio is a single tone switched on and off according to the timing rules: a dit lasts 1 unit, a dah lasts 3 units, with 1-unit gaps between symbols in a letter, 3-unit gaps between letters, and 7-unit gaps between words, where the unit length itself is set by the chosen words-per-minute speed. There is no single mandated frequency, but telegraphy and ham radio practice commonly falls in the 400–1000 Hz range, with 600–800 Hz being especially typical because it sits in the most easily distinguishable part of human hearing. This tool's audio playback lets you adjust both the WPM and the tone frequency to match those conventions.

Translate the message, then share the link

fewly turns any URL into a short, branded, trackable link — free to start, no credit card.