文本转摩斯码
在浏览器中双向转换文字与国际摩斯码;明确支持ASCII A—Z、0—9和18种常用标点共54个字符,保留源文本行结构,以空格分隔字符码、斜线分隔单词。支持ASCII点划、排版点划和最多5字符且前缀无歧义的自定义信号;编码时可严格拒绝或跳过未知字符,解码时可严格拒绝或以替换字符保留未知码,并可选择输出大小写。输入最多100,000字符、50,000行,输出最多500,000字符。
使用步骤
如何使用
- Choose text-to-Morse or Morse-to-text and enter up to 100,000 characters.
- Use ASCII dots and dashes, typographic signals, or an unambiguous custom pair.
- Convert locally, review skipped or replaced values, then copy the result or download a text file.
A defined International Morse character set
The table covers ASCII letters A–Z, digits 0–9, and the common punctuation marks period, comma, question mark, apostrophe, exclamation mark, slash, parentheses, ampersand, colon, semicolon, equals, plus, hyphen, underscore, quotation mark, dollar sign, and at sign. Letter case is ignored while encoding. Accented letters, non-Latin scripts, emoji, and other characters are not silently transliterated: reject them by default or explicitly skip them.
Visible separators and reversible signal styles
A single space separates character codes, spaced slash separates words, and source line breaks remain line breaks. Decoding accepts flexible whitespace around codes and slashes but rejects empty word groups. Choose ASCII . and -, typographic · and −, or custom non-whitespace signals up to five characters each. Custom signals must differ, cannot contain slash, and cannot begin with one another, which keeps decoding unambiguous. Input is limited to 100,000 UTF-16 characters, 50,000 lines, and 500,000 output characters.
常见问题
你可能还想知道
Can it decode Morse code too?
Yes. Choose Morse code to text. Separate letters with whitespace and words with a slash; line breaks are preserved.
What happens to accented letters or emoji?
They are outside this tool’s documented table. The default strict setting identifies the first unsupported character and its location; Skip removes unsupported characters and reports how many were omitted.
Can I use stars and hashes instead of dots and dashes?
Yes. Choose Custom signal symbols, for example * and #. The two tokens must be distinct and prefix-free so the decoder can read every sequence without guessing.