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

## [](#fromhex1)fromHex(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"}
}
```