ThisCalculator

Everyday

Morse Code Calculator: Decode & Encode

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Morse Code Calculator: Decode & Encode

This Morse code calculator translates text into Morse code and decodes Morse code back into readable text. You enter either plain text or a Morse code sequence, and the calculator instantly provides the corresponding translation in the other format. It uses the standard International Morse code alphabet, covering letters A–Z, digits 0–9, and common punctuation.

Formula

The Morse code system maps each character to a unique sequence of dots (.) and dashes (-). The encoding process is a simple lookup: for each character in your input text, the calculator finds its corresponding Morse pattern and joins them with spaces. Words are separated by a forward slash (/). Decoding reverses this process: each Morse pattern is matched against the lookup table and converted back to its character.

For example, the letter A is .-, B is -..., and the digit 1 is .----. The full table is standardized by the International Telecommunication Union (ITU) and is used worldwide.

Worked Example

Let’s encode the default text HELLO 123:

  1. Split the text into characters: H, E, L, L, O, space, 1, 2, 3.
  2. Look up each character’s Morse pattern:
    • H = ....
    • E = .
    • L = .-..
    • L = .-..
    • O = ---
    • space = /
    • 1 = .----
    • 2 = ..---
    • 3 = ...--
  3. Join with spaces: .... . .-.. .-.. --- / .---- ..--- ...--

That matches the default output in the calculator. To decode, you simply reverse the process: split the Morse string by spaces (or slashes for word breaks) and map each pattern back to its letter.

When to Use This Calculator

This tool is handy for anyone learning Morse code, practicing for amateur radio license exams, or simply curious about how messages were sent in the telegraph era. It’s also useful for creating Morse code art, puzzles, or for sending secret messages to friends. You can encode a message to see what it looks like in Morse, or decode a Morse sequence you’ve received.

The calculator handles both directions simultaneously, so you can use it as a reference while studying. For example, you might type a word, see its Morse form, then copy that Morse form into the decode box to verify you get the original word back.

How to Read the Results

When encoding, the result is a string of dots, dashes, and spaces. Each letter’s pattern is separated by a single space, and each word is separated by a forward slash. When decoding, the output is plain text, with uppercase letters and numbers. The calculator does not preserve original capitalization—Morse code itself has no concept of uppercase vs. lowercase, so everything is converted to uppercase.

If you input a character that has no Morse representation (like @ or #), the calculator will leave it as-is or skip it, depending on the implementation. Most standard Morse tables include common punctuation like periods, commas, and question marks, but not every symbol.

Common Mistakes and Limitations

One common mistake is confusing the timing of dots and dashes when manually decoding. In written Morse, a dash is three times as long as a dot, but when reading text, you simply look at the pattern. Another mistake is forgetting to separate words with a slash—if you just use spaces, the decoder might interpret each letter as a separate word.

Morse code has no distinction between uppercase and lowercase, so the decoded output is always uppercase. Also, some regional variations exist (e.g., American Morse vs. International Morse), but this calculator uses the International standard, which is the most widely used today.

For accurate decoding, ensure your input uses a single space between letters and a slash between words. Extra spaces or missing slashes can cause errors. The calculator is case-insensitive and will convert all letters to uppercase before encoding.

How to Choose a Morse Code Tool

If you’re looking for a Morse code tool beyond this calculator, consider what you need it for:

  • Learning: Look for tools that play audio tones, as hearing the rhythm is crucial for mastering Morse.
  • Decoding audio: Some apps can listen to Morse signals and translate them in real time, which is useful for radio enthusiasts.
  • Flashcards: For memorization, a flashcard app that quizzes you on letter-to-code pairs is effective.
  • Offline use: If you’re practicing in the field, a simple chart or a phone app that works offline is best.

This calculator is purely text-based, so it’s best for quick translations and learning the visual patterns. For audio practice, you’d need a separate tool.

Frequently Asked Questions

What is the difference between International Morse and American Morse?

International Morse (used today) has a fixed set of dot/dash patterns for letters and numbers. American Morse, used in the 19th century, had variable-length dashes and spaces, making it more ambiguous. Modern communication uses International Morse exclusively.

Can I use this calculator to learn Morse code?

Yes, you can type a phrase, see its Morse representation, and then try to decode it back from memory. It’s a good way to reinforce visual recognition, but for audio recognition, you should also listen to Morse recordings.

Why is the decoded text always uppercase?

Morse code does not include case information. The code for ‘A’ is the same as for ‘a’. Therefore, the decoder cannot know the original case and defaults to uppercase.

How do I represent a space between words in Morse?

In written Morse, a word space is represented by a forward slash (/). In audio, it’s a longer pause (about seven dot-lengths). When using this calculator, you can type a slash or just use a space—the calculator will treat a space as a word separator if you don’t use slashes.

What characters are supported?

The calculator supports the 26 letters (A-Z), digits (0-9), and common punctuation such as period (.), comma (,), question mark (?), and apostrophe (‘). Other symbols like @, #, or parentheses are not part of the standard International Morse table.

Can I decode a Morse audio signal with this tool?

No, this is a text-based calculator. To decode audio, you would need a software-defined radio (SDR) or a dedicated Morse decoder app that processes sound. This tool only works with written Morse (dots and dashes).

Related

Formula used
in txt | Text to encode | - | HELLO 123 | 0
in mrs | Morse to decode | - | .... . .-.. .-.. --- / .---- ..--- ...-- | 0
out enc | Encoded Morse | - | txt | 0
out dec | Decoded text | - | mrs | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.