Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text.
POST /api/v1/base64- API version
- v1
- Output schema
- 1
The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.
Create a free account →Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
| input | text | yes | — |
| mode | encode | decode | no | encode |
| variant | standard | urlsafe | no | standard |
Request
curl -X POST https://sinikoding.dev/api/v1/base64 \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"…","mode":"encode","variant":"standard"}'
Returns
"output": { "kind": "text", "value": "…" }
Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.
Request
curl -X POST https://sinikoding.dev/api/v1/base64 \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"","mode":"encode","variant":"standard"}'
Response
Send a request to see the response.