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

# Convert Encoding

> Decode text from one byte encoding and encode it as another.

**Convert Encoding** first interprets **Input Text** using its declared source
encoding, then emits the same bytes in the target encoding.

## Inputs

| Input               | Type   | Required | Description                                   |
| ------------------- | ------ | -------- | --------------------------------------------- |
| **Input Text**      | String | Yes      | Text or encoded byte representation.          |
| **Input Encoding**  | String | No       | How to decode the input. Defaults to UTF-8.   |
| **Output Encoding** | String | No       | How to encode the result. Defaults to Base64. |

Supported options are UTF-8, Base64, Base64 URL, Hex, ASCII, UTF-16LE, UCS-2,
Latin-1, and Binary.

## Output

| Output             | Type   | Description                  |
| ------------------ | ------ | ---------------------------- |
| **Converted Text** | String | Text in the target encoding. |

For example, UTF-8 text `hello` converted to Base64 returns `aGVsbG8=`.

<Warning>
  Set **Input Encoding** to the format the input already uses. Choosing Base64
  for ordinary text attempts to decode that text as Base64 rather than encode
  it.
</Warning>
