Runtime verified Test scripts included

Turns a Base64 string back into readable text.

Syntax

{{base64Decode encoded [...options]}}

Returns string.

Parameters

Name Type Required Description
encoded string Yes The Base64 text to decode.
options any No, repeatable Named arguments: characterEncoding (ASCII, UTF-7, UTF-8, UTF-16 or UTF-32) and abortSendOnFail (true stops the send when decoding fails; false yields an empty string instead).

Example

Tested in a Marketing Cloud Next email on 2026-11-22:

  • {{base64Decode "YWJj"}} renders abc, as documented.
  • {{base64Decode "@@@@" abortSendOnFail=false}} renders an empty string, as documented.
Show Next test script
<!-- Marketing Cloud Next test script for the base64Decode helper. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[abc] got=[{{base64Decode "YWJj"}}]</p>
<p>c2 expect=[] got=[{{base64Decode "@@@@" abortSendOnFail=false}}]</p>

Marketing Cloud Next

Works as documented

Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.

See also