# From base32

## Description

This operation is used to decode data that has been encoded in Base32 format back into its original form.&#x20;

Base32 is an encoding scheme that represents binary data using 32 ASCII characters. It’s commonly used in systems where case-insensitivity is beneficial or where limited character sets are required, such as Google Authenticator secrets (TOTP/HOTP), QR codes, DNS, or URLs.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

![](https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FEAiKqmMTtuQqEcB1ARyA%2Fimage.png?alt=media\&token=4af58dc3-64ff-4780-aaff-8e73704304ac) - The Base32 strings you want to decode.

### Output data

![](https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FwTb2oTb0LEAHXBbhwEP9%2Fimage.png?alt=media\&token=9b224990-9f87-48b5-8995-5e7e62e71a79) - Decoded strings.

***

## Parameters

These are the parameters you need to configure to use this operation (mandatory parameters are marked with a <mark style="color:red;">**\***</mark>):

<details>

<summary>Alphabet<mark style="color:red;"><strong>*</strong></mark></summary>

This defines which character set is used for decoding. This is crucial because **Base32 has multiple variants**, and decoding must match the correct alphabet to yield meaningful results. Choose between:

* **RFC4648 (Standard)** - This is the default Base32 encoding system. This is the character set:&#x20;

```
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z 2 3 4 5 6 7
```

* **Hex Extended** - Designed to preserve numeric sorting order when Base32 is used. It starts with digits `0–9`, then continues with letters `A–V` — not the same order as standard. This is the character set:&#x20;

```
0 1 2 3 4 5 6 7 8 9 A B C D E F
G H I J K L M N O P Q R S T U V
```

</details>

<details>

<summary>Remove non-alphabet chars<mark style="color:red;"><strong>*</strong></mark></summary>

When enabled, it removes any characters from the input that aren't part of the valid Base32 alphabet (depending on whether you select Standard or Hex).

</details>

***

## Example

Suppose you want to **decode** a series of events in the **Base32** encoding scheme:

1. In your Pipeline, open the required [Action](https://docs.onum.com/the-workspace/pipelines/actions) configuration and select the input **Field**.
2. In the **Operation** field, choose **From Base32**.
3. Set **Alphabet** to **RFC4648 (Standard)**.
4. Set **Remove non-alphabet chars** to **true**.
5. Give your **Output field** a name and click **Save**. The values in your input field will be decoded. For example:

```
Input data - "NBSWY3DP,!"

Alphabet - RFC4648 (Standard)

Remove non-alphabet chars - true

Output data - "hello"
```

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onum.com/the-workspace/pipelines/actions/transformation/field-transformation/field-transformation-operations/data-format/from-base32.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
