Skip to content

Morse Code Converter

Type or paste any text and instantly convert it to Morse code (or decode Morse back to text). Hear it played through the Web Audio API as dit-and-dah beeps with a matching light flash — learn Morse by ear and eye at the same time, entirely in your browser.

  • Bidirectional — text to Morse and Morse to text
  • Real-time Web Audio API beeps with configurable speed
  • Synchronised light flash alongside the audio playback
  • All 26 letters, 0–9 digits, and common punctuation (.,?!;:/'"-=@)
  • Copy result to clipboard with one click
  • Runs fully client-side — nothing is sent to a server

Converter

Runs entirely in your browser

 
Morse Code Reference Table (A–Z, 0–9, punctuation)
CharMorseCharMorse

How to convert text to Morse code

  1. 01

    Choose the direction

    Pick "Text → Morse" to encode text into dots and dashes, or "Morse → Text" to decode a Morse message back into letters.

  2. 02

    Type or paste your input

    Enter the text (letters, numbers and basic punctuation) or the Morse code (use dots ., dashes - and spaces between letters and words).

  3. 03

    Play the audio

    Press Play to hear the Morse code as dit-and-dah beeps through the Web Audio API — a light flash pulses in sync with every signal.

  4. 04

    Adjust speed and copy

    Use the speed slider to slow down or speed up playback, then copy the converted result to your clipboard with a single click.

A brief history of Morse code#

Morse code was developed in the 1830s and 1840s by Samuel Morse and Alfred Vail for use with the electric telegraph, the first practical system of long-distance electronic communication. The code assigned a pattern of short and long signals — dits (dots) and dahs (dashes) — to each letter of the alphabet and each digit, based roughly on how frequently each letter appeared in English: common letters like E (·) and T (–) got the shortest patterns, while less common letters like Q (– – · –) and Z (– – · ·) got longer ones.

The first public demonstration of the telegraph and Morse code took place on 24 May 1844 between Washington, D.C. and Baltimore, Maryland, with the famous message "WHAT HATH GOD WROUGHT". Within a few decades, telegraph lines crisscrossed continents and ocean cables connected the globe — Morse code was the original internet, carrying news, stock prices, and personal messages across the world in minutes instead of weeks.

Although commercial telegraphy has long been replaced by digital networks, Morse code survives today in amateur (ham) radio, aviation navigation beacons, and emergency signals. Its hallmark — the ability to be manually sent and decoded by ear through noise and interference where voice would be unintelligible — keeps it relevant more than 180 years after its invention.

How to learn Morse code effectively#

The best way to learn Morse code is the Koch method, developed in the 1930s: start with just two characters at a full target speed (18–25 wpm) and add one new character as soon as you reach 90% accuracy. Because you learn at full speed from the beginning, you never develop the bad habit of counting dits and dahs — your brain learns the rhythm of each character as a single gestalt pattern, the same way you recognise spoken words without counting syllables.

Begin with the letters E (·), T (–), A (· –), and N (– ·), the four most common patterns. Once those are solid, add I (· ·), M (– –), S (· · ·), and O (– – –), then introduce R (· – ·), K (– · –), D (– · ·), U (· · –). Within a week of 15-minute daily sessions you can be comfortable with a dozen characters. Move letters like Q (– – · –), Z (– – · ·), and X (– · · –) much later — they are rare and their patterns are more complex.

Use this converter's Play feature to hear any text as Morse code at a speed you control. Type short words you already know and listen to them repeatedly — hearing the rhythm of a real word (like "HELLO": · · · · · – · · – · · · – – –) teaches you far faster than reading a chart. Set the speed to 15–20 wpm for Koch training, and always decode by ear — never look up a dot-dash table mid-practice.

Common Morse code abbreviations and prosigns#

Beyond plain letters and numbers, experienced Morse operators use a set of standard abbreviations and procedural signals (prosigns) to speed up communication and convey meaning without typing full words. Some of the most widely recognised include: CQ (– · – · – – · –), meaning "calling any station" — the universal hailing call on amateur radio; QRZ (– – · – · – – · ·), meaning "who is calling me?"; 73 (– · · · – – · · ·), which is the traditional sign-off meaning "best regards"; and SK (· · · – · –), sent before closing a contact.

Common everyday abbreviations also carry over from the telegraph era: OM (– – – –) for "old man" (any male operator), YL (– · – – · · – · ·) for "young lady", and XYL (– · · – – · – · · – · ·) for "wife" (literally "ex-young lady"). Numbers and punctuation are frequently combined: TU (– · · · –) for "thank you", PSE (– – · · · · ·) for "please", and the Q-code signal QSY (– – · – · · · – · – –) meaning "change frequency".

If you are practicing with this converter, try sending CQ and 73 at the end of your test messages — it is a small tradition that connects you to over a century of Morse operator history. The converter's bidirectional mode also lets you paste a real Morse message from an amateur radio recording and decode it into English, making it a practical learning tool for anyone studying for their amateur radio license.

Why the light flash and audio work together#

Morse code has always been a multimodal signal. Before loudspeakers were common, operators read incoming code from the sounder — an electromechanical clacker that produced an audible "click-clack" for each dit and dah. On ships, visual signalling with a blinker light (the Aldis lamp or signal searchlight) was the standard method for day-time communication between vessels. The dual audio-visual approach is not a novelty — it mirrors how Morse has actually been used for over a century: by ear on radio and by eye with light.

This converter combines both modes for a practical reason: cross-sensory reinforcement improves learning speed. Hearing a dit while seeing the light flash helps your brain form a stronger association for each character than either sense alone. The Web Audio API generates a clean 800 Hz tone for every dit and dah — no system audio dependency, no external files, and no latency. The light flash follows the same timing, showing a bright glow for each element length, so you can watch the rhythm as you hear it.

Use the speed slider to find your comfortable pace. Beginners should start at 5–10 wpm — slow enough that each character pattern is clearly distinguishable. As you improve, move towards 15–20 wpm (the speed used in most amateur radio licensing exams) and eventually to 25+ wpm, where experienced operators routinely copy Morse in their heads without writing anything down.

Frequently asked questions

What characters does the Morse code converter support?

Letters A–Z (case-insensitive), digits 0–9, and common punctuation including period (.), comma (,), question mark (?), exclamation mark (!), semicolon (;), colon (:), apostrophe ('), slash (/), hyphen (-), equals sign (=), the commercial at symbol (@), and parentheses. Unsupported characters are silently skipped in both directions.

What is the difference between a dit and a dah?

A dit (short signal, also called "dot") is one time unit long. A dah (long signal, also called "dash") is three time units long. The pause between parts of the same letter is one unit, between letters it is three units, and between words it is seven units. This timing is the international standard known as "Paris standard" or "ITU-R M.1677-1 timing".

Why does the converter need audio permission?

The tool uses the Web Audio API to generate beep tones — your browser requests microphone or audio-context permission as a security measure before any web page can produce sound. No audio is recorded or uploaded; the beeps are synthesised locally. Clicking Play once will prompt you, and subsequent plays run without asking again for that session.

Can I use this tool to learn Morse code for the amateur radio exam?

Yes. The adjustable speed (5–30 wpm) and the combined audio-plus-visual mode make this a practical training tool for the 5–15 wpm proficiency test used in many amateur radio licensing exams. Use the Koch method with custom practice words and gradually increase the speed — the converter handles any text you type, so you can generate random practice sequences or real QSO messages.

How does the Morse-to-text decoding work?

Paste Morse code into the decoder side (using dots ., dashes -, and spaces) and it instantly maps each pattern back to its corresponding letter, digit, or punctuation mark. A single space separates characters, a forward slash / or double space separates words. The converter recognises all 36 character patterns (A–Z and 0–9) plus the supported punctuation — any unrecognised pattern is marked with a ? in the output so you can correct the input.

Is my text or Morse code sent to a server?

No. Everything runs in your browser using JavaScript — the conversion, audio synthesis, and light flash animation are all computed locally. No text, Morse patterns, or any data is ever uploaded, logged, or transmitted. You can disconnect from the internet after the page loads and the tool still works perfectly.

Dev + SEO

Text to Speech

Paste any amount of text and have your browser read it aloud — no length limit, no account.