Morse Code Encoder/Decoder

Convert text to and from International Morse Code dots and dashes

Free Morse code translator. Encode plain text into International Morse Code and decode dots and dashes back to letters, numbers, and punctuation. Uses single spaces between letters and a slash between words, all in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How are words separated in Morse code?

Within a word, individual letters are separated by a single space. Between words this tool uses a forward slash with spaces around it, which is a common convention for written Morse. In transmitted Morse the gaps are timed rather than written.

International Morse Code represents every letter, digit, and common punctuation mark as a short pattern of dots (short signals) and dashes (long signals). This translator encodes plain text into Morse and decodes Morse back into readable text, using a single space between letters and a slash between words.

How it works

Encoding looks up each character in the International Morse table — for example A is .-, S is ..., and O is --- — and joins the patterns for one word with single spaces. Words are joined with a slash so the boundaries stay visible in written form. Characters with no standard Morse representation are skipped.

Decoding reverses this with a lookup table built from the same data. The input is split into words on slashes, each word is split into groups on spaces, and every group is mapped back to its character. A group that matches no standard pattern is replaced with a visible marker so nothing is dropped silently.

Timing in real Morse

In transmitted Morse the spacing is defined by timing rather than written symbols. A dash is three times the length of a dot, the gap between symbols within a letter is one dot, the gap between letters is three dots, and the gap between words is seven dots. The written conventions used here — a space between letters and a slash between words — preserve those boundaries in text.

Example

SOS encodes to ... --- ..., the famous distress signal: three dots, three dashes, three dots. The phrase Gera Tools encodes to --. . .-. .- / - --- --- .-.. ..., with the slash marking the gap between the two words. Everything is computed locally in your browser.