---
schema_version: "1"
id: 00a9b6a3e78e973b6326ca5cfb7650623ca948ec4adf6733e86f3cd3be74b04e
title: fromHex
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-binaries-functions-fromhex.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-binaries-functions-fromhex
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9127e1bbd9759e9f99ae85cf7af47a2bc6a8d699914c4b236015e5e0b0b74756
description: MuleSoft Documentation Site
release: "2.7"
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"}
}
```