Skip to content

base64Decode

Decodes a Base64 encoded string.

Type: transform

Parameters

  • input (unknown): The Base64 encoded string to decode.

Returns

Type: string

The decoded string, or empty string if input is not a string.

Examples

javascript
base64Decode("aGVsbG8=") // "hello"
javascript
"aGVsbG8gd29ybGQ="|base64Decode // "hello world"
javascript
base64Decode("dGVzdA==") // "test"

Released under the MIT License.