Jwt Decode
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
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, andiatto UTC timestamps and marks expired tokens with how long ago they lapsed - Flags
alg: none, sensitive data in claims, missingexp, andjku,jwk, orx5uheader 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 -yInstalls 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
- Split the token on
.into three parts (header, payload, signature). - Base64url-decode and parse parts 1 and 2 as JSON.
- Display header, payload (with all claims), and the raw signature string.
- For
exp,nbf,iat— show both the Unix timestamp and human-readable UTC. Ifexpis past, note expired and by how long. - 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 3Similar to Jwt Decode
More Securityjwt-validatejsonwebtoken/jwt-skills677 installsVerifies JWT signatures and claims with HMAC, RSA, or ECDSA keys, PEM files, or JWKS endpoints.
supabase-extract-jwtyoanbernabeu/supabase-pentest-skills510 installsExtracts and decodes Supabase JWTs from client code, cookies, and storage, flagging hardcoded user tokens.
jwt-securitymindrally/skills1.6K installsGuidelines for JWT authentication covering token creation, validation, storage, and refresh, with concrete security rules.
api-auth-and-jwt-abuseyaklang/hack-skills4.2K installsAPI token triage and attack playbook covering JWT forgery, header spoofing, and rate-limit bypass families.
jwt-encodejsonwebtoken/jwt-skills657 installsGenerates and signs test JWTs with HMAC, RSA, or ECDSA while keeping secrets out of shell history.
jwt-oauth-token-attacksyaklang/hack-skills4.2K installsCatalog summary of JWT and OAuth 2.0 token attack techniques for authentication testing.