Morse Code Keyer
/morse-code-keyer/
Related tools
Related posts
Comments
About this tool
Why practice Morse code with a keyer instead of a chart
Morse code writes letters as combinations of short signals (dots) and long signals (dashes). Memorizing a chart fades quickly, but pressing a key and hearing the tone builds rhythm into your hands and ears. This keyer treats a short press of the big pad or the spacebar as a dot and a long press as a dash. When you lift your finger and wait a moment, the code you have keyed so far becomes a letter on the screen above.
Read moreShow less
The picture in the middle is the Morse tree you often see on palm-sized Morse cards. From the antenna at the start, a dot moves you to a circle and a dash moves you to a square, one step at a time, and the path you have taken is drawn in bold. While you hold the key, the next step is previewed: release quickly and the circle lights up, keep holding and the square takes over.
How the Morse tree works and how dots and dashes are timed
International Morse code (ITU-R M.1677-1) is defined in time units. A dot lasts 1 unit and a dash 3 units; the gap inside a letter is 1 unit, between letters 3 units and between words 7 units. This tool uses the midpoint of 2 units as its threshold: shorter presses are dots, longer ones are dashes. At Normal speed one unit is 100 ms, so holding longer than 200 ms makes a dash, and 600 ms without a press confirms the letter. Slow uses 160 ms per unit (320 ms dash threshold, 960 ms to confirm) and Fast uses 70 ms (140 ms and 420 ms). Measured with the standard word PARIS, that is roughly 8, 12 and 17 words per minute.
The top row of the tree holds E, I, S and H to the right (one to four dots) and T, M and O to the left (one to three dashes). E and T get a single signal because they are the most common letters in English; Samuel Morse and Alfred Vail are said to have counted the type in a printer’s case to give frequent letters short codes. That makes SOS easy: three steps right for S, three steps left for O, then three steps right again.
All 26 letters need four signals or fewer, so they all fit on the tree. Digits use five signals and punctuation six or more, so they are not drawn, but if you key the full code the tool still looks it up in the international table. One dot and four dashes, for example, is 1. A combination that is not in the table is reported as unknown and not typed. The beep is a 600 Hz sine wave from the browser’s Web Audio API that plays only while you hold the key, with a tiny fade in and out to avoid clicks.
Using the keyer as a beginner, a radio amateur or a family
Beginners should start on Slow and key short words while watching the tree: SOS, your initials, HELLO. When the wrong letter appears, it is usually because a dash was not held long enough, or because you paused too long between signals and the letter was confirmed early. The bar under the pad fills in black while you hold; once it is full, the press has become a dash. After you release, the colored bar drains, and when it is empty the letter is confirmed.
Once it feels natural, stop looking at the tree, key by ear and move from Normal to Fast. Radio amateurs learn each letter as a whole sound shape rather than counting signals, and repeating letters here builds that habit. With children, use the Space button to separate words, write a short secret message, then copy both the text and the code and let the other person decode it with the Morse code translator.
Limits of this Morse code keyer
Press length is measured by the browser, so device speed, Bluetooth keyboards and touch screen latency can add errors of a few tens of milliseconds. If dots keep turning into dashes, choose Fast; if dashes turn into dots, choose Slow. On iPhone, web pages may be silent when the ring switch is set to silent.
The spacebar keeps its normal behavior when another input or button has focus, so click an empty part of the page before keying with the keyboard. Backspace cancels the code you are keying, or deletes the last letter when there is none. The keyer only enters international Morse (letters, digits and punctuation); Korean Morse is handled by the Morse code translator. This is a practice tool with no connection to real radio transmission, and the text you type is saved only in this browser and never sent to a server.
Popular tools
FAQ
How long is a short press and a long press?
At Normal speed, a press shorter than 200 ms is a dot and anything longer is a dash. Slow uses 320 ms and Fast uses 140 ms. When the bar under the pad fills completely while you hold, the press has become a dash.
When does a letter get typed?
After you release, the code is confirmed if you do not press again within a set time: 600 ms at Normal, 960 ms at Slow and 420 ms at Fast. The colored bar drains during that time.
How do I key SOS?
Three short presses (S), three long presses (O) and three short presses (S). On the tree that is three steps right along the top row, three steps left, then three steps right again. Wait for each letter to be confirmed so you get three separate letters.
Can I type digits and punctuation?
Yes. Digits use five signals and punctuation six or more, so they are not drawn on the tree, but keying the full code types them from the international table. For example, one short and four long presses is the digit 1.
Does it support Korean Morse code?
No. The keyer accepts international Morse only. Korean Morse uses the same dots and dashes for Korean letters, and the Morse code translator on this site converts both ways.
The spacebar does nothing or there is no sound. Why?
If another input or button has focus, the spacebar acts on it instead, so click an empty part of the page first. For sound, make sure Beep is checked and, on iPhone, that silent mode is off.