# Base58.fromString

Encodes a string 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 } from 'ox'

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

## Definition

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

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

## Parameters

### value

* **Type:** `string`

The string to encode.

## Return Type

The Base58 encoded string.

`string`
