base64decode

Decodes Base64 data.

Syntax

Signature
base64decode(Text: string) -> string

Aliases

  • base64_decode
  • base64.decode
  • crypt.base64decode
  • crypt.base64_decode
  • crypt.base64.decode

Parameters

ParameterTypeDescription
TextstringBase64 text to decode.

Returns

TypeDescription
stringDecoded bytes.

Notes

The decoder skips characters outside the Base64 alphabet and stops at the first = character. It does not validate padding or reject malformed text.

Example

Luau
local Result = base64decode("hello")
print(Result)