Base64 Encoder / Decoder
Encode teks ke Base64 atau decode Base64 kembali jadi teks.
POST /api/v1/base64- Versi API
- v1
- Skema output
- 1
Path endpoint selalu /v1. Angka skema di bawah menandai bentuk output tool ini dan berubah terpisah.
Bikin akun gratis →Parameter
| Parameter | Tipe | Wajib | Default |
|---|---|---|---|
| input | text | ya | — |
| mode | encode | decode | tidak | encode |
| variant | standard | urlsafe | tidak | 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"}'
Mengembalikan
"output": { "kind": "text", "value": "…" }
Memanggil endpoint sandbox same-origin, bukan /api/v1. Tanpa key, dibatasi 15 request per menit.
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
Kirim request untuk melihat response-nya.