> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: Base64Encode

> Encode a byte array into Base64 format for safe text transmission. Use BASE64ENCODE for encoding binary data in Integrate.io ETL pipelines.

## Description

Encodes a byte array argument into a Base64 byte array.

## Syntax

`Base64Encode(bytearray_expression[, chunked])`

## Arguments

*bytearray\_expression* - an expression that represents a bytearray value to be encoded

*chunked (optional)* - if true, the output will be chunked into 76 characters blocks (boolean, default false).

## Examples

`Base64Encode(GetBytes('hello world'))` returns the byte array of the Base 64 encoded string 'aGVsbG8gd29ybGQ='.

## Return value datatype

Bytearray

## Impact of null value

If input is null, returns null.
