Morse Code API

POST

Translate plain text to Morse code and decode Morse code back to text.

Morse Code converts plain text to Morse code dots and dashes and translates Morse back into text. It provides character counts, dit and dah totals, and validation status, while paid plans add downloadable audio tones.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/morsecode
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "text": "This Is A Message",
    "morse": "- .... .. ... / .. ... / .- / -- . ... ... .- --. . ",
    "stats": {
      "characters": 17,
      "dits": 25,
      "dahs": 7
    },
    "valid": true,
    "audio": {
      "audioFile": "a11f9d7f-1fd2-4b10-86de-82defaf18c57.wav",
      "format": ".wav",
      "downloadURL": "https://storage.googleapis.com/apiverve/APIData/morsecode/a11f9d7f-1fd2-4b10-86de-82defaf18c57.wav?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1765925804&Signature=TiktgUsHV0ipCaRwNNiEihtD5e1SacBHBwWLGvsrnLJTkH%2BH5fRsII5hxk7nEqTypya05Dg4BHTxu672tRU%2Bhb3F8g%2BQYL7u3PMaCHzcnrrpcjSh0hH7%2BWVfEyHxPf5cCuKliISePCOlpbVsU8xtFL8p1DfgTV2FeD8Rmwo3SVpCG4LHpYXJWoZVET2IbS4dZS%2Brn9kvnoBvApgDJgc5EEufOZHYLba6278g0HTgQaOIhdSNhpeSpCwPuSw6q3eK%2FGqzhD5PtzTBMPN1hMvXIZPX11EYRG%2FLbqvltu6gVgbYL5khcG5zQbDse2vXphAys8fMq7PiZSGe1ODf63Gakw%3D%3D",
      "duration": "13.20s",
      "frequency": "600Hz",
      "sampleRate": "8000Hz",
      "expires": 1765925804517
    }
  }
}

About the Morse Code API

Send text to receive dot-and-dash sequences separated by spaces and slashes, along with total counts of dits, dahs, and characters. Decoding parses Morse strings back into text and isolates any unrecognized symbols. Paid plans can generate downloadable audio tone files with duration, frequency, and sample rate metadata.

What people use it for

Ham Radio Training
Amateur radio training apps convert practice call signs and sentences into Morse strings to help students verify their manual keying.
Escape Room Puzzles
Game designers translate clue strings into dot-and-dash puzzles and count character lengths to calibrate challenge difficulty for players.
Assistive Communication Tools
Decode user input from single-switch sip-and-puff hardware into text while flagging invalid or unrecognized signal sequences immediately.
STEM Classroom Demonstrations
When teaching telecommunications history, physics teachers translate student messages into Morse code sequences to display exact dit and dah counts.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Morse Code

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Morse Code API.

Read the docs
How many Morse code translations does the Free plan cover?
The Free plan includes 200 credits each month, which covers 100 Morse code encodings or decodings at 2 credits per call. Upgrading to the Starter plan provides 200,000 credits, covering up to 100,000 requests and working out to about $0.30 per 1,000 calls.
Can I generate Morse code audio files on the Free plan?
Audio generation is a premium feature reserved for paid plans. Upgrading to Starter or above unlocks the audio parameter and response metadata, including signed audio download URLs, audio format, tone frequency, and file duration.
Does the API support two-way translation between text and Morse code?
Yes. There are separate endpoints for encoding plain text into Morse code and decoding Morse code strings back into readable text. Both endpoints also provide character counts alongside dit and dah totals.
What format does the generated Morse code string use?
The Morse code output formats characters using dits and dahs separated by spaces, with slashes used to distinguish separate words. Both endpoints return this representation in the morse field.
How can I tell if submitted Morse code is valid?
Every response includes a valid boolean field that confirms whether the Morse code is properly formatted. If the input contains invalid patterns, this field indicates that the sequence could not be verified as valid Morse code.

Ready to build with Morse Code? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs