Base64 Encode/Decode API
Encode and decode Base64 strings online. Supports UTF-8 text and binary data. Fast, secure, client-side processing.
The Base64 Encode/Decode is also available as a free REST API. Send a POST request with a JSON body to https://dot.tools/api/tools/base64 — no authentication, no API key, CORS enabled. Successful calls return { "ok": true, "result": { … } }; failures return HTTP 400 or 422 with an error body.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
mode | "encode" | "decode" | required | Whether to encode raw text to Base64 or decode Base64 back to text. |
input | string | required | The raw text to encode, or the Base64 string to decode. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
output | string | required | The encoded Base64 string, or the decoded raw text. |
Example request
curl -X POST https://dot.tools/api/tools/base64 \
-H 'Content-Type: application/json' \
-d '{
"mode": "encode",
"input": "{\n \"name\": \"Bitgate Tools\",\n \"version\": \"2.0.0\",\n \"description\": \"Developer utility vault\",\n \"features\": [\"base64\", \"jwt\", \"json\", \"hashing\"],\n \"clientSide\": true\n}"
}'Sample response
{
"ok": true,
"result": {
"output": "ewogICJuYW1lIjogIkJpdGdhdGUgVG9vbHMiLAogICJ2ZXJzaW9uIjogIjIuMC4wIiwKICAiZGVzY3JpcHRpb24iOiAiRGV2ZWxvcGVyIHV0aWxpdHkgdmF1bHQiLAogICJmZWF0dXJlcyI6IFsiYmFzZTY0IiwgImp3dCIsICJqc29uIiwgImhhc2hpbmciXSwKICAiY2xpZW50U2lkZSI6IHRydWUKfQ=="
}
}Use the free Base64 Encode/Decode in your browser, read the Base64 Encode/Decode guide, or import the full OpenAPI specification.