Actions17
Base64 Encoder/Decoder
AI-generatedSummary
Encode text or binary data into Base64 format, or decode a Base64 string back into text or binary data.
Inputs
- Mode (required) — Choose 'Encode' to convert input to Base64, or 'Decode' to convert Base64 back to original form.
- Source Type (required) — When encoding, select whether the input is a text string or binary file data.
- Target Type (required) — When decoding, select whether the output should be text or binary file.
- Value (required) — For encoding text or decoding Base64 to text, provide the input string value.
- Binary Property Name — When encoding binary data or decoding to binary, specify the name of the binary property containing the data (default 'data').
Output shape
A single record per input item, containing either a JSON property 'result' with the encoded/decoded Base64 text, or a binary property containing the decoded or encoded binary file data.
- When encoding text, outputs JSON with property 'result' as Base64 string.
- When encoding binary, outputs JSON with 'result' as Base64 string from binary input.
- When decoding to text, outputs JSON with property 'result' as decoded UTF-8 string.
- When decoding to binary, outputs both JSON success confirmation and binary property with decoded file data.
- Errors are raised for invalid binary property references or invalid Base64 input.