# Base58.fromHex

Encodes a [`Hex.Hex`](/api/Hex/types#hex) 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, Hex } from 'ox'

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

## Definition

```ts
function fromHex(
  value: Hex.Hex,
): string
```

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

## Parameters

### value

* **Type:** `Hex.Hex`

The byte array to encode.

## Return Type

The Base58 encoded string.

`string`
