Basics
Morse Code vs Binary: Is Morse Code Binary?
Morse code is not binary in the computer sense. It uses two marks (dot and dash) but also three different gap lengths, and its letters have variable length. You can write Morse as 1s and 0s by sampling it in time units — E (.) becomes 1, T (-) becomes 111, with 0, 000 and 0000000 as gaps — but that is a convention, not a standard.
SOS in Morse code
... --- ...
On this page (show)(hide)
People often call Morse code "the first binary code". It's a nice story, but it's only half true, and the difference matters if you're trying to convert between them.
What Morse and binary have in common
Both send information with something that is either on or off: current flowing in a telegraph wire, a light, a beep, a bit in memory. That's why Morse is often taught in computer-science classes as an early digital code.
Where they differ
| Morse code | Computer binary (e.g. ASCII) | |
|---|---|---|
| Symbols | dot, dash + 3 gap lengths | 0 and 1 |
| Length per character | variable (E = 1 mark, 0 = 5 marks) | fixed (8 bits per ASCII character) |
| Meaning of timing | essential | none — bits are just positions |
| Designed for | human operators | machines |
So Morse is better described as a variable-length, timed code. In fact, its trick of giving common letters short codes (E is ., T is -) is the same idea behind modern compression such as Huffman coding.
Writing Morse as 1s and 0s
If you need Morse as a bit string, for a puzzle, a microcontroller or a blinking LED, the clearest convention is to write one bit per time unit:
| Element | Units | Bits |
|---|---|---|
| Dot | 1 on | 1 |
| Dash | 3 on | 111 |
| Gap inside a letter | 1 off | 0 |
| Gap between letters | 3 off | 000 |
| Gap between words | 7 off | 0000000 |
Worked example, using the translator's output ... --- ...:
- S
...→10101 - O
---→11101110111 - S
...→10101
Joined with letter gaps: 10101 000 11101110111 000 10101 (written with spaces here so you can read it).
This is exactly the on/off pattern you'd feed to an LED or buzzer, and it's how the timing in the audio and timing guide translates into a signal.
Other "binary" conventions you'll see
- Dot = 0, dash = 1. Popular in puzzles (
...=000), but it throws away the gaps, so you need spaces or another separator between letters. - Dot = 1, dash = 0. The same idea reversed. Always check which one a puzzle uses.
Because there's no official standard, any "Morse binary translator" can only match one of these conventions. When decoding a puzzle, try both mappings and see which produces real letters on the Morse code chart.
Numbers are a separate question
"Morse code numbers" means the Morse for digits (1 = .----), not binary numbers. The Morse code numbers guide explains digits, and why 101 in Morse is .---- ----- .----, not the binary value five.
Frequently asked questions
Is Morse code a binary code?
Not strictly. A signal is either on or off, which is binary at the physical level, but Morse depends on the length of each on and off period (1, 3 or 7 units). Computer binary uses fixed-length groups of bits with no timing meaning.
How do you convert Morse code to binary?
One common convention writes each time unit as a bit: 1 for signal on, 0 for off. A dot is 1, a dash is 111, the gap inside a letter is 0, between letters 000 and between words 0000000. SOS becomes 10101 000 11101110111 000 10101 (spaces added for readability).
Is Morse code 1 and 0 the same as ASCII binary?
No. ASCII binary encodes the letter A as 01000001, eight bits regardless of the letter. Morse encodes A as dot-dash, which is 10111 in on/off units. Mixing them up gives nonsense.
Does this site have a Morse code binary translator?
No. Because there is no single standard for writing Morse as 1s and 0s, a converter would only match one convention. This guide shows the most common one so you can apply it by hand.
Next step
Play SOS slowly and count the on and off units; they match the 1s and 0s in the table above.
Open in the Morse code translator →