---
title: "Decode"
description: "Decode JSON, Base64, Base64 URL, hex, or decrypt."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/utility/decode"
---
# Decode

> Decode JSON, Base64, Base64 URL, hex, or decrypt.

<block-meta block="Yes" channels="Any" folder="basic/utility" group="Utility" groupTo="/build/workflows/blocks/utility" icon="i-lucide-unlock" pipe="Value" scope="Any" tool="No" type="utl.decode">



</block-meta>

**Decode** reverses [Encode](https://docs.vettero.com/build/workflows/blocks/utility/encode). Pick a **Decode type** that matches how the **Value** was produced (**Decrypt** for **Encrypt**).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Value
      </strong>
    </td>
    
    <td>
      Literal or variable to decode (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Decode type
      </strong>
    </td>
    
    <td>
      <strong>
        JSON
      </strong>
      
      , <strong>
        Base64
      </strong>
      
      , <strong>
        Base64 URL
      </strong>
      
      , <strong>
        Hex
      </strong>
      
      , or <strong>
        Decrypt
      </strong>
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after decoding
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). For **Base64**, **Base64 URL**, **Hex**, and **Decrypt**, that value is `text`.

**JSON** puts the parsed value on the pipe.

## Use case

- Parse a Base64 payload from an API response.
- Decrypt a value that was stored with **Encode → Encrypt**.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
