## encodeBase64() function

Encodes a base64 string. Handles both browser and Node environments. Supports Unicode characters.

**Signature:**

```typescript
export declare function encodeBase64(data: string): string;
```

## Parameters

| Parameter | Type   | Description                     |
|-----------|--------|---------------------------------|
| data      | string | The unencoded input string.     |

**Returns:**

string

- [encodeBase64() function](/content/docs/sdk/core.encodebase64#encodebase64-function/index.html)
- [Parameters](/content/docs/sdk/core.encodebase64#parameters/index.html)
