Morse Code Decoder

Decodes International Morse code (letters space-separated, words separated by a slash) back into plain uppercase text. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-22

Overview

Introduction

Reading Morse code by eye, counting dots and dashes letter by letter, is slow.

This tool decodes it back to text instantly.

What Is Morse Code Decoder?

A decoder that reads space-separated Morse letter sequences (with slash-separated words) and translates each back to its letter or digit.

It runs entirely client-side as part of this site's String Tools collection, so nothing you paste is ever uploaded to a server.

How Morse Code Decoder Works

The input is split on slashes into words, each word split on spaces into letter codes, and each code looked up in a reverse Morse table.

The transformation happens synchronously in JavaScript the moment you type, with no network round trip involved.

When To Use Morse Code Decoder

Use it to decode a Morse code puzzle, message, or practice exercise back into readable text.

It's a fast way to get the answer without opening a code editor, a REPL, or writing a one-off script just to check.

Often used alongside Morse Code Encoder.

Features

Advantages

  • Reports exactly which sequences weren't recognized instead of silently skipping them.
  • Handles the standard letter/word separation convention directly.
  • Builds its lookup by inverting the encoder's own table, so the two tools cannot drift out of sync as characters are added or corrected.

Limitations

  • Requires the standard space/slash formatting; doesn't parse raw timing-based Morse (actual dot/dash durations).
  • Decodes to uppercase only, because Morse draws no distinction between cases and the original capitalization is simply not recoverable.

Examples

Decoding a distress signal

Input

... --- ...

Output

SOS

Each space-separated code is looked up and translated back to its letter.

Best Practices & Notes

Best Practices

  • Make sure words are separated by a slash surrounded by spaces ( / ), not just extra spacing, for correct decoding.
  • Use exactly one space between letter codes, since wider spacing can be read as an empty code rather than as a gap.
  • Decode a short known sequence first when working from an unfamiliar source, to confirm its separator convention matches this one.

Developer Notes

The reverse lookup table is built once from the forward encoding table via Object.fromEntries(), so both tools' character sets always stay in sync automatically as the table is updated.

Morse Code Decoder Use Cases

  • Decoding a Morse code puzzle or escape-room clue
  • Practicing Morse code reading skills
  • Translating a received Morse message back to text

Common Mistakes

  • Missing the slash word separator, causing letters from different words to run together incorrectly.
  • Confusing the letter separator with the word separator, which either merges words together or splits one apart in the decoded output.

Tips

  • Use Convert a String to Morse Code to generate correctly formatted practice input.
  • Because the dots and dashes are plain ASCII, the codes can be searched and edited in any text editor before you decode them.

References

Frequently Asked Questions