Skip to content

Morse Code Converter

Heavstal Morse Engine translates standard text into International Morse Code and vice versa. It handles alphanumeric characters and punctuation, using standard spacing for readability.

POST /morse

FieldTypeRequiredDescription
textstringYesThe input string (Text or Morse code).
modestringNo’encode’ (Text to Morse) or ‘decode’ (Morse to Text). Default: ‘encode’.
const res = await fetch('https://heavstal.com.ng/api/v1/morse', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
text: 'HELLO WORLD',
mode: 'encode'
})
});
const res = await fetch('https://heavstal.com.ng/api/v1/morse', {
method: 'POST',
headers: { 'x-api-key': 'YOUR_KEY' },
body: JSON.stringify({
text: '... --- ...',
mode: 'decode'
})
});
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"input": "HELLO WORLD",
"output": ".... . .-.. .-.. --- / .-- --- .-. .-.. -..",
"mode": "encode"
}
}