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

# decodeBase64

```ts theme={null}
function decodeBase64(value): Uint8Array
```

Decodes the base-64 encoded `value`.

## Parameters

| Parameter | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `value`   | `string` | The base-64 encoded value. |

## Returns

`Uint8Array`

The decoded binary data.

## Example

```ts theme={null}
// The decoded value is always binary data...
result = decodeBase64('SGVsbG8gV29ybGQhIQ==');

// ...use toUtf8String to convert it to a string.
toUtf8String(result);

// Decoding binary data
decodeBase64('EjQ=');
```

## Source

[encoding/base64.ts:30](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/encoding/base64.ts#L30)
