# Base64.toString

Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to a string.

## Imports

:::code-group
```ts [Named]
import { Base64 } from 'ox'
```

```ts [Entrypoint]
import * as Base64 from 'ox/Base64'
```
:::

## Examples

```ts twoslash
import { Base64 } from 'ox'

const value = Base64.toString('aGVsbG8gd29ybGQ=')
// @log: 'hello world'
```

## Definition

```ts
function toString(
  value: string,
): string
```

**Source:** [src/core/Base64.ts](https://github.com/wevm/ox/blob/main/src/core/Base64.ts#L438)

## Parameters

### value

* **Type:** `string`

The string, hex value, or byte array to encode.

## Return Type

The Base64 decoded string.

`string`
