Free Online JWT Token Decoder & Claims Inspector
Decode, inspect, and verify JSON Web Tokens (RFC 7519) with instant claim translation, live token expiration countdown, security vulnerability auditing (alg: none, weak secrets, sensitive keys), and client-side HMAC signature verification.
HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)
// Header will be displayed here
| Claim Key | Value | Human-Readable Description |
|---|---|---|
| No token decoded yet. Paste a token on the left or click "Load Sample" to begin. | ||
// Payload claims will be displayed here
Complete Guide to JSON Web Tokens (JWT) & Claims
1. The Header
The header specifies the token type (usually "JWT") and the cryptographic signing algorithm (such as HS256, RS256, or ES256). It may also include key identifiers (kid) pointing to public keys in JWKS endpoints.
2. The Payload (Claims)
The payload contains assertions and claims about an entity (user, tenant, application) and metadata. Standard claims (iss, sub, aud, exp) coexist with custom authorization claims such as enterprise role groups and OAuth2 scopes.
3. The Signature
The signature is created by encoding the header and payload, joining them with a period, and signing the hash with a private key or symmetric secret. It ensures the token has not been tampered with in transit.
Crucial Difference: Encoding vs. Encryption
A standard JWT is encoded with Base64URL, NOT encrypted (unless using JWE - JSON Web Encryption). Anyone who intercepts a plain JWT can decode and read all claims inside the payload. Never store passwords, database connection strings, social security numbers, or sensitive credentials inside standard JWT claims.
Frequently Asked Questions
alg: "none" vulnerability occurs when a server's JWT validation library blindly accepts tokens whose header specifies no algorithm and omits the signature segment. An attacker can craft a token with administrative privileges (e.g. role: "admin") without knowing the secret key. Our security audit panel immediately flags any token where the algorithm is set to none or the signature is missing.
window.crypto.subtle). For symmetric HMAC algorithms (HS256, HS384, HS512), this tool imports your secret key into your browser's cryptographic engine, computes the HMAC digest of base64url(header) + "." + base64url(payload), and verifies if it matches the token's signature byte-for-byte.
http://schemas.microsoft.com/ws/2008/06/identity/claims/role for roles and http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier for user ID). Our Claims Inspector automatically identifies these long URIs and displays friendly, readable badges and definitions.