encoding_decoding_base64
Encode UTF-8 text to standard Base64 (RFC 4648) with padding, or decode Base64 back to UTF-8. Ignores whitespace in decode input and validates payload.
Instructions
Base64 Encoder and Decoder. Convert UTF-8 text to standard Base64 (RFC 4648, +/ alphabet, = padding) or decode Base64 back to text. Whitespace in decode input is ignored and the payload is validated before decoding. This handles text only — to Base64-encode an uploaded file or a data URI use file_base64_file_encoder, for images use webdev_base64_image_encoder, and for Base32/Base58/Base85 use encoding_basex or encoding_ascii85. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/min, 500/hour, 2000/day for anonymous callers). Returns the transformed string alongside the echoed input and operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The payload to process. For encode, the plain UTF-8 text to convert to Base64; for decode, the Base64 string to convert back to text (surrounding whitespace and newlines are stripped). Must not be blank. | |
| operation | Yes | Direction of conversion: 'encode' turns text into Base64; 'decode' turns valid Base64 back into text. Invalid Base64 on decode returns an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the conversion succeeded. | |
| input | No | The original text submitted, echoed back. | |
| operation | No | The direction requested; either encode or decode. | |
| result | No | The converted output — Base64 for encode, decoded UTF-8 text for decode. |