Text to Morse Code Converter

Turn any text into dots and dashes instantly – right in your browser.

Text to Morse Code Converter

Text to Morse Code Converter turns plain text into Morse code – the dot-and-dash alphabet that started electronic communication.
Encoding happens live as you type, covers letters, numbers and punctuation, and can even play the result as sound.
Nothing you paste ever leaves your personal device!


Load an example

Copy Download
Input: 0 characters | Output: 0 characters
Ready to convert text to Morse code.


Introduction:

Our Text to Morse Code Converter is a free, browser-based utility that translates any text into international Morse code. Paste your message into the input box and the dots and dashes appear immediately in the output box – no buttons to press, no waiting, no limits.

The tool runs entirely in your browser. Your text is never uploaded to a server, which makes it safe for any message you would rather not share. When you want to go the other way, our Morse Code to Text Decoder turns any of these dots and dashes back into readable text.


What Is Morse Code?

Morse code is a method of encoding text as sequences of two signal lengths: a short signal, written as a dot, and a long signal, written as a dash. It was developed in the 1830s for the electric telegraph by Samuel Morse and his collaborators, and its first official message – sent from Washington to Baltimore in 1844 – was "What hath God wrought".

What makes Morse work is rhythm, defined in units of time: a dot lasts one unit, a dash lasts three units, the silence between signals inside one letter is one unit, the gap between letters is three units, and the gap between words is seven units. That is why spacing matters so much: change a pause and a completely different letter appears.

Far from being a museum piece, Morse code is still alive today. Amateur radio operators use it daily, aviation beacons still identify themselves in Morse, it helps people with severe speech or mobility impairments communicate, and the distress call SOS remains the most famous sequence of dots and dashes in the world.


Morse Code Alphabet Chart:

The tool encodes exactly the characters below – the complete international Morse code alphabet for letters, numbers and punctuation.

A – M
A.-
B-...
C-.-.
D-..
E.
F..-.
G--.
H....
I..
J.---
K-.-
L.-..
M--
N – Z
N-.
O---
P.--.
Q--.-
R.-.
S...
T-
U..-
V...-
W.--
X-..-
Y-.--
Z--..
Numbers
0-----
1.----
2..---
3...--
4....-
5.....
6-....
7--...
8---..
9----.
Punctuation
..-.-.-
,--..--
?..--..
'.----.
!-.-.--
/-..-.
(-.--.
)-.--.-
&.-...
:---...
;-.-.-.
=-...-
+.-.-.
--....-
_..--.-
".-..-.
$...-..-
@.--.-.

What This Tool Does?

Live Conversion: The output updates on every keystroke. You can also click "Convert to Morse Code" after uploading a file or using "Load an example".

The Complete Alphabet: All 26 letters, all ten digits and 17 punctuation marks are supported, exactly as listed in the chart above. Characters outside the table (emoji, CJK symbols and similar) cannot exist in Morse code, so they are skipped and reported instead of silently lost.

Standard Spacing: Letters are separated by a single space and words by / , the widely accepted way to write Morse as plain text.

Example: HI THERE becomes .... .. / - .... . .-. ..

Custom Signal Symbols: Prefer asterisks over dots? Fill in the "Dot signal" and "Dash signal" boxes with any two different single characters (spaces, / and | are not allowed because they carry structural meaning).

Example: With * as dot and ~ as dash, SOS becomes *** ~~~ ***.

Accented Letters Welcome: Accented Latin letters are transliterated to their base letter before encoding – é becomes E, ü becomes U – so French, Spanish, German and similar text works without manual cleanup.

Example: Café encodes as -.-. .- ..-. ..

Word Separator Choice: Words are separated by / by default; pick | or a new line per word from the dropdown if you prefer.

Play It as Sound: Click Play to hear the current output as a 600 Hz tone, following the classic timing rule (dot = 1 unit, dash = 3, gaps of 1, 3 and 7 units). Choose a comfortable speed from 5 to 35 WPM – 15 WPM is a good start – and click Stop to end early. Playback always follows the real dots and dashes, whatever display symbols you have chosen.

File Upload, Copy & Download: Load a .txt file instead of typing, copy the result to your clipboard with one click, or download it as a file.

Live Statistics: As you type, the panel shows how many characters went in and how many dots and dashes came out.


Examples:

Click Try it on any example below to load it straight into the tool. The text on the right is the exact output the tool produces.

Example 1: The first telegraph message
Input (Text)
What hath God wrought
Output (Morse Code)
.-- .... .- - / .... .- - .... / --. --- -.. / .-- .-. --- ..- --. .... -

The words Samuel Morse sent officially on May 24, 1844, opening the Washington–Baltimore telegraph line.

Example 2: The famous distress call
Input (Text)
SOS we need help
Output (Morse Code)
... --- ... / .-- . / -. . . -.. / .... . .-.. .--.

Notice ... --- ... at the start – the world's best-known Morse sequence, chosen because its rhythm is impossible to mishear.

Example 3: Numbers and punctuation
Input (Text)
Meet me at 10:30 pm.
Output (Morse Code)
-- . . - / -- . / .- - / .---- ----- ---... ...-- ----- / .--. -- .-.-.-

The time 10:30 uses digit codes plus the colon, and the sentence ends with the period code .-.-.-.

Example 4: A full pangram
Input (Text)
The quick brown fox jumps over the lazy dog.
Output (Morse Code)
- .... . / --.- ..- .. -.-. -.- / -... .-. --- .-- -. / ..-. --- -..- / .--- ..- -- .--. ... / --- ...- . .-. / - .... . / .-.. .- --.. -.-- / -.. --- --. .-.-.-

This sentence contains every letter of the alphabet at least once – nine words of text become nine slash-separated Morse words.

Example 5: Just for fun
Input (Text)
I love coding and morse code
Output (Morse Code)
.. / .-.. --- ...- . / -.-. --- -.. .. -. --. / .- -. -.. / -- --- .-. ... . / -.-. --- -.. .

Press Play after loading this one and listen to how the seven-unit gaps let you hear where each word ends.


FAQs:

FAQ 1: How do I read the output?
Answer: Each group of dots and dashes separated by single spaces is one letter, and / marks a word boundary. So ... --- ... reads S-O-S, while .../... would be two separate words, each just the letter S.

FAQ 2: Why did some characters disappear from my output?
Answer: International Morse code has no codes for emoji, CJK characters and other symbols outside the chart above, so those characters are skipped – the tool tells you how many were affected. Accented Latin letters such as é or ü are not skipped; they are converted to their base letter first.

FAQ 3: What are the rules for custom dot and dash symbols?
Answer: Each box accepts one single character, the two characters must differ, and spaces, / and | are rejected because they already mean something in the notation. Leave both boxes empty (or as they are) to use the classic . and -. Playback is unaffected either way – it always plays true dots and dashes.

FAQ 4: Which playback speed should I choose?
Answer: Beginners usually follow along comfortably at 10–15 WPM. The tool computes one time unit as 1.2 seconds divided by the chosen WPM – the standard formula – so 15 WPM gives a 80-millisecond dot. If you lose track during fast playback, drop the speed and press Play again.

FAQ 5: Can it convert digits and punctuation too?
Answer: Yes. All ten digits and 17 punctuation marks have official Morse codes, and the tool supports every one of them – see the Morse Code Alphabet Chart above for the full mapping.

FAQ 6: Is my text sent to a server?
Answer: No. The conversion runs entirely in your browser with JavaScript, and nothing you paste or upload is stored anywhere.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.