WORKFLOW · LOCAL PROCESSING

Debug a JWT: Decode Claims, Check Expiration and Verify Its Signature

A token that decodes successfully is not necessarily valid. When debugging login or API authentication failures, separate parsing, time checks and signature verification, then check your application's issuer, audience and authorization rules.

Decode the header and payload

Paste the token into the JWT decoder and inspect alg, kid and the claims required by your application. For parsing failures, check for a copied Bearer prefix, whitespace or a value that is not a three-part signed JWT.

How to interpret it: Anyone can decode the header and payload. This step does not verify a signature, so the identity and roles are not yet trustworthy.

Open JWT Decoder

Inspect exp, nbf and the time units

Use the timestamp decoder to interpret exp or nbf as Unix seconds in UTC. Check for milliseconds mistaken for seconds and compare the server clock with the verifier's allowed clock tolerance. iat is the issued-at time, not the expiration time.

How to interpret it: A token before nbf or past exp may be rejected. The application's actual validation policy determines the result.

Open Forensic Timestamp Decoder

Verify using a trusted key

Use an already trusted secret or public key in the JWT signature verifier and select the algorithm according to the issuer's documentation. A key or URL included in the token is not automatically a trusted source.

How to interpret it: A valid signature still requires issuer, audience, time and authorization checks. If a real token was exposed, follow the system's revocation or rotation process.

Open JWT Signature Verifier