How do I decode a JWT?
Paste the token and it is decoded instantly. A JSON Web Token has three parts separated by dots: header, payload and signature. The first two parts are base64url-encoded JSON, which the decoder turns back into readable, formatted JSON. The built-in example is the classic demonstration token: its header says the algorithm is HS256 and the type is JWT, and its payload carries the subject 1234567890, the name John Doe, and an issued-at timestamp of 1516239022, which is 18 January 2018, 01:30:22 UTC. The signature part (43 characters here) is shown by length only. Tokens with the wrong number of parts, invalid base64url, or non-JSON content produce a clear error naming the problem.
What claims does a JWT contain?
The payload holds claims: statements about the user and the token. Seven are registered in the JWT standard: iss (issuer, who created the token), sub (subject, usually the user ID), aud (audience, who may accept it), exp (expiry time), nbf (not valid before), iat (issued at) and jti (unique token ID). The decoder lists whichever of these are present, converting the three time claims from Unix seconds to readable UTC dates. Applications add their own custom claims too, like the name in the example or a role field, which appear in the payload JSON. Nothing in the payload is encrypted by default; base64url is an encoding, not encryption.
Is my token expired?
The expiry status checks the time claims against your current clock. If an exp claim exists and has passed, the status reads Expired with the exact date; if it is still ahead, Not expired with the expiry date. If an nbf claim is in the future, the status reads Not yet valid. Tokens without an exp claim, like the demonstration token, report No expiry claim, which in production is usually a smell: non-expiring tokens are risky because a leaked one works forever. The Sample button generates a fresh token expiring one hour from now, so you can see a live Not expired status with issuer, subject, name and role claims.
What is the difference between decoding and verifying?
Decoding only reads the token; verifying proves it is genuine. Anyone can decode any JWT, which is why secrets must never be placed in a payload. Verification checks the signature using the issuer's secret (for HS256) or public key (for RS256 and similar), confirming the token was not altered and really came from the issuer. This decoder deliberately does not verify, because verification needs key material that should never be pasted into a web page. Use it to inspect and debug tokens, and verify signatures in your own backend or identity provider tooling. If a token's algorithm says "none" or an unexpected value, treat that as a red flag.
Is it safe to paste my token here?
This decoder runs entirely in your browser: the token is never transmitted, stored or logged, which you can confirm by disconnecting from the network and decoding anyway. That said, good hygiene still applies. A JWT is a bearer credential; whoever holds it can often act as the user until it expires. Prefer decoding test or short-lived tokens, avoid pasting production admin tokens anywhere, and rotate any token you suspect has leaked. For everyday debugging of your own app's tokens during development, a local decoder like this is the safe option compared with server-side tools that receive the token over the network.
Is it free and private?
Yes. The JWT decoder is free, with no signup, no account and no limits. Everything runs locally in your browser, so tokens, claims and user details stay on your device. For backend developers, QA engineers and anyone debugging an authentication flow, this page does the job in seconds.