base64_decode_tostring()

Decodes a base64 string to a UTF-8 string.

Deprecated aliases: base64_decodestring()

Syntax

base64_decode_tostring(String)

Parameters

Name Type Required Description
String string Input string to be decoded from base64 to UTF-8 string.

Returns

Returns UTF-8 string decoded from base64 string.

Example

print Quine=base64_decode_tostring("S3VzdG8=")
Quine
Kusto

Trying to decode a base64 string that was generated from invalid UTF-8 encoding will return null:

print Empty=base64_decode_tostring("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")
Empty