Base64Decode

Overview

Decodes a Base64 encoded string to a plain text string

Syntax

Base64Decode(1)

Function Properties

Ordinal Type Description
1 string Required Base64 encoded string to decode

Example

This sample code takes a Base64 encoded string passed to the function and returns a plain text string.

var encoded = 'VGhpcyB3YXMgYSBCYXNlNjQgZW5jb2RlZCBzdHJpbmcu';
var decoded = Base64Decode(encoded); // "This was a Base64 encoded string."
Last Updated: Jun 8, 2021