# Morse Code Translator

URL: https://hifreetools.com/text/morse-code-translator

> Convert text to Morse code and decode Morse code back to plain text in real time, using the International Morse standard, with optional audio beeps you can play.

## Quick answer

A Morse code translator converts letters, digits, and punctuation into International Morse code — short dots and long dashes — and converts that code back into readable text. Letters are separated by a single space and words by a slash ( / ); for example, "SOS" becomes "... --- ...". This tool works two ways and can play the code aloud as beeps.

Each character is looked up in the International Morse Code table, where A is .- , B is -... , 0 is ----- , and so on. When encoding, the dots and dashes for each letter are joined with a single space, and words are separated by " / ". When decoding, the text is split on the slash into words and on spaces into symbols, and each symbol is matched back to its character. Characters missing from the tool's table are marked with a "?". Audio playback uses the Web Audio API to sound a 600 Hz tone: a dash lasts three times as long as a dot, with short gaps between symbols and longer gaps between words.

## Examples

- Encode SOS: SOS → ... --- ...
- Encode a phrase: HELLO WORLD → .... . .-.. .-.. --- / .-- --- .-. .-.. -..
- Decode back to text: -- --- .-. ... . / -.-. --- -.. . → MORSE CODE
- Letters and numbers: Hi 123 → .... .. / .---- ..--- ...--

## FAQ

**How do I separate letters and words in Morse code?**
Within a word, each letter's dots and dashes are separated by a single space. Between words you use a slash with spaces around it ( / ), which represents the longer pause that tells the reader a new word has begun.

**Why is SOS written as ... --- ...?**
In International Morse, S is three dots (...) and O is three dashes (---). SOS is S-O-S, so it becomes ... --- ... . It was chosen as a distress signal because the pattern is simple, distinctive, and easy to recognize.

**Does the translator handle numbers and punctuation?**
Yes. It supports the digits 0–9 and common punctuation such as period, comma, question mark, slash, parentheses, colon, and a few symbols, using International Morse codes or widely used extensions such as ! and $.

**Is Morse code case-sensitive?**
No. Morse has no distinction between uppercase and lowercase, so 'Hello' and 'HELLO' produce exactly the same code. The decoder returns letters in uppercase.

**What does a question mark in the output mean?**
A '?' appears when a character is not in the tool's Morse table — for example an emoji, an accented letter, or an unusual symbol. The rest of your text still translates normally.

**Can I hear the Morse code as sound?**
Yes. Click the play button and the tool sounds the code as beeps using your browser's Web Audio API, with short beeps for dots and longer beeps for dashes. No audio files are downloaded.

**Is my text sent to a server?**
No. All translation and audio happen locally in your browser, so your text and messages never leave your device.


## Sources

- [Wikipedia — Morse code](https://en.wikipedia.org/wiki/Morse_code)
- [ITU-R M.1677-1 — International Morse code](https://www.itu.int/rec/R-REC-M.1677-1-200910-I/)
- [MDN Web Docs — Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Morse Code Translator", https://hifreetools.com/text/morse-code-translator
