Encode
The /encode endpoint encodes or decodes text in various formats.
gethttps://api.moxon.dev /v5/encode
Try itget/v5/encode
curl -X GET \ "https://api.moxon.dev/v5/encode"Send the request to see the response here.
methodstringrequiredEncoding method (see available methods below)
- base64encode
- base64decode
- urlencode
- urldecode
- morse
- unmorse
- rot13
- caesar
- binary
- unbinary
textstringrequiredText to encode or decode
shiftnumberoptionalShift value for Caesar cipher (default: 13)
| Method | Description |
|---|---|
base64encode | Encode to Base64 |
base64decode | Decode from Base64 |
urlencode | URL encode |
urldecode | URL decode |
morse | Text to Morse code |
unmorse | Morse code to Text |
rot13 | ROT-13 cipher |
caesar | Caesar cipher (requires shift) |
binary | Text to 8-bit binary |
unbinary | Binary to Text |
methodstringThe encoding method used
resultstringThe encoded or decoded output
If parameters are missing or invalid, the API will return an error:
- 400
A value is requiredThetextparameter is missing - 400
Please provide a valid method (?method={base64encode|base64decode|morse|…})Themethodparameter is missing or invalid - 400
Invalid Base64 inputThe text is not valid Base64 (forbase64decode) - 400
Invalid Morse codeThe text is not valid Morse code (forunmorse) - 400
Invalid binary inputThe text is not valid binary (forunbinary) - 400
Please provide a valid shift valueTheshiftvalue is missing or invalid (forcaesar)
Last updated on May 25, 2026