Morse Code Converter

Convert Text to Morse and vice versa
Conversion Direction
Audio Settings
Visual Settings
Timing Settings
What is the Morse code for 'A'?
.--.
.-
-...
-.-.
Score: 0 / 0
Morse Code API

Use our simple API to convert text to Morse code programmatically:

Endpoint: (Use the functions directly in your JavaScript code)

Text to Morse:
textToMorse(text, options)

Morse to Text:
morseToText(morseCode, options)

Options:
{ dotDuration: 50, // ms dashDuration: 150, // ms pauseDuration: 50 // ms }

Example usage:

// Convert text to Morse
const morse = textToMorse("Hello");
console.log(morse); // ".... . .-.. .-.. ---"

// Convert Morse to text
const text = morseToText(".... . .-.. .-.. ---");
console.log(text); // "HELLO"
Morse Code Basics

Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes.

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
1: .----   2: ..---   3: ...--   4: ....-   5: .....
6: -....   7: --...   8: ---..   9: ----.   0: -----
Punctuation
.: .-.-.-   ,: --..--   ?: ..--..   ': .----.   !: -.-.--
/: -..-.   :: ---...   ;: -.-.-.   =: -...-   +: .-.-.
-: -....-   _: ..--.-   ": .-..-.   $: ...-..-   @: .--.-.
Timing
  • Dot: 1 unit
  • Dash: 3 units
  • Space between parts of the same letter: 1 unit
  • Space between letters: 3 units
  • Space between words: 7 units

Morse Code Converter: Complete Educational Reference

Tool Overview

This Morse code converter is a professional-grade tool that enables bidirectional translation between text and International Morse Code. It serves as both a practical utility and educational resource for students, hobbyists, radio operators, and developers.

What is Morse Code?

Morse code is a character encoding scheme developed in the 1830s that represents letters, numbers, and punctuation marks as combinations of dots (short signals) and dashes (long signals). Originally used for telegraphy, it remains relevant in aviation, amateur radio, and emergency communications.

Practical Value: Manual Morse code conversion requires memorization of code patterns and precise timing understanding. This tool automates the conversion process with 100% accuracy according to ITU (International Telecommunication Union) standards, while providing audio-visual feedback that helps in learning and verification.

How This Tool Works

The conversion follows a deterministic process:

  1. Input Analysis: Text input is converted to uppercase. Morse input is validated for proper dot/dash/space formatting.
  2. Character Mapping: Each character is mapped using the International Morse Code standard (ITU-R M.1677).
  3. Timing Application: For audio generation, dots use 1 unit duration, dashes use 3 units, with proper spacing between elements (1 unit), letters (3 units), and words (7 units).
  4. Output Generation: Results are displayed in real-time with optional visual indicator activation.

Units & Rounding: Timing uses milliseconds with integer precision. The standard "PARIS" word timing (50 time units) is used for WPM calculation. All conversions preserve exact character mappings without approximation.

Technical Reference & Formulas

The tool implements the International Morse Code standard with these key relationships:

Standard Timing Formula (ITU-R M.1677):
Dot duration = 1200 / WPM (milliseconds)

Dash duration = 3 × Dot duration
Inter-element space = Dot duration
Inter-letter space = 3 × Dot duration
Inter-word space = 7 × Dot duration

WPM Calculation:
WPM = 1200 / Dot duration (ms)
Based on the word "PARIS" (50 time units) as the standard measure

Character Encoding Logic: The tool uses a direct lookup table mapping each alphanumeric character and punctuation mark to its standardized Morse sequence. Reverse lookup ensures bidirectional conversion fidelity.

Real-World Examples

Example 1: Emergency Signal

Input (Text): "SOS"

Morse Output: "... --- ..."

Timing Analysis: At 20 WPM, each 'S' (... = 3 dots + 2 spaces = 5 units) takes 300ms, 'O' (--- = 3 dashes + 2 spaces = 11 units) takes 660ms, with proper spacing between letters.

Example 2: Standard Test Word

Input (Text): "PARIS"

Morse Output: ".--. .- .-. .. ..."

Educational Note: The word "PARIS" contains exactly 50 time units (dots, dashes, and spaces), making it the international standard for measuring words per minute in Morse code.

Example 3: Number Transmission

Input (Morse): "----- ----. ---.. --... -...."

Text Output: "09876"

Application: This demonstrates number sequence transmission, commonly used in station identification or coordinate reporting.

Use Cases & Applications

Academic & Educational

  • Telecommunications Courses: Teaching historical and modern encoding methods. You can also explore classical cipher techniques like Caesar to understand different encoding approaches.
  • Computer Science: Character encoding, data compression, and algorithm design examples. For more encoding variations, try the Vigenère cipher tool for polyalphabetic encryption.
  • History Classes: Demonstrating 19th-century communication technology
  • Language Learning: Understanding binary state communication systems

Professional & Industry

  • Amateur Radio (Ham Radio): Preparing for FCC license exams and on-air communication
  • Aviation & Maritime: Understanding emergency distress signals and navigation aids
  • Software Development: Testing audio generation, timing algorithms, and encoding functions. Compare this with secure text hashing methods for modern data integrity.
  • Accessibility: Developing communication aids for individuals with disabilities

Recreational & Practical

  • Emergency Preparedness: Learning backup communication methods. For a different type of signal, check out the ASCII art generator for visual representation of text.
  • Puzzle & Game Design: Creating encoded messages and treasure hunts
  • Art & Installation: Visual and audio art using Morse patterns
  • Learning & Memory Training: Cognitive exercise through code memorization

Educational Notes & Key Concepts

Dot (·) vs Dash (–)

A dot (dit) represents the basic time unit. A dash (dah) is three time units long. The audible difference is duration, not pitch.

Spacing Hierarchy

Morse code uses precise timing: 1 unit between dots/dashes within a character, 3 units between characters, and 7 units between words. This hierarchical spacing is crucial for machine and human decoding.

Prosigns & Special Sequences

Special sequences like "··· --- ···" (SOS) are transmitted without spaces between letters when used as prosigns. Some professional applications use non-standard extensions.

Common Misconceptions

  • Myth: Morse code is obsolete. Fact: It's still required for some aviation/maritime licenses and used in amateur radio.
  • Myth: All Morse codes are the same. Fact: American (Railroad) Morse differs from International Morse in some characters.
  • Myth: Speed is determined by pitch. Fact: Speed is determined by timing; pitch is typically 600-800Hz for clarity.

Accuracy & Reliability Statement

Character Accuracy: 100% according to ITU-R M.1677 standard
Timing Precision: Millisecond-level accuracy
Standard Compliance: International Morse Code

The tool's conversion algorithm has been validated against:

  • International Telecommunication Union (ITU) standards
  • Federal Communications Commission (FCC) amateur radio requirements
  • International Civil Aviation Organization (ICAO) documentation
  • Cross-referenced with multiple authoritative Morse code references

Validation Approach: Every character mapping is verified against the official ITU-R M.1677 standard. The timing algorithm uses the established "PARIS" method for WPM calculation, ensuring professional-grade accuracy suitable for educational and amateur radio use.

Limitations & Assumptions

Important Disclaimer: This tool is for educational and recreational use. Not certified for critical navigation, aviation, or emergency communications where certified equipment and training are required.

Technical Limitations

  • Character Set: Supports standard alphanumeric and punctuation. Does not include extended prosigns or non-Latin alphabets.
  • Audio Generation: Dependent on browser Web Audio API support. Some mobile browsers may have latency limitations.
  • Timing Precision: JavaScript timing has ~10ms resolution, sufficient for learning but not for professional high-speed Morse.
  • File Formats: Audio downloads are WAV format; some devices may require conversion for playback.

Usage Assumptions

  • Users understand basic Morse code concepts for meaningful translation
  • Text input assumes standard English orthography without diacritics
  • Morse input follows standard spacing conventions for accurate reverse translation
  • Audio playback assumes standard 600-800Hz tone preference

Professional Disclaimer

This tool provides educational content and conversion functionality. It is not a substitute for:

  • Certified communication equipment
  • Professional radio operator training
  • Emergency communication systems
  • Legal or official documentation

For official radio licensing preparation, consult FCC or national regulatory body materials.

Frequently Asked Questions

How accurate is the Morse code conversion?

Character conversion accuracy is 100% compliant with International Morse Code (ITU-R M.1677). The mapping table includes all standard alphanumeric characters and punctuation with exact official representations.

What timing standard does the tool use?

The tool implements the "PARIS" timing standard where the word "PARIS" equals 50 time units. This is the internationally recognized method for calculating words per minute (WPM) in Morse code.

Is my data stored or transmitted to servers?

No. All processing occurs client-side in your browser. No text, Morse code, or audio data is transmitted to any server. The tool works entirely offline after initial page load.

Can I use this tool on mobile devices?

Yes, the tool is fully responsive and works on all modern mobile browsers. Vibration feedback is available on devices supporting the Vibration API. Audio generation works on iOS and Android devices with Web Audio API support.

Is this tool suitable for amateur radio exam preparation?

Yes, the tool uses standard International Morse Code as required for FCC and international amateur radio licensing. However, always verify with current official study materials as requirements may vary.

What's the difference between American and International Morse Code?

American (Railroad) Morse code has different representations for some characters and uses mechanical sounder timing. This tool uses International Morse Code (also called Continental Morse), which is standard for radio communications.

Why does the tool convert text to uppercase?

Morse code is case-insensitive by design. Converting to uppercase ensures consistent processing and matches standard transmission practices where case distinction doesn't exist.

Is there a limit to how much text I can convert?

No hard limit exists, but extremely long texts may affect browser performance during audio generation. For optimal experience, consider converting documents in sections of a few hundred words.

Category Context & Related Tools

This Morse Code Converter is part of the text encoding and communication tools category. It bridges historical communication methods with modern web technology. For text manipulation at the character level, you might also find the reverse text generator useful for creating palindromes or backward messages.

Related Tool Categories:

  • Text Encoding Tools: Binary converters, hexadecimal translators, Base64 encoders. The leetspeak generator offers another creative text transformation.
  • Communication Simulators: Telegraph simulators, radio signal visualizers
  • Language Tools: Phonetic alphabet translators, semaphore flag simulators. For a different phonetic approach, try the Pig Latin translator.
  • Educational Resources: Signal timing calculators, cryptography tools. The Polybius square cipher is another grid-based encoding method to explore.

Professional Context: Morse code remains relevant in specific professional domains including amateur radio (required for some license classes), aviation (VOR station identification), and maritime (emergency signaling). It also serves as a fundamental example in telecommunications education.

Trust & Privacy Information

No Data Collection: Zero tracking, analytics, or data transmission
Client-Side Processing: All calculations happen in your browser
Completely Free: No charges, subscriptions, or usage limits
Privacy-Safe: No personal information required or stored

Technical Implementation: The tool uses vanilla JavaScript with Web Audio API for sound generation and standard DOM APIs for interface functionality. No external dependencies beyond Bootstrap for responsive styling. All source code is human-readable and executes entirely within the browser sandbox.

Educational Integrity: Content is reviewed for technical accuracy against authoritative telecommunications references. The tool prioritizes educational value over commercial interests, maintaining neutral, factual information about Morse code standards and applications.

Last reviewed for accuracy: September 2025

This tool and its educational content are periodically reviewed against current ITU standards and telecommunications references to ensure technical accuracy.