- Translator
- Morse vs binary
Morse code vs binary
Only partly. A Morse signal is either on or off, like a bit, but it is not a fixed-width binary character code: its meaning depends on how long each state lasts, a dot or a dash while it is on and one of three gaps while it is off. It can be written as 1s and 0s, one per unit of time, but then the timing is the code (ITU-R M.1677-1, §§1–2).
In short:
- On the wire, Morse uses two states, on and off, which can be recorded as binary digits (Shannon, 1948).
- The code itself depends on lengths: a signal is a dot or a dash, and a silence is one of three gaps.
- Letters are 1 to 4 signals long, while ASCII and the five-bit teleprinter code give every character the same width.
- In dot-dash notation, Morse needs at least three symbols: dot, dash and space. This does not prevent a binary representation that includes timing (ITU timing rules).
Why Morse looks binary
A Morse transmitter does only two things: it is on, or it is off. A key closes a circuit or opens it, a lamp is lit or dark, a tone sounds or stops. When Claude Shannon set out the mathematics of communication in 1948, he described the telegraph dot in exactly those terms, as the line closed for one unit of time and then open for one unit (Shannon, 1948). Two states is also what a bit has. So far, Morse and binary agree.
Why two element labels are not enough
The missing information is time. Labelling a dot 0 and a dash 1 does not encode the pauses. In Morse code, what an on or off means depends on how long it lasts; a binary recording can preserve that timing too. The international standard, ITU-R M.1677-1, fixes the 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.
Hear it for yourself. The two players below send exactly the same signals, a short one and then a long one, at 12 words per minute with the standard gaps. The only thing that differs is the silence in the middle.
Written as tiles, the first is two letters and the second is one:
- E
- T
- A
Shannon counted the code’s symbols in a similar way, in an illustrative model rather than a standard. “Suppose the symbols are” four: a dot, a dash, a letter space of three units and a word space of six, with the short gap inside a letter folded into the dot and the dash. His word space is six units where ITU’s is seven, which shows the model is a sketch. He added that “we might place the restriction” that no spaces follow each other, since two letter spaces side by side would be identical to a word space (Shannon, 1948). These are restrictions on Shannon’s illustrative telegraph model; a binary representation can describe the model and its restrictions too.
So how many symbols does Morse have?
It depends on where you count, which is why you will find different answers. The ITU row counts two signal categories and three gap categories, not five distinct durations (ITU-R M.1677-1, §2); the four-symbol model is Shannon’s (Shannon, p. 3):
| Where you count | Symbols | What they are |
|---|---|---|
| The line, the light or the tone | 2 | on and off |
| Shannon’s illustrative model of telegraphy, 1948 | 4 | dot, dash, letter space, word space |
| The ITU timing rules | 5 | dot, dash, and gaps of one, three and seven units |
| Morse written in dot-dash notation | 3 or 4 | dot, dash, space, and usually a slash |
Calling written Morse a three-symbol code (dot, dash, space) describes one notation, but it still undercounts the distinct gap types. Calling a timed on/off representation binary describes a different level. A space between letters and a space between words are different symbols with different meanings, which is why written Morse adds the slash.
For another comparison of how symbols represent text, read Morse code vs braille.
Variable length: the other big difference
ASCII gives every character the same width. RFC 20, a 1969 note on exchanging text between networked computers, suggests “standard 7-bit ASCII embedded in an 8 bit byte” (RFC 20, 1969). Shannon’s teletype example works the same way: 32 symbols of equal duration, each carrying five bits (Shannon, 1948). With a fixed width, the receiver finds the end of a character by counting bits. A fixed width is one common design for a binary code, not a requirement of binary: the 1-and-0 version of Morse below has no fixed width at all.
Morse code does the opposite. A letter takes 1 unit for E and up to 13 units for J, Q, Y, not counting the gap after it. Shannon pointed out that telegraphy already matches code length to frequency “to a limited extent”: the shortest symbol, a dot, goes to E, the most common letter in English, while the infrequent Q, X and Z get longer sequences. He added that on a noiseless telegraph channel one could save about 50% in time by proper encoding, which was not being done in the system he was discussing (Shannon, 1948). With no fixed width, the only way to know where a letter ends is the gap after it. Take the gaps away and the code cannot be read.
Writing Morse as 1s and 0s
You can turn Morse into a real binary string by sampling the signal once per unit: write 1 while it is on and 0 while it is off. A dot becomes 1, a dash 111, the gap inside a letter 0, the gap between letters 000 and the gap between words 0000000. The word HI comes out as:
1010101000101
And here are E then T, and A, from the players above:
1000111 and 10111
That string is binary, but it is a recording of timing, not a fixed-width character code. Much of the structure sits in the runs of zeros: their length decides where a letter or a word ends.
Another way to write it is a dot as 0 and a dash as 1. That looks binary too, until you see HI: 0000 00. The space is still there, and without it you could not tell where H ends.
For a different example to examine as bits, follow the Arecibo message decoding guide.
How to convert Morse code to binary
Choose what the bits will represent before converting. Recording the signal and encoding its decoded text are different tasks. The ITU defines Morse signals and timing; ASCII and UTF-8 define representations of text characters (ITU-R M.1677-1, §§1–2; RFC 20; RFC 3629, §3).
- To preserve a signal: use the on/off convention above, with one bit per dot-length unit, 1 for on and 0 for off. Keep the one-, three- and seven-unit gaps; those are the boundaries specified by the ITU (ITU-R M.1677-1, §2). State the convention alongside the result, including whether you include silence before or after the message.
- To obtain text bytes: decode the Morse into letters first, then choose a character encoding. RFC 20 puts seven-bit ASCII into eight-bit bytes with a leading zero; UTF-8 gives ASCII characters those same byte values (RFC 20; RFC 3629, §1).
For example, decoding .... .. as international Morse gives HI (ITU-R M.1677-1, §1.1.1). Its ASCII bytes, also valid UTF-8 bytes, are 01001000 01001001 (RFC 20, character table; RFC 3629). Compare those bytes with the on/off string above: they represent the letters, rather than their sending rhythm.
For a puzzle that labels dots and dashes with bits, keep its supplied mapping and separators. Do not silently apply the timed convention to a worksheet using element labels. To check the letters before choosing a binary format, use How to read Morse code. For a programming example, see Morse code in Python.
To explore how a signal can be represented by printed characters, read about 6EQUJ5 and the Wow! signal.
Why the difference matters
Anyone who reads Morse, a person or a program, has to judge lengths, not just notice a signal. A decoder has to tell a three-unit gap from a one-unit gap, and a dash from a dot, even when the sender is uneven. That timing distinction follows the ITU proportions. It is central to decoding Morse code from audio. The proportions are the subject of Morse code timing.
The distress signal SOS is defined by the 1906 Berlin regulations as one signal to be repeated at brief intervals (ITU History Portal, Berlin 1906); SOS in Morse code has it in full. The Morse code alphabet shows every letter with its length drawn to scale, and the translator plays any text so you can hear the gaps for yourself. If you want to recognize letters by their rhythm rather than by counting, start with How to learn Morse code by ear.
Sources
- C. E. Shannon, A Mathematical Theory of Communication (reprinted with corrections from the Bell System Technical Journal). Bell System Technical Journal, vol. 27; reprint hosted by Harvard University, July and October 1948.
- Recommendation ITU-R M.1677-1, International Morse code. ITU Radiocommunication Sector, October 2009.
- RFC 20: ASCII format for Network Interchange, V. G. Cerf. RFC Editor, IETF, 16 October 1969.
- International Radiotelegraph Convention and Service Regulations, Berlin 1906 (English text). ITU History Portal, signed 3 November 1906.
- RFC 3629: UTF-8, a transformation format of ISO 10646. RFC Editor, IETF, checked 10 November 2026.