---
schema_version: "1"
id: 73269b17a7bc3b76e3ab370c806bff179579d169b14e8a2e4a83cbab2c8d50a6
title: fromHex
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-binaries-functions-fromhex.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-fromhex
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5d637bd3d80850e6fbac5b58c69e6e72ff87b7caeb34482a7369189e1b98f6be
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# fromHex

## [](#fromhex1)fromHex(hexString: String): Binary

16 進文字列をバイナリに変換します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>hexString</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">変換する 16 進文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、16 進文字列を「Mule」に変換します。 返される型を見やすくするため、データは ​`application/dw`​ 形式で出力されます。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::Binaries
output application/dw
---
{ "hexToBinary": fromHex("4D756C65") }
```

#### [](#出力)出力

```JSON
{
   hexToBinary: "TXVsZQ==" as Binary {base: "64"}
}
```