--- title: "encode Base64()" slug: "string-base-64-encode" updated: 2026-08-17T06:15:18Z published: 2026-08-17T06:15:18Z canonical: "docs.lobstersoftware.com/string-base-64-encode" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # encode Base64() This function encodes a text using the Base64 encoding. First, the text is converted into a byte sequence using encoding **b** and then encoded using the Base64 encoding. ## Parameters | Parameter | Description | | --- | --- | | a | Text to be encoded. | | b | (optional) Character encoding to be used for reading in text **a**. Default: "8859_1". **NOTE:** Use the three dots to select a value. | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | Täxt | | VOR4dA== | | Täxt | ASCII | VD94dA== | | Täxt | Dummycharset | Function stops with an error. |