jwt-decode · v1

JWT Decoder

Decode JWT header and payload locally and show expiry information.

Run now REST API / MCP Manifest

Sample input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiZXhwIjoxNzAwMDAwMDAwfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

API / MCP call

curl -X POST https://cn.toolkit.fun/api/v1/t/jwt-decode \
  -H "Authorization: Bearer tk_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"...","params":{}}'

MCP server: https://cn.toolkit.fun/api/mcp

Usage and examples

Paste a JWT and run to inspect its header and payload. This only decodes; it does not verify signatures. Claims and expiry hints do not establish trust. The example is an unsigned demonstration token, unsuitable for authentication.

Example 1

Input
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJkZW1vIn0.
Parameters
{}
Expected output
header.alg	none
header.typ	JWT
sub	demo

Shortest path for an agent

Read the manifest first, then call the same run contract used by the web UI. The input, output, permissions, and receipt stay consistent across REST and MCP.

Manifest: https://cn.toolkit.fun/api/v1/registry/tools/jwt-decode/manifest
REST: POST https://cn.toolkit.fun/api/v1/t/jwt-decode
MCP: https://cn.toolkit.fun/api/mcp

Who it is for

Use this tool directly when you need JWT Decoder, want to chain it into a workflow, or want to expose it to an agent over REST API or MCP. This page carries the sample, call syntax, manifest, and version so search engines and generative retrieval can describe the tool accurately.

Notes

Decode JWT header and payload locally and show expiry information.

Frequently asked questions

What does JWT Decoder do?

Decode JWT header and payload locally and show expiry information.

How do I use JWT Decoder online?

Click “Open workbench” to open JWT Decoder, provide your input, and run the tool.

What input and output does JWT Decoder use?

Declared input type: text. Declared output type: key-value.