Morse Code Calculator - Encode, Decode, and Time
Morse code converter for text to dits and dahs and Morse to text, with letter and word separators and a PARIS-standard duration estimate.
Morse Code Calculator
Results
What Is Morse Code Calculator?
A Morse code converter turns readable characters into the dots and dashes of International Morse code and turns Morse strings back into readable text. The same calculator handles distress calls, ham radio call signs, and short text notes without reformatting.
- • Decoding amateur radio call signs: Read short fragments from CW skimmer output or instructor transcripts without a printed chart.
- • Translating SOS and other distress signals: Turn the universal ... --- ... call into text, or build the same string from a message.
- • Teaching the International Morse table: Show how each letter, digit, and punctuation mark maps to a fixed dit and dah sequence.
- • Encoding short messages for offline use: Generate a flashable Morse string for a flashlight, mirror, or whistle signal.
The calculator uses International Morse code from ITU-R M.1677-1. Letter matching is case-insensitive, so 'Hello' and 'hello' produce the same output.
The same one-symbol-per-character pattern shows up in the ASCII converter, which maps every letter to a fixed 0-127 code point so the same character can be encoded in decimal, hex, octal, or binary.
How Morse Code Calculator Works
The converter walks the input one character at a time, reads the matching symbol from the International Morse table, and renders it in the chosen style. Encoding works on a plain text string; decoding works on a Morse string split by the chosen separators.
- textInput: The text to encode. Letters are matched case-insensitively.
- morseInput: A Morse string to decode. Tokens are split on the chosen separators.
- letterSeparator: Character between letters: space, slash, or pipe.
- wordSeparator: Character between words: slash, pipe, or double space.
- symbolStyle: Whether the output uses .- notation or the named dit and dah wording.
- mode: Encode walks the text and outputs Morse. Decode walks the Morse and outputs text.
Encoding is the same regardless of separator or symbol style; only the formatting changes. The dot-dash style writes each symbol as .- notation; the dit-dah style writes the named wording so the output reads as a spoken cadence. Decoding is the reverse: tokens are split, normalized back to dot-dash, and looked up in the inverse table.
Encode 'SOS' into Morse code
Text = 'SOS', Letter separator = space, Word separator = slash
1. 'S' = '...', 'O' = '---', 'S' = '...'. 2. Join with a space: '... --- ...'.
Morse output: ... --- ... Dits: 6 Dahs: 3 Duration at 20 WPM: 0.90 s.
SOS is the universal distress call: three shorts, three longs, three shorts.
Decode '.... . .-.. .-.. ---' back to text
Morse = '.... . .-.. .-.. ---', Letter separator = space
1. Split on spaces: ['....', '.', '.-..', '.-..', '---']. 2. Inverse table: H, E, L, L, O. 3. Join: 'HELLO'.
Decoded text: HELLO Dits: 11 Dahs: 5 Duration at 20 WPM: 1.56 s.
Hello covers five of the most-used letters, which is why it is the standard Morse practice word.
According to ITU-R M.1677-1 International Morse code recommendation, the International Morse code assigns '.-' to the letter A, '--' to M, and '... --- ...' to the SOS distress signal, with one word defined as 50 dot units under the PARIS timing standard.
The same kind of symbol rewriting applies the other way around, and the binary to text converter decodes a fixed-width binary string back to text the same way the Morse code converter reads the inverse table.
Key Concepts Explained
Four small ideas explain every result the Morse code converter shows.
Dit and Dah Symbols
A dit (.) is one timing unit, a dah (-) is three timing units. Each letter is a sequence of dits and dahs, with the letter separator between letters and the word separator between words.
Letter and Word Separators
The letter separator marks the boundary between letters inside a word; the word separator marks the boundary between words. A space is the most readable letter separator; a slash is the most common word separator.
PARIS Timing Standard
PARIS sets one word at 50 dot units, so a dit is the time unit, a dah is three dit units, and the gap between letters is three dit units. At 20 WPM a dit is 0.06 seconds.
International Morse Table
The International Morse table assigns a fixed dit and dah sequence to each of the 26 letters, 10 digits, and common punctuation. The same table backs both Encode and Decode.
When the input goes past the base table, the calculator does not silently fail; it flags the out-of-table character so the user can see exactly which character was not encoded.
These four ideas line up with what the calculator actually does: read a symbol from the table, format it in the chosen style, and rebuild the same string when the separators are consistent, which is the same one-symbol-per-letter pattern the NATO phonetic alphabet calculator uses for spoken call signs.
How to Use This Calculator
Five short steps cover both Encode and Decode without any setup.
- 1 Pick the conversion mode: Use Encode to turn text into Morse. Use Decode to turn Morse back into text.
- 2 Choose the input field that matches your mode: Encode reads the Text Input field. Decode reads the Morse Code Input field.
- 3 Select the letter and word separators: A space is the most readable letter separator. A slash is the most common word separator. Pick distinct values so the parser can tell boundaries apart.
- 4 Choose the symbol style: Use dot and dash for the canonical .- notation, or dit and dah for the named wording that reads like a spoken cadence.
- 5 Read the result, counts, and duration: The result panel shows the encoded Morse string or the decoded text, plus the dit count, the dah count, and the estimated duration at 20 WPM.
If you paste the text 'Hello' with Encode mode and a space letter separator, the calculator reads H, E, L, L, O from the table, joins them with spaces, and shows '.... . .-.. .-.. ---'. Switching the symbol style to dit-dah rewrites the same string with the dot and dash names spelled out, which is the form a CW practice script reads aloud.
Benefits of Using This Calculator
A purpose-built Morse code converter keeps the table consistent, the separators consistent, and the timing estimate readable.
- • One tool for both directions: Encoding and decoding share the same input fields, separators, and symbol style, which makes round-trip testing easy.
- • Configurable letter and word separators: A space, slash, pipe, or double space fits the format used by CW practice apps and reference charts.
- • Visible dit, dah, and duration counts: The result panel shows how many dits and dahs the message contains and the estimated air-time at 20 WPM.
- • Tolerant of mixed case and dit-dah wording: Letters are matched case-insensitively, and the decoder accepts the named dit and dah wording as well as the canonical dot and dash symbols.
- • Standardized against ITU-R M.1677-1: The lookup table matches the symbols and timing that ITU-R M.1677-1 publishes.
The result panel puts the primary value at the top and the supporting counts below it, the same way the rest of the calculator's results read.
When the encoded output needs to be sent over a binary channel or a chat log, the Caesar cipher shifter shows how the same letter-by-letter transformation pattern looks when it shifts letters through a substitution alphabet instead of a Morse table.
Factors That Affect Your Results
Three variables determine what the result looks like, and two limitations tell you when to reach for a different tool.
Symbol Style
The dit-dah style writes each symbol as a spoken cadence, the dot-dash style writes the same symbol as .- notation. Both encode the same characters and decode the same tokens.
Letter and Word Separators
A space is the most readable letter separator and a slash is the most common word separator in CW practice apps. A pipe works for fixed-width logs. Distinct values keep the round-trip unambiguous.
Input Character Set
Letters, digits, and common punctuation (period, comma, question mark, apostrophe, slash, parentheses, ampersand, colon, semicolon, equals, plus, minus, underscore, quotation mark, at sign) all sit inside the base table. Anything outside that range is surfaced as a warning.
- • The base table covers 26 letters, 10 digits, and 16 punctuation symbols. Accented letters, emoji, and CJK characters are not in the table and are surfaced as warnings rather than silent errors.
- • The converter does not handle Morse prosigns (procedural signals such as AR, SK, BT, or KN) that combine multiple letters into a single transmitted symbol.
The base table matches the same 26 letters, 10 digits, and 16 punctuation symbols that the rest of the international references publish.
According to ARRL Morse code reference, the PARIS standard sets one word at 50 dot units so a dit is the time unit, a dah is three dit units long, and the gap between letters is three dit units.
When the encoded output is meant for a different code table, the Base64 encoder decoder encodes text into a binary-safe character set, and the same one-symbol-per-character pattern is what the Morse code converter uses with dits and dahs.
Frequently Asked Questions
Q: What does the Morse code converter do?
A: It encodes a text string into International Morse code using the dot and dash symbols (or the named dit and dah wording) and decodes a Morse string back into text. The same calculator handles both directions and shares the same letter, word, and symbol style settings.
Q: How do you translate text into Morse code?
A: Switch the calculator to Encode mode, type or paste the text into the Text Input field, pick a letter separator and a word separator, choose the symbol style, and read the matching Morse string. Each letter is converted individually so the result is one Morse symbol per character.
Q: What is the Morse code for SOS?
A: SOS is the universal distress signal and is encoded as ... --- ... in International Morse code: three dits, three dahs, three dits. The Morse code converter outputs that string verbatim when you type SOS, and decodes the same string back to SOS when you paste it in Decode mode.
Q: How long is a dit in Morse code timing?
A: Under the PARIS timing standard, one word is 50 dot units long, so at 20 words per minute a single dit is 0.06 seconds and a single dah is 0.18 seconds. The result panel shows the total dit and dah counts and the estimated air-time duration in seconds for the message you entered.
Q: What characters does International Morse code cover?
A: The base International Morse code table covers the 26 letters A-Z, the 10 digits 0-9, and 16 common punctuation symbols including period, comma, question mark, apostrophe, slash, parentheses, ampersand, colon, semicolon, equals, plus, minus, underscore, quotation mark, and at sign. Accented letters and emoji are not in the base table and are surfaced as warnings on encode.
Q: Can the converter decode Morse strings back to text?
A: Yes. Switch the calculator to Decode mode, paste the Morse string into the Morse Code Input field, set the same letter and word separators that were used to encode it, and the calculator returns the original text. The decoder accepts both the dot and dash symbols and the named dit and dah wording.