工具 指南
text 免费 无需注册

Base64 编解码

通过输入点和横线或点击交互式按键按钮来解码摩尔斯电码。

正在加载工具…

关于此工具

粘贴或输入摩尔斯电码,使用点(.)和横线(-),字母之间用空格分隔,单词之间用斜杠(/)分隔,解码文本会随您的输入即时显示。如需亲身体验,请使用点击按钮:短按产生点,长按(300毫秒以上)产生横线——就像真正的电报键一样。解码器在每个摩尔斯组上方标记其解码字符,让您一眼发现错误。内置参考卡显示完整的ITU摩尔斯字母表,包括常用标点符号。

使用方法

  1. 1 在输入框中使用点(.)、横线(-)、字母间空格和单词间/输入或粘贴摩尔斯电码。
  2. 2 解码文本会在每组点横线上方实时更新。
  3. 3 或者,点击「点击」按钮,短按输入点,长按(>=300毫秒)输入横线,以交互方式输入摩尔斯电码。
  4. 4 查阅底部的参考卡,了解完整的摩尔斯字母表和标点符号表。

Reading Morse the other way: from dots and dashes back to text

Encoding text into Morse is the easy direction — every letter has exactly one pattern. Decoding is harder, because the receiver has to figure out where one character ends and the next begins purely from the gaps. This tool takes the marks you give it — dots (.), dashes (-), spaces, and the word separator / — and turns them back into plain text, character by character. It is built for the receiving side of Morse: copying a signal you heard, transcribing a recording, or checking a code you wrote by hand.

The three levels of spacing the decoder relies on

Because dots and dashes are written with the same two symbols for every letter, the spacing is the grammar. This tool reads three distinct separators, and getting them right is the whole game:

SeparatorYou typeMeaning
Symbol gap(nothing)Dots and dashes touching form one letter: ... is S
Letter gapone or more spacesEnds a letter, starts the next: ... --- is two letters
Word gap/ (slashes, spaces optional)Ends a word, inserts a space in the output

Internally the decoder splits your input on / to find words, splits each word on whitespace to find letters, then looks each dot-dash token up in the International Morse table. Any token it cannot find is rendered as a literal ? so you can see exactly where decoding failed rather than silently dropping it.

A worked example

Type .... . .-.. .-.. --- / .-- --- .-. .-..-. -.. into the box. The decoder splits on the / into two words. In the first, the five space-separated tokens ...., ., .-.., .-.., --- map to H, E, L, L, O. The second word .-- --- .-. .-..-. -.. becomes W, O, R… then .-..-. resolves to a double-quote and -.. to D — so a stray symbol shows up immediately as the wrong character. The annotated view stacks each decoded letter above its dot-dash token, making it obvious which group produced which character, and the large decoded text line shows the final string you can copy.

Tapping it out instead of typing

The tool also has a tap pad that turns timing into symbols the way a real telegraph key does. A quick press registers a dot; holding the button for 300 ms or more registers a dash. Then it watches the silence: about one second of no tapping ends the current letter and decodes it, and a further pause inserts a word break (/). This is a hands-on way to feel why spacing matters — tap . then pause too long and you have sent E followed by a new letter, not the start of a longer code.

Why decoding is genuinely ambiguous

The deep problem in Morse reception is that without clear gaps, a stream is ambiguous. The sequence ...-.- could be SV, UR, or several other readings depending on where you place the letter breaks. A human operator resolves this with rhythm and context; this tool resolves it strictly from the spaces you provide. That is the single most important thing to understand: the decoder is only as good as your gaps. If you run letters together with no spaces, it will try to match the entire run as one impossibly long token and return ?.

Common mistakes and how to avoid them

  • No spaces between letters. Writing ...---... as one block asks the tool to find a single nine-element character. (That specific run happens to be mapped to the SOS prosign, but .... jammed against . will not split into H and E.) Put a space between every letter.
  • Mixing up the word separator. Use / for word breaks. Multiple spaces alone are all treated as a single letter gap, so two words will merge.
  • Wrong dash character. Type a plain hyphen -, not an en-dash or em-dash pasted from a document. Only the ASCII dot and hyphen are recognised.
  • Expecting it to guess letter breaks. It will not infer where one character ends; that is information only the gaps carry.

Practical uses

Decode a signal you copied by ear during ham-radio practice, transcribe Morse from an old film or audio clip, check homework or a puzzle answer, or verify that a code you encoded round-trips back to the right text. A built-in reference card lists the full alphabet, digits, and punctuation so you can look up any character while you work. Everything runs locally in your browser — the marks you paste are decoded on your own device and never sent anywhere.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}