# base64Encode {#base64encode}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`base64Encode(X)`

## Arguments {#arguments}

**X** is a STRING scalar or vector.

## Details {#details}

Encode *X* to Base64 format.

**Return Value**: A STRING scalar or vector.

## Examples {#examples}

```
base64Encode(`hello) 
// output: aGVsbG8=

base64Encode(`hello`world) 
// output: ["aGVsbG8=","d29ybGQ="]

base64Encode("")
// output: ""
```

Related function: [base64Decode](base64Decode.md)

