Developer tool · Free & no sign-up

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.

Advertisement

Your token stays on this page — it is never sent to any server.

Advertisement

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.

Questions readers ask

Q1Does this tool verify the JWT signature?
No. It decodes and displays claims; verification needs the issuer’s secret or public key, which must never be pasted into a web page. Verify inside your backend or local tooling.
Q2Is my token sent to a server?
No. All decoding is client-side; you can disconnect the network after the page loads and the tool still works. Nothing is logged or retained.
Q3Why does my token show as expired?
The exp claim (Unix seconds) is in the past relative to your clock. Request a refreshed token from the issuer, or check your device clock skew — a device five minutes slow can misreport borderline tokens.
Q4What is Base64URL?
A URL-safe variant of Base64 (RFC 4648 §5) using - and _ instead of + and /, usually without padding. JWTs use it so tokens survive URLs and headers intact.
Q5Can a JWT have only two segments?
Yes — alg: none tokens carry header.payload with no signature. They decode here with a warning; treat their claims as unverified user input, always.
Q6Why does the payload show raw Unix timestamps?
Claims like exp, nbf and iat are defined as NumericDate (seconds since epoch). The decoder converts them to readable IST timestamps automatically so you never need an epoch converter.
Advertisement