JWT Decoder
Decode any JSON Web Token locally: inspect the header and payload as formatted JSON, verify time claims (exp, nbf, iat), and see expiry status at a glance.
About this tool
A JSON Web Token is three dot-separated, Base64URL-encoded segments: header.payload.signature. The header names the signing algorithm and token type, the payload carries claims (sub, name, exp, iat, roles…), and the signature proves integrity to the issuing party. This decoder inspects the first two segments and interprets the standard registered time claims, because that is what you actually need while debugging authentication flows.
How to use it: paste the token. The tool splits it on dots, Base64URL-decodes header and payload (translating -_ back to +/ and re-adding padding), pretty-prints both as JSON, and evaluates exp, nbf and iat against the current time — showing a green Valid badge with exact expiry, a red Expired badge, an amber Not-yet-valid badge, or a grey No-expiry warning. It works fully offline; nothing is transmitted.
Worked example: a typical HS256 token decodes to header {"alg":"HS256","typ":"JWT"} and payload like {"sub":"1234567890","name":"Asha Rani","iat":1763000000,"exp":1763600000}. The decoder converts those Unix timestamps to human dates, sees exp has passed, and renders Expired. Change the scenario to exp next year: the badge flips to Valid with “expires in N days” and the exact date — the difference between guessing and knowing, in one paste.
What this tool will not do — deliberately: verify the signature. Verification requires the issuer’s secret (HS256) or public key (RS256/ES256), and any web page that asks for either is a liability, not a tool. If you need signature verification, do it inside your own backend or local JWT library where the secret lives. Likewise, decoding never implies the token is trustworthy: anyone can mint a JWT with any claims and a valid-looking structure — trust only after verification.
Security hygiene worth knowing: treat live tokens like passwords. Although this page computes locally and stores nothing, prefer decoding staging or expired tokens, and rotate production secrets if a live token ever appears in logs, screenshots or chat. The “no signature verification” banner printed by the tool is there to keep you honest, not to excuse leaking credentials.