Base64Decode
→ stringDecodes a Base64 encoded string to plain text. Single-argument form requiring Platform.Load. For charset control use Platform.Function.Base64Decode().
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Base64Decode(encodedString)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
encodedString |
string | Yes | Base64 encoded string to decode |
Description
Decodes a Base64 encoded string back to plain text. Requires Platform.Load("core", "1.1.5") before use.
This is the single-argument bare-name form. It does not support a charset parameter — use Platform.Function.Base64Decode(encodedString, charset) when charset control is needed.
Example
Platform.Load("core", "1.1.5");
var encoded = 'VGhpcyB3YXMgYSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcu';
var decoded = Base64Decode(encoded);
Write(decoded); // "This was a Base64 encoded string."