Handlebars base64Decode
Handlebars base64Decode: turns a Base64 string back into readable text.
Next
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"}}rendersabc, as documented.{{base64Decode "@@@@" abortSendOnFail=false}}renders an empty string, as documented.
Show Next test script
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
- AMPscript
Base64Decode— does a similar job in AMPscript, with a different call shape - Official reference