# Base58.fromBytes

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

## Imports

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

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

## Examples

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

const value = Base58.fromBytes(
  Bytes.fromString('Hello World!')
)
// @log: '2NEpo7TZRRrLZSi2U'
```

## Definition

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

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

## Parameters

### value

* **Type:** `Bytes.Bytes`

The byte array to encode.

## Return Type

The Base58 encoded string.

`string`
