The ten digits
1234567890
.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----
Read them left to right and watch the dots migrate: one dot, two dots, up to five, then the dashes take over from the front.
The ten digits, opened in the translator: .---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----. Play them, then type any number of your own.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
The numbers in Morse code are the most regular part of the whole alphabet. Where the letters were assigned by how common they are - E, the most frequent letter, is a single dot - the digits follow a pattern. Each one is exactly five symbols long. The digit 1 is one dot and four dashes (.----), 2 is two dots and three dashes (..---), and so on up to 5, which is five dots (.....). Then it mirrors: 6 is one dash and four dots (-....), 7 two dashes and three dots (--...), through to 9 (----.), and 0 is five dashes (-----).
So the count of dots tells you the number: for 1 to 5 count the leading dots, for 6 to 9 count the trailing dots and add five, and no dots at all is zero. Operators learn the digits in an afternoon for exactly this reason - and because a digit is always five symbols, a number never runs into the letters around it.
The translator above opens on 1234567890. Press Play to hear the sequence and notice how the sound tilts: dots rising into dashes for the first five, dashes falling into dots for the rest. Type a phone number, a year or a coordinate and it writes it out for you.
E, T) to four.1 = .----, 3 = ...--, 5 = ......6 = -...., 8 = ---.., 9 = ----..-----. It is the longest thing in the alphabet to send - 19 units - which is why operators on a busy circuit sometimes cut it to a single long dash.A1 is .- .----, and the decoder never confuses the two because a letter is never five symbols in these shapes.1234567890
.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----
Read them left to right and watch the dots migrate: one dot, two dots, up to five, then the dashes take over from the front.
1906
.---- ----. ----- -....
The year SOS was adopted. Four digits, twenty symbols, each group of five separated by a letter gap.
12:45
.---- ..--- ---... ....- .....
Punctuation has codes too: the colon is ---.... See the full chart on the translator page.
Gate 7B
--. .- - . / --... -...
7 (--...) and B (-...) start the same way; the fifth symbol is what tells them apart, which is why the digits are always sent in full.
.----) with the letter J (.---). J is four symbols, 1 is five - count them.-....) as B (-...) or 7 (--...) as Z (--..). Again, the digit has one more symbol than the letter it resembles.---). Zero is five dashes; three dashes is the letter. Cutting zero to one long dash is an operators' shortcut, not standard Morse..---- ..--- is 12; run together, .----..--- cannot be decoded at all..---- - one dot followed by four dashes. The rule for 1 to 5 is that many dots first, then dashes to fill five symbols, so 2 is ..---, 3 is ...--, 4 is ....- and 5 is ......-----. It is the only digit with no dots. Do not confuse it with the letter O, which is three dashes (---). On busy circuits operators sometimes abbreviate zero to a single long dash, but the translator always uses the full form...... ..... ...... The full stop is .-.-.-, so 3.14 is ...-- .-.-.- .---- ....-. Type the number into the translator above and it does the spacing for you.