# Base32.fromBytes

Encodes a [`Bytes.Bytes`](/api/Bytes/types#bytes) value to a Base32-encoded string (using the BIP-173 bech32 alphabet).

## Imports

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

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

## Examples

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

const value = Base32.fromBytes(
  new Uint8Array([0x00, 0xff, 0x00])
)
```

## Definition

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

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

## Parameters

### value

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

The byte array to encode.

## Return Type

The Base32 encoded string.

`string`
