Skip to content

Decodes JWT headers, payloads, and claims without verification, flagging security risks along the way.

CCM score
65 of 100
skills.sh installs
767
GitHub stars
25
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers splitting a token into header, payload, and signature, then base64url-decoding and parsing the first two as JSON
  • Converts exp, nbf, and iat to UTC timestamps and marks expired tokens with how long ago they lapsed
  • Flags alg: none, sensitive data in claims, missing exp, and jku, jwk, or x5u header keys that could redirect key lookups
  • Designed for inspecting raw tokens; signature checks are handled separately by jwt-validate

Install

$ npx -y skills add jsonwebtoken/jwt-skills --skill jwt-decode -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

JWT Decode

Decode a JWT by base64url-decoding its header and payload. Does NOT verify signatures — use jwt-validate for that.

Steps

  1. Split the token on . into three parts (header, payload, signature).
  2. Base64url-decode and parse parts 1 and 2 as JSON.
  3. Display header, payload (with all claims), and the raw signature string.
  4. For exp, nbf, iat — show both the Unix timestamp and human-readable UTC. If exp is past, note expired and by how long.
  5. Run security checks (see below).

Output Format

## Header
{ "alg": "RS256", "typ": "JWT", "kid": "abc123" }

## Payload
{ "iss": "https://auth.example.com/", "sub": "user|12345", "exp": 1735689600 }

exp: 2025-01-01T00:00:00Z — EXPIRED (3 months ago)
iat: 2024-12-31T00:00:00Z

## Signature
Algorithm: RS256 | Signature: [base64url string]
(Not verified — use jwt-validate to verify)

Security Checks

Flag these prominently when found:

Details

Repository
github.com/jsonwebtoken/jwt-skills
Categories
Security, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the jwt-decode skill do?

The jwt-decode skill decodes and inspects JSON Web Tokens without verifying them. It base64url-decodes the header and payload, shows the claims, and converts exp, nbf and iat timestamps to readable UTC dates. It does not check signatures; the jwt-validate skill handles that.

How do I install the jwt-decode skill?

Run npx -y skills add jsonwebtoken/jwt-skills --skill jwt-decode -y in your project. Once installed, the agent can decode a JWT string you paste into the conversation.

Which security problems does jwt-decode flag?

It warns when a token uses alg none, since such a token is unsigned and cannot be trusted. It also flags sensitive data like passwords or API keys in claims, a missing exp claim, and jku, jwk or x5u header fields that could point to attacker-controlled keys.

Where does jwt-decode stand in the Security category?

jwt-decode is listed in the Security category on Claude Marketplaces, alongside azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one. It focuses on revealing token contents, so it does not confirm whether a token is authentic.

More from jsonwebtoken/jwt-skills

All 3

Similar to Jwt Decode

More Security