> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/base64-decode.md).

# base64-decode()

```markup
string base64-decode(string input [, boolean strict])
```

Decodes the Base64 encoded data given in the `input` parameter.

If the optional `strict` parameter equals `true()`, the function will return `false()` if the input contains characters that are not part of the Base64 alphabet. Otherwise invalid characters will be silently dropped.
