Browse the docs

base64

Encodes text as base64.

Details #

base64(text) takes exactly one argument. The text is read as UTF-8 and the result is standard base64 with = padding, in one line.

Parameters #

Takes 1 argument. {{ base64(text) }}

Examples #

base64("hello")
→ aGVsbG8=
base64Decode(base64("round trip"))
→ round trip