happytails.ai

Morse Code Translator

Open Morse Code Translator on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.

Tool capabilities

{
  "id": "morse-code-translator",
  "category": "text-tools",
  "built": true,
  "requirements": "Encode/decode supported alphabet with separators and optional local audio playback.",
  "implementation": {
    "fields": [
      {
        "key": "direction",
        "label": "Direction",
        "value": "Encode",
        "type": "select",
        "values": [
          "Encode",
          "Decode"
        ]
      }
    ],
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Hello world!",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "helpParts": [
        "Change the input or settings to update your result.",
        "Results update as you type.",
        "Up to 1,000,000 characters."
      ],
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "POST /api/v1/tools/morse-code-translator/run",
  "api": {
    "id": "morse-code-translator",
    "name": "Morse code translator",
    "category": "text-tools",
    "description": "Translate letters and digits to or from Morse code.",
    "notes": "",
    "human_path": "/en/text-tools/morse-code-translator/",
    "method": "POST",
    "endpoint": "/api/v1/tools/morse-code-translator/run",
    "schema_url": "/api/v1/tools/morse-code-translator",
    "input_schema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "input": {
          "type": "string",
          "maxLength": 1000000,
          "default": "",
          "description": "Plain text input. File tools use files instead unless otherwise documented."
        },
        "options": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "direction": {
              "type": "string",
              "description": "Direction",
              "default": "Encode",
              "enum": [
                "Encode",
                "Decode"
              ]
            }
          }
        }
      }
    },
    "output_schema": {
      "type": "object",
      "required": [
        "tool",
        "result"
      ],
      "properties": {
        "tool": {
          "type": "string"
        },
        "result": {
          "type": "object",
          "required": [
            "text",
            "files"
          ],
          "properties": {
            "text": {
              "type": [
                "string",
                "null"
              ]
            },
            "data": {
              "description": "Parsed JSON when the textual result is JSON."
            },
            "name": {
              "type": "string"
            },
            "mime": {
              "type": "string"
            },
            "files": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "mime",
                  "bytes",
                  "base64"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "base64": {
                    "type": "string",
                    "contentEncoding": "base64"
                  }
                }
              }
            }
          }
        }
      }
    },
    "processing": "Server; same transformation code as browser tools",
    "limits": {
      "request_bytes": 8388608,
      "input_characters": 1000000,
      "files_bytes": 5242880,
      "max_files": 0,
      "timeout_seconds": 12
    }
  },
  "agent_processing": "Server; same transformation code as browser tools",
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}

Page guide

Translate letters and digits to or from Morse code.

How to use Morse code translator
  1. Enter your text in the input field.
  2. The result updates as you type. Adjust the available settings if needed.
  3. Review the result, then use Copy result or a download link when available.

How Morse code translator works

Choose Encode to turn text into Morse code or Decode to turn dots and dashes back into text. Encoding converts letters A to Z and digits 0 to 9 using International Morse code, puts a space between letters and a slash between words. Decoding reads codes separated by spaces, with / between words, and returns capital letters. Only letters and digits are supported: punctuation, accented letters and other symbols are passed through unchanged, and there is no audio playback.

Before you start

For decoding, separate each letter's code with a space and each word with a slash, using periods for dots and hyphens for dashes. For encoding, remove punctuation you do not want copied into the output.

A worked example

Encoding SOS gives ... --- ..., and decoding .... . .-.. .-.. --- / .-- --- .-. .-.. -.. gives HELLO WORLD.

What to expect

Translate letters and digits to or from Morse code. Separate encoded letters with spaces and words with /. Unsupported punctuation remains unchanged. Audio playback is not available.

Try a small example

SOS

Common questions

What is SOS in Morse code?

SOS is three dots, three dashes, three dots: ... --- ... Encoding SOS here shows it as three separate letters. As a distress signal it is traditionally sent as one continuous sequence without the usual gaps between letters.

How do I separate letters and words in Morse code?

In this translator a single space separates letters and a slash separates words, as in .... .. / - .... . .-. . for HI THERE. Written Morse often uses this convention because the timing gaps of spoken or tapped Morse cannot be shown in plain text.

Why does punctuation not translate?

This tool only maps letters A to Z and the digits 0 to 9. Commas, question marks, accented letters such as É and other symbols are copied into the output as they are. When decoding, any code it does not recognize, such as .-.-.-, is also left unchanged.

Why is my decoded text all capitals?

Morse code has no separate signals for uppercase and lowercase, so decoded text is shown in capitals. When encoding, lowercase and uppercase letters produce the same code.

Why do I get an extra slash in my Morse code?

Each space in your text marks a word break, so two spaces in a row create an empty word between slashes. Replace double spaces with single spaces before encoding to get clean output.