BASE64.DECODE

BASE64.DECODE returns the decoded contents of a given base64 encoded string.

Function category: Base64

Syntax

BASE64.DECODE(arg1)

Arguments

Description

arg1

A based64 encoded string.

Example

Let's say we receive the following user information:

{
"data":{
"user":{
"authorization": "Bearer c2VjcmV0X3VzZXJuYW1lOnNlY3JldF9wYXNzd29yZA=="
}
}
}

If we want to decode that user token into a human-readable form, we would use the following function:

BASE64.DECODE(REPLACE(data.user.authorization, 0, 7, ""))

This returns the following:

secret_username:secret_password

Notes

To perform the opposite operation, base64 encoding a given string, use BASE64.ENCODE.