Skip to main content

Decode Base64 string (string.base64_decode)

Declaration

data = string.base64_decode(b64)

Parameters

  • b64
    string. Base64-encoded text.

Returns

  • data
    string. Decoded string (or binary data).

Description

Inverse of string.base64_encode. Convert Base64 text back to string (or binary data).

Example

At the end of this chapter