encode_base64
Encode text to Base64 for safe transport in JSON, URLs, or email. Decode Base64 back to original text.
Instructions
Encode or decode text using Base64.
Use this when you need to encode binary data for text-safe transport
(e.g., in JSON, URLs, or email) or decode previously encoded Base64 data.
Parameters:
text — The string to encode or decode (required).
mode — Operation: "encode" (text → Base64) or "decode" (Base64 → text)
(default: "encode").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mode | No | encode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |