- Translator
- Write
How to write Morse code
Write each letter as its dots and dashes, put one space between letters and a slash between words: Hello world becomes .... . .-.. .-.. --- / .-- --- .-. .-.. -... The spaces carry meaning, so leaving one out can turn two letters into a different one.
In short:
- Type a period for each dot and a hyphen for each dash.
- Leave one space between letters.
- Put a slash between words, with a space on each side.
- Use only letters, figures and the punctuation marks that have a code.
- Paste the result into the translator to check it before you send it.
What each mark stands for
Morse code is defined as signals and silences, not as writing. The international standard, ITU-R M.1677-1, sets them in fixed proportions: a dash lasts three dots, the gap inside a letter one dot, the gap between letters three dots and the gap between words seven. It has no rule for typing the code. The written form is a convention, and it works because each mark stands for one of those lengths:
| In the signal | Length | On paper or in text |
|---|---|---|
| A dot | 1 unit | a period: . is E |
| A dash | 3 units | a hyphen: - is T |
| Gap inside a letter | 1 unit | nothing, the marks touch: .- is A |
| Gap between letters | 3 units | one space: . - is E then T |
| Gap between words | 7 units | a slash with a space on each side, or a new line: . / - |
The slash between words is only a written marker for that long gap. It is not the ITU’s fraction bar, which is a signal of its own, , sent in fractions such as 3/4 and in 0/0 for a percent sign (ITU-R M.1677-1).
Listen to the example below. You hear a short pause after each letter, where the written code has a space, and a longer pause in the middle, where it has a slash.
Does Morse code use spaces or slashes?
Morse code uses timed gaps when you send it; spaces and slashes are ways to show those gaps in writing. The ITU defines pauses between parts of a letter, between letters and between words, and gives the fraction bar its own signal (ITU-R M.1677-1, Part I, §§1.1.3–2).
Check the notation before you decode someone else’s worksheet. For example, Penguin’s Meet... the Flying Doctors worksheet separates letters with one slash and words with two slashes (Penguin Random House Australia, Worksheet 1, p. 7). That differs from this site’s one-space letter separator and single-slash word separator. Pasting that worksheet’s notation here unchanged would put word breaks between letters.
For this translator, convert the worksheet’s single slashes to spaces and its double slashes to word separators. Keep an actual fraction bar as its encoded character, . A visible slash between code groups and the signal for a slash are different things; check which one your message needs before copying it.
Writing Morse code in a text or a chat
The period and the hyphen are on every keyboard, so they are the safest choice for a message. Here is the example as plain text, ready to copy:
.... . .-.. .-.. --- / .-- --- .-. .-.. -..
Some websites print Morse with a middle dot and a long em dash instead, because they look tidier. The translator on this site reads those too, but a person on the other end may be using a tool that does not, so stick to the plain characters when you are not sure.
On iPhone, watch out for automatic dash formatting. Apple’s guide for Pages notes that two hyphens typed in a row turn into one long dash, and points to the switch for it: Settings, then General, Keyboard and Smart Punctuation, a setting that applies to the other apps you type in as well (Apple, Pages User Guide). In Morse code that change is a real error: M is two dashes, --, and a single long dash reads as T. Turn the setting off while you write code, or paste the code instead of typing it.
You can also put each word on its own line instead of using slashes. The translator reads a line break, a slash, a vertical bar or two spaces in a row as the gap between words, so never break a line in the middle of a word.
Writing Morse code on paper
- Draw the ratio. Make dots small and round, and dashes short lines about three times as long, the same ratio as in the sound.
- Space the letters. Leave a gap between letters that is clearly wider than the gaps inside a letter. If in doubt, give every letter a finger’s width.
- Mark the words. Draw a slash between words, or start each word on a new line.
- Writing top to bottom. On a bookmark or a ribbon, put one letter on each row and leave a blank row, or a slash, between words.
Copying Morse by ear is different. When you write down a message you hear, write the letters, not the signals: the ARRL’s tips for learners call Morse code “a language of sounds” and say “Never write dots and dashes” (ARRL tips). How to learn Morse code by ear explains how to learn letters as sounds.
Does Morse code have capital letters?
Morse code has no separate signals for capital and lowercase letters: the ITU table assigns one signal to each letter, with no case switch (ITU-R M.1677-1, Part I, §1.1.1). You can type Hello, HELLO or hello into this translator and get the same code: .... . .-.. .-.. ---.
That means you cannot recover the original capitalization from the signal alone. If you encode a sentence with a capital at the beginning or a name with a capital initial, the code preserves the letters but does not mark which ones were uppercase. Showing the decoded text in capitals does not mean the sender typed it that way; it is how this translator displays the letters.
When capitalization matters, keep a copy of the original text alongside the code or explain the intended spelling in a separate note. For a handwritten message, choose whichever letter case makes your accompanying plain text easiest to read. There is no extra Morse character to add before a capital.
Numbers, punctuation and whole sentences
Every digit has five signals; Morse code numbers lists them. When figures and letters form one group, they keep normal character gaps, with no word gap between the figures and letters, and the ITU’s example is ordinal numbers such as 25TH (ITU-R M.1677-1). In writing, that means letter spaces but no slash: ..--- ..... - .....
Punctuation marks have codes of their own, most of them six signals long. A question mark at the end of a sentence is written with its code, like any letter:
.- .-. . / -.-- --- ..- / --- -.- ..--..
A full stop works the same way: its code is , six signals, which has nothing to do with the period you type for a single dot.
Some characters have no code in the international table at all, among them the exclamation mark, the semicolon and the ampersand (ITU-R M.1677-1); the Morse code alphabet lists the ones that do. Spell them out or leave them out. For a few signs the ITU gives a workaround:
- Percent. Send 0/0, joined to the number with a hyphen, so 2% becomes 2-0/0:
..--- -....- ----- -..-. -----. - Quotation marks. The same signal goes before and after the quoted words.
- Multiplication sign. Send the letter X.
All three rules come from the same recommendation (ITU-R M.1677-1). Morse code punctuation covers every mark.
If you are in an emergency and can call emergency services, call first. One famous signal is written without letter spaces. SOS was defined in 1906 as this signal: (ITU History Portal, Berlin 1906). SOS in Morse code explains why.
Mistakes that change the message
In Morse code a space is part of the message. Here is E followed by T, written with the space between the letters:
- E
- T
Leave the space out and the same marks are a single letter, A:
- A
The same happens everywhere in the alphabet. Two Es without a space read as I, and two Ts as M. It also works the other way: a stray space inside a letter splits it in two, so H, ...., written with a space after two dots, reads as I I, .. ...
- Uneven gaps. If some letter spaces are wider than others, a reader cannot tell a wide letter gap from a word gap. Use the slash.
- Automatic dashes. Two hyphens merged into one long dash turn M into T, as described above.
- Characters with no code. The translator skips them and shows a note, so the message plays without them.
- Beads and engravings. On jewelry the gaps are the hardest part to get right; Morse code bracelet shows how to space beads.
How do you type Morse code on a phone?
Add a Morse code keyboard. Google’s Gboard has one that you type on with a dot key and a dash key (Google, Gboard Help, Android). The setup differs by phone:
- Android. Open Settings, then System, Languages & input, Virtual keyboard and Gboard. Tap Languages, then English (U.S.), and turn on Morse code. Google says it is available for English (United States) on Android 5.0 and higher. Reach it with the Globe key.
- iPhone. Install Gboard, open the app, tap Languages and Add Language, and choose Morse Code (US). In any text field, touch and hold the Globe key and pick it (Google, Gboard Help, iPhone and iPad).
On both, holding the dot or dash key repeats it, and if Character timeout is set to Never, the space bar sends the letter you have entered. Morse code keyboard on Android and Morse code on iPhone go through each phone step by step. On a computer, Online Morse code keyboard shows how to type it in a browser.
How do you write a number such as 67 or 143?
Write the code of each figure, with one space between figures and no slash. Every figure has its own five-signal code, and a slash would split the number into two words. A group of figures and letters keeps ordinary letter gaps and has no word gap inside it (ITU-R M.1677-1, Part I, 4.1). So 67 is -.... --... and 143 is .---- ....- ...--.
Check it before you send it
Paste your code into the translator. It recognizes dots and dashes, switches to Morse to text by itself and shows the letters it reads, so a missing space shows up at once as a wrong letter. Then press Listen to hear whether the rhythm matches what you meant.
Open Hello world in the translator
Sources
- Meet... the Flying Doctors: Teachers’ Resources, Worksheet 1. Penguin Random House Australia, checked 11 November 2026.
- Recommendation ITU-R M.1677-1, International Morse code. ITU Radiocommunication Sector, October 2009.
- Format hyphens, dashes, and quotation marks in Pages on iPhone. Apple, Pages User Guide for iPhone, checked 6 November 2026.
- Tips for Learning Morse Code (CW), Chuck Adams, K7QO, and Rod Dinkins, AC6V. ARRL, checked 6 November 2026.
- International Radiotelegraph Convention and Service Regulations, Berlin 1906 (English text). ITU History Portal, signed 3 November 1906.
- Write in Morse code (Gboard Help, Android). Google, checked 6 November 2026.
- Write in Morse code (Gboard Help, iPhone & iPad). Google, checked 6 November 2026.