# Hex to PEM

Converts a hexadecimal DER (Distinguished Encoding Rules) string into PEM (Privacy Enhanced Mail) format. Hex to PEM lives in the **Cryptography** category of the `fx` menu.

## Parameters

| Parameter     | Type   | Required | Default       | Description                                            |
| ------------- | ------ | -------- | ------------- | ------------------------------------------------------ |
| Input         | string | yes      | —             | Value to transform. Previous step output or a literal. |
| Header string | string | no       | `CERTIFICATE` | Argument value for this operation.                     |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                              |
| -------- | ---------------------------------------- |
| `string` | Result of the Hex to PEM transformation. |

## Example

<details>
<summary>Run Hex to PEM</summary>

Converts a hexadecimal DER (Distinguished Encoding Rules) string into PEM (Privacy Enhanced Mail) format. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Header string** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
