AMPscript
Base 64 Decode
Base 64 Encode
Validate Your Server-Side JavaScript using WSProxy
Encodes plain text to a Base64 encoded string
Base64encode(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Text to encode |
This sample code performs a Base64 encoding on a plain text string:
1var decoded = 'Convert to Base64';
2var encoded = Base64Encode(decoded); // "Q29udmVydCB0byBCYXNlNjQ="