JWT Parser

Paste a JSON Web Token to decode its Header and Payload instantly. 100% client-side — nothing is uploaded or verified.

Paste a JWT (three parts separated by .)
Hint: decode only, no signature check — handy for inspecting claims.
Header
—
Payload
—

The three parts

A JWT is three Base64URL segments joined by dots: header.payload.signature.

SegmentContainsTypical fields
HeaderMetadata about the tokenalg, typ, sometimes kid
PayloadThe claimssub, iss, aud, exp, iat, plus custom fields
SignatureProof the first two parts were not alteredHMAC, 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.

The payload is readable by anyone

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.

How verification is supposed to work

  1. Split the token on the dots and decode the header to learn which algorithm was used.
  2. Check the algorithm against an allow-list. Do not trust the token's own alg field to decide how to verify it.
  3. Recompute or verify the signature using the key for that algorithm.
  4. Validate the claims: expiry (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.

The classic vulnerabilities

What each claim means and when to check it

ClaimMeaningWhen to validate
issIssuer — who created the tokenEvery request, against a known list
subSubject — the user or entityWhen loading the principal
audAudience — the intended recipientAlways; skipping it lets a token for one service work on another
expExpiry, in seconds since the epochAlways, and before doing any work
nbfNot before — the earliest valid momentAlways; guards against premature use
iatIssued atFor freshness policy and password-change cutoffs
jtiUnique token identifierWhen 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.

Related tools

Base64 encoder Hash generator JSON formatter

FAQ

Does it verify the signature?
No. This tool only base64url-decodes the Header and Payload to show their plaintext content. It does not validate the signature and does not need a key — verify signatures on your own server.
Is my token uploaded?
No. All decoding happens locally in your browser; the token is never sent to any server, so it is safe to paste test tokens that contain sensitive claims.
Can it detect expiry?
Yes. If the Payload contains time fields like exp / iat / nbf (Unix seconds), it shows the readable local time and whether the token has expired.