Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Base64 Encoder/Decoder API

Encode text to Base64 or decode Base64 to text (UTF-8).

POST /api/v1/tools/base64-encoder-decoderMCP base64_encoder_decoderDeveloper Tools

Encode text to Base64 or decode Base64 back to text, with full UTF-8 and URL-safe Base64 support. Runs in your browser, so nothing is uploaded.

Input

Send these as a JSON object. Unknown fields are rejected.

input
Text to encode, or Base64 to decode. (string, required)
mode
encode or decode. (string, one of encode, decode, required)
urlSafe
Use the URL-safe alphabet without padding when encoding. (boolean, default false)
curl https://pithlab.com/api/v1/tools/base64-encoder-decoder \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"input":"Hello, World!","mode":"encode"}'
Example response
{
  "ok": true,
  "result": {
    "output": "SGVsbG8sIFdvcmxkIQ=="
  }
}