Shard Tools

Text to Morse Code

Translate text into Morse code in your browser, with slashes marking word gaps.

Maintained by Roshan.

Use Text to Morse Code

Converts text to morse code in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore text tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all text tools

About Text to Morse Code

Morse code turns letters and numbers into patterns of short and long signals - dots and dashes - and although it is well over a century old, it endures because it needs almost nothing to send: a light, a sound, a tap, a flag. Translating text into Morse is a staple of amateur radio, of scouting and survival training, and of anyone building a project that flashes or beeps a message. The part that a good translator has to get right is spacing, because Morse relies entirely on gaps to be readable. A gap between letters is different from a gap between words, and running them together produces something no one can decode. This tool separates letters with a space and words with a slash, which is the widely used written convention.

Work through the input

  1. Each letter and digit is looked up in the standard International Morse table and replaced with its sequence of dots and dashes.
  2. Letters within a word are separated by a single space, which represents the short gap a sender leaves between letters.
  3. Words are separated by a slash, the conventional written mark for the longer gap between words.
  4. Common punctuation - full stop, comma, question mark and others - has its own Morse sequence and is translated too.
  5. Line breaks in the input are preserved, so a multi-line message stays multi-line.

When text to morse code is useful

Preparing a message to flash or beep

The dots and dashes map directly to short and long signals, and the slashes tell you where to leave the long word gaps.

Learning the code

Translate familiar words and read off the patterns; the visible letter and word spacing makes the structure clear.

Check the output

Questions about Text to Morse Code

What do the slashes mean?

They mark word gaps. A space separates letters within a word, and a slash separates words - both are needed to decode it back.

Does case matter?

No. Morse has no case, so uppercase and lowercase produce the same code.

What about punctuation?

Common marks like the full stop, comma and question mark have Morse sequences and are translated. Rare symbols are dropped.

Can I turn this into sound?

This gives you the written dots and dashes. Converting those to audio or light timing is a further step.

Related tools

Text to Binary

Convert text to binary in your browser. Each character becomes its UTF-8 bytes, grouped for readability.

Reverse Text

Reverse text in your browser, correctly handling emoji and accented characters.