Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Base64 Encode/Decode

AI-generated

Summary

Convert input data between Base64 and text or binary formats by encoding or decoding it according to configured options.

Inputs

  • toolCategory — Select the group of tools (default is Documents).
  • base64Mode (required) — Choose to encode or decode Base64 data.
  • base64EncodeInput — When encoding, specify if the input is text or binary (shown only if encoding).
  • text (required) — The text to encode or decode when operating on text input (required).
  • binaryPropertyName — When encoding from binary, the name of the binary property to encode (shown only if encoding from binary).
  • base64DecodeOutput — When decoding, choose whether output is text or binary (shown only if decoding).
  • outputBinaryProperty — When decoding to binary, the property name where decoded data is stored (shown only if decoding to binary).
  • maxInputSizeBytes — Maximum allowed input size in bytes for each item (defaults to 25,000,000 bytes).
  • outputJsonProperty — The JSON key where the Base64 encoding or decoding result is saved in the node output (defaults to 'base64').

Output shape

a list of items each with a JSON property containing the Base64 encoded or decoded result as text or a binary property containing binary data

The encoded or decoded result is stored in a JSON property by default or a binary property when decoding to binary. Input text or binary is processed per item. The maximum input size can be configured to prevent processing overly large inputs. Encoding can accept either text or binary input. Decoding outputs can be text or binary.

Examples

Example 1: Encode text to Base64

Set mode to 'Encode', input type to 'Text', provide the text to encode, and set an output JSON property for the Base64 string.

Example 2: Decode Base64 to binary

Set mode to 'Decode', choose output to 'Binary', specify the output binary property name, and provide the Base64 text input to decode.

Links

Discussion