Tool Introduction
Morse Code is an encoding system that represents characters through dots, dashes (short, long signals), and spaces. This "Morse Code" online tool provides bidirectional conversion between text and Morse code, allowing you to easily encode text or decode Morse code. It not only supports standard Morse code encoding rules but also allows users to customize long codes, short codes, and character separators to meet personalized encoding needs.
You can enter the text to be encoded in the "Before encoding" input box, or paste Morse code into the "After encoding" input box for decoding. The tool will quickly convert text to Morse code or restore Morse code to readable text according to your settings, making it an ideal choice for learning and using Morse code.
How to Use
- Encode text to Morse code: Enter the text you want to convert in the "Before encoding" text box, for example, "I love you." Keep the "After encoding" text box empty. Click the corresponding "Encode" button, and the result will automatically appear in the "After encoding" text box.
- Decode Morse code to text: Enter the Morse code (e.g.,
.... . .-.. .-.. --- / .-- --- .-. .-.. -..) in the "After encoding" text box, and clear the "Before encoding" text box. Click the corresponding "Decode" button, and the decoded text will appear in the "Before encoding" text box.
- Custom encoding rules:
- Separator: Set the spacing symbol between Morse code characters in the "Separator" input box, defaulting to a space. For example, you can change it to
|.
- Long code: Set the symbol representing a "dash" in the "Long code" input box, defaulting to
-.
- Short code: Set the symbol representing a "dot" in the "Short code" input box, defaulting to
..
- Input parameter format and requirements:
- Before encoding: Supports English letters (case-insensitive), numbers, common punctuation marks, and spaces.
- After encoding (when decoding): Morse code format must comply with your currently set long code, short code, and separator rules. Words are usually separated by longer intervals (such as
/ or multiple separators).
- Output result format:
- After encoding: Text converted to Morse code, consisting of custom long codes, short codes, and character separators (as well as standard word separators).
- After decoding: Morse code restored to its original text content.
Frequently Asked Questions
- Q: What characters does the Morse code tool support?
- A: This tool supports standard English letters (case-insensitive), numbers 0-9, and most common punctuation marks (such as periods, commas, question marks, etc.) and spaces. Unsupported special characters may be ignored or cause encoding errors.
- Q: How are words separated in the output Morse code?
- A: To maintain the readability of Morse code, this tool follows international conventions when encoding, mapping spaces in the input text to a standard word separator (usually a forward slash
/), distinguishing it from single character separators.
- Q: Can I use the same characters when customizing long codes, short codes, and separators?
- A: It is strongly not recommended to set long codes, short codes, or separators to the same character. Doing so will cause ambiguity in Morse code parsing, leading to encoding errors or decoding failures. Please ensure that the three are independent of each other to avoid duplication.
- Q: What happens if the Morse code format is incorrect during decoding?
- A: If the entered Morse code does not comply with the currently set long code, short code, and separator rules, or contains illegal Morse code combinations, the tool may not be able to decode it completely correctly, or it may output partially recognized characters.
Notes
- Please ensure that the text content entered "Before encoding" conforms to the standard character set, and avoid using overly complex special symbols to prevent encoding failures.
- When customizing "Long code", "Short code", and "Separator", be sure to use different characters to ensure the uniqueness and parsability of the Morse code. For example, set the long code to
-, the short code to ., and the separator to .
- When performing decoding operations, the entered Morse code must strictly follow the currently set "Long code", "Short code", and "Separator" rules, and the word separator must also meet expectations, otherwise decoding may fail or be incorrect.
- Morse code is case-insensitive for English letters, but for consistency, encoding output is usually unified to uppercase or lowercase (this tool example uses uppercase for readability).