# Base32.toBytes

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

## Imports

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

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

## Examples

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

const value = Base32.toBytes('qqsa0')
```

## Definition

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

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

## Parameters

### value

* **Type:** `string`

The Base32 encoded string.

## Return Type

The decoded byte array.

`Bytes.Bytes`
