> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# decodeBytes32

> **注意**: このページはまだ日本語に翻訳されていません。以下は英語の原文です。

```ts theme={null}
function decodeBytes32(_bytes): string
```

Decodes a Bytes32-encoded string into a regular string. This is used to decode ABI-encoded data.

## Parameters

| Parameter | Type                                                  | Description               |
| :-------- | :---------------------------------------------------- | :------------------------ |
| `_bytes`  | [`BytesLike`](/jp/sdk/content/type-aliases/BytesLike) | The Bytes32-encoded data. |

## Returns

`string`

The decoded string.

## Throws

If the input is not exactly 32 bytes long or lacks a null terminator.

## Source

[encoding/bytes32.ts:41](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/encoding/bytes32.ts#L41)
