Base64Encode
→ stringEncodes plain text to a Base64 string. Single-argument form requiring Platform.Load. For charset control use Platform.Function.Base64Encode().
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Base64Encode(string)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
string |
string | Yes | Text to encode |
Description
Encodes a plain text string to Base64. 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.Base64Encode(string, charset) when charset control is needed.
Example
Platform.Load("core", "1.1.5");
var decoded = 'Convert to Base64';
var encoded = Base64Encode(decoded);
Write(encoded); // "Q29udmVydCB0byBCYXNlNjQ="