---
title: "JWT Decode"
description: "Decode a JSON web token without verifying the signature."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/crypto/jwt-decode"
---
# JWT Decode

> Decode a JSON web token without verifying the signature.

<block-meta block="Yes" channels="Any" folder="crypto" group="Crypto" groupTo="/build/workflows/blocks/crypto" icon="i-lucide-scan-eye" pipe="Value" scope="Any" tool="Yes" type="crypto.jwt.decode">



</block-meta>

**JWT Decode** reads the token parts **without** checking the signature. Treat the result as untrusted. Use [JWT Verify](https://docs.vettero.com/build/workflows/blocks/crypto/jwt-verify) when the token must be authentic.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Token
      </strong>
    </td>
    
    <td>
      Compact JWT (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Return additional info
      </strong>
    </td>
    
    <td>
      Off: payload only. On: header, payload, and signature
    </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>
  
  <tr>
    <td>
      <strong>
        Error
      </strong>
    </td>
    
    <td>
      Catchable failures: missing token (<code>
        MISSING_VALUE
      </code>
      
      ) or not a JWT (<code>
        JWT_MALFORMED
      </code>
      
      )
    </td>
  </tr>
</tbody>
</table>

Connect [Branch errors](https://docs.vettero.com/build/workflows/blocks/error/branch) to **Error** to split those codes.

## Pipe schema

The pipe is the payload object, or header + payload + signature when **Return additional info** is on.

## Use case

- Inspect claims while debugging a flow.
- Read a `kid` from the header so you can pick a key, then **JWT Verify**.

<block-page-nav>



</block-page-nav>


## Sitemap

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