Morse Code

Converts text to Morse code or Morse code back to text. Direction is auto-detected.

GET /convert/morse

Parameters

Parameter
Required
Description

text

Yes

Text to convert (plain text or Morse code)

Auto-detection

The API automatically detects the direction:

  • Text → Morse: Input is plain text (e.g. HELLO)

  • Morse → Text: Input contains dots (.), dashes (-), and slashes (/)

Example: text to Morse

curl "https://api.uwuapps.org/convert/morse?text=HELLO"

Response

{
  "success": true,
  "direction": "text_to_morse",
  "input": "HELLO",
  "result": ".... . .-.. .-.. ---"
}

Example: Morse to text

Response

Morse code format

  • Letters are separated by spaces

  • Words are separated by / (space-slash-space)

For example, HELLO WORLD.... . .-.. .-.. --- / .-- --- .-. .-.. -..

Last updated

Was this helpful?