Skip to main content

Base64 Decode

Command description​

Decode Base64 content.

Command Input Parameters​

input parametersInput parameter typeDescription
Content to DecodeanyPure Base64 content to decode, usually str or bytes
Output TextboolWhen True, returns a string; when False, returns bytes

Command Output Parameters​

Output parametersOutput parameter typeDescription
Encoded Contentstr or bytesDecoded content. The parameter name is retained for workflow-schema compatibility

AI Workflow Generation Notes​

  • If Content to Decode is bytes, it is decoded directly. Other values are converted to strings and then encoded as ASCII, so they must contain only Base64 characters.
  • Input must be a pure Base64 string or byte sequence without a Data URL prefix such as data:image/png;base64,.
  • For an image Data URL, remove everything through the first comma and keep only the Base64 content.
  • Set Output Text to False for binary content such as images and files. Set it to True only when the decoded result is UTF-8 text.