Paste a JSON Web Token to decode its Header and Payload instantly. 100% client-side — nothing is uploaded or verified.
—
—
A JWT is three Base64URL segments joined by dots: header.payload.signature.
| Segment | Contains | Typical fields |
|---|---|---|
| Header | Metadata about the token | alg, typ, sometimes kid |
| Payload | The claims | sub, iss, aud, exp, iat, plus custom fields |
| Signature | Proof the first two parts were not altered | HMAC, or an RSA/ECDSA signature |
The signature is computed over the exact encoded header and payload strings. Change one character anywhere in either segment and the signature no longer matches.
This is the most consequential misunderstanding about JWTs. Base64URL is an encoding, not encryption — anyone holding the token can decode the payload in a second. A JWT guarantees integrity (the contents have not been tampered with), not confidentiality. Never put a password, an internal identifier you would not show a user, or any secret in the claims.
alg field to decide how to verify it.exp), not-before (nbf), issuer, and audience.Decoding a token to read it, which is what a client-side decoder does, performs none of these steps. It is a debugging aid, never an authorisation check.
alg: none. A token that declares no signature at all. A server that honours the header's algorithm accepts anything.exp is never verified.| Claim | Meaning | When to validate |
|---|---|---|
iss | Issuer — who created the token | Every request, against a known list |
sub | Subject — the user or entity | When loading the principal |
aud | Audience — the intended recipient | Always; skipping it lets a token for one service work on another |
exp | Expiry, in seconds since the epoch | Always, and before doing any work |
nbf | Not before — the earliest valid moment | Always; guards against premature use |
iat | Issued at | For freshness policy and password-change cutoffs |
jti | Unique token identifier | When you need replay protection or revocation |
Two of these carry more weight than their one-line descriptions suggest. aud is what stops a token minted for the mobile app from being accepted by the admin API — omit the check and the two share one key space. jti is the only claim that makes revocation possible at all: a signed token is otherwise valid until it expires, so short lifetimes plus a stored list of revoked jti values is the usual compromise.
Clock handling is the quiet failure mode. exp and nbf are compared against the validating server's clock, so a few seconds of skew between issuer and validator rejects tokens that are valid, or accepts ones that just expired. Allow a small leeway — commonly 30 to 60 seconds — rather than requiring exact agreement.