# Example: JWT Decoder, Base64, Hash and HMAC Toolkit

**Use case:** 

Decode JWTs without a network call (expiry, claims, warnings, optional HS256/384/512 check), Base64/Base64URL encode and decode, and MD5/SHA/SHA-3 hashes and HMAC. Pure compute.

## Input

```json
{
  "items": [
    "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
  ],
  "operation": "jwt_decode",
  "algorithm": "sha256",
  "outputEncoding": "hex",
  "secret": "<YOUR_SECRET>",
  "urlSafe": false,
  "referenceTime": "2026-10-22T10:00:00Z"
}
```

## Output

```json
{
  "index": {
    "label": "Index",
    "format": "integer"
  },
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "input": {
    "label": "Input",
    "format": "string"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "error": {
    "label": "Error",
    "format": "string"
  },
  "algorithm": {
    "label": "Algorithm",
    "format": "string"
  },
  "digest": {
    "label": "Digest",
    "format": "string"
  },
  "output": {
    "label": "Output",
    "format": "string"
  },
  "output_text": {
    "label": "Decoded text",
    "format": "string"
  },
  "expired": {
    "label": "Expired",
    "format": "boolean"
  },
  "signature_verified": {
    "label": "Signature verified",
    "format": "boolean"
  },
  "warnings": {
    "label": "Warnings",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The JWT Decoder, Base64, Hash and HMAC Toolkit Actor is ready to run with the inputs already set for "Example: JWT Decoder, Base64, Hash and HMAC Toolkit". [Sign up or log in](https://console.apify.com/create-task-from-example/bIYDcmKOhNEUa9z8i) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Example: JWT Decoder, Base64, Hash and HMAC Toolkit" task

The JWT Decoder, Base64, Hash and HMAC Toolkit Actor will start running based on the input automatically. You can also change all the input fields, like items, operation, and more, to match your specific use case.

### 3. Receive the "Example: JWT Decoder, Base64, Hash and HMAC Toolkit" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as index, operation, input, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Example: JWT Decoder, Base64, Hash and HMAC Toolkit" task via API](https://apify.com/firebrick_zamia/jwt-hash-encoding-toolkit.md).

## About this Actor

This example demonstrates how to use [JWT Decoder, Base64, Hash and HMAC Toolkit](https://apify.com/firebrick_zamia/jwt-hash-encoding-toolkit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/firebrick_zamia/jwt-hash-encoding-toolkit.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/firebrick_zamia/jwt-hash-encoding-toolkit.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
