Encoding Utilities

Morse Encode

Converts plain text into Morse code using standard International Morse Code patterns. Access via MCP in Cursor or Windsurf, or call GET /v1/encode/morse/encode with your text. Returns dots, dashes, and spaces — perfect for radio communication simulations or educational tools. Handles letters, numbers, and common punctuation deterministically.

API Endpoint

GET /v1/encode/morse/encode

Code Examples

curl "https://tinyfn.io/v1/encode/morse/encode" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/encode/morse/encode', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/encode/morse/encode',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's encoding tools:

{
  "mcpServers": {
    "tinyfn-encoding": {
      "url": "https://tinyfn.io/mcp/encoding",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What characters does Morse encode support?

Supports A-Z letters, 0-9 numbers, and common punctuation like periods, commas, question marks, and apostrophes. Unsupported characters are typically skipped or replaced with spaces.

How are words and letters separated in Morse code output?

Letters within a word are separated by single spaces, while words are separated by multiple spaces (typically 7 spaces in standard Morse). Individual Morse elements use dots (.) and dashes (-).

Can I use Morse encode in my AI coding assistant?

Yes, it's available as an MCP tool in Cursor, Claude Code, GitHub Copilot, Windsurf, Cline, OpenClaw, and Zed. Your AI can encode text to Morse without hallucinating incorrect patterns.

Does Morse encode handle case sensitivity?

No, Morse code is case-insensitive. Both 'Hello' and 'HELLO' produce identical output since traditional Morse code doesn't distinguish between uppercase and lowercase letters.

What's the REST API format for encoding text to Morse?

Send a GET request to /v1/encode/morse/encode with your text as a query parameter. The response returns the encoded Morse code string with proper spacing and formatting.

Try Morse Encode Now

Get your free API key and start using Morse Encode in seconds.

Get Free API Key