# Base58.toBytes

Decodes a Base58-encoded string to a [`Bytes.Bytes`](/api/Bytes/types#bytes).

## Imports

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

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

## Examples

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

const value = Base58.toBytes('2NEpo7TZRRrLZSi2U')
// @log: Uint8Array [ 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33 ]
```

## Definition

```ts
function toBytes(
  value: string,
): Bytes.Bytes
```

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

## Parameters

### value

* **Type:** `string`

The Base58 encoded string.

## Return Type

The decoded byte array.

`Bytes.Bytes`
