JWT Decoder

In short: paste a token and see its header and payload as readable JSON, with iat, exp and nbf converted to UTC dates and a live expired / not-yet-valid flag. This page does not verify the signature — decoding shows you what a token claims, never whether those claims are genuine.
Security note: decoding is not verifying. This tool performs no signature check and has no access to any signing key. A forged token decodes just as beautifully as a real one. Never trust a payload you have only decoded; verify the signature on your server, with the issuer's key, before acting on any claim inside a token.

What a JWT actually is

A JSON Web Token is three base64url-encoded chunks joined by dots: header.payload.signature. The header is a small JSON object naming the signing algorithm and token type. The payload is a JSON object of claims — statements about a user or session, such as a subject ID, a name, roles, and the timestamps that bound the token's life. The signature is a cryptographic stamp computed over the first two chunks by whoever issued the token. The crucial fact, the one everything else on this page hangs from, is that the first two chunks are encoded, not encrypted. Base64url is a way of carrying binary data as safe text; it conceals nothing. Anyone holding a token can read its payload with a few lines of code — or with this page — and that is by design: the token's readability is a feature, its trustworthiness comes only from the signature.

Decoding is therefore a debugging tool, and a genuinely useful one. When an API answers 401, the first question is what the token you sent actually says: has it expired, was it issued for a different audience, is the role claim missing, did the clock on the issuing server drift? All of that is visible in the payload in seconds, and none of it requires the signing key. This decoder restores the base64url padding that JWT omits, decodes both JSON segments, pretty-prints them, lays the payload's claims out in a table, and translates the time claims — iat (issued at), exp (expires), nbf (not before) — from Unix seconds into UTC dates, flagging whether the token is currently expired or not yet valid according to your device's clock. Malformed input gets a plain-English error naming the segment that failed, not a stack trace.

What it will never tell you is whether the token is real. Verification means recomputing the signature with the issuer's secret (for HS256) or public key (for RS256 and family) and comparing — a step that needs the key, which this page does not have and you should never paste into any website. The correct mental model: this page is a window, not a guard. It lets you read the postcard; it cannot check the postmark.

Worked example: the classic test token

The token pre-filled above is the long-standing public example from jwt.io — a teaching token, signed with a demo secret, safe to paste anywhere. Its header decodes to {"alg":"HS256","typ":"JWT"} and its payload to {"sub":"1234567890","name":"John Doe","iat":1516239022}.

The claims table reads: sub (subject) = 1234567890, the user ID this token is about; name = John Doe; and iat = 1516239022, which as a UTC date is 18 January 2018, 01:30:22 UTC. There is no exp claim, so this token never expires on paper — one reason it survives as a demo, and a pattern to avoid in production, where a token without expiry is a credential that can never time out. Try changing one character in the payload segment: the decoder will either produce different JSON or report the segment as unreadable, and nothing warns you the signature no longer matches — a small, safe demonstration of why decoding alone proves nothing.

The standard claims, translated

ClaimMeaningShown here as
issIssuer — who created and signed the tokenText, in the claims table
subSubject — who or what the token is aboutText, in the claims table
audAudience — which service the token is meant forText, in the claims table
iatIssued at (Unix seconds)UTC date + time
expExpires (Unix seconds)UTC date + live expired status
nbfNot valid before (Unix seconds)UTC date + live not-yet-valid status
jtiToken ID — unique identifier for revocation listsText, in the claims table

Custom claims — roles, permissions, tenant IDs — appear in the same table under whatever names the issuer chose. Two debugging habits follow from the table: check aud whenever a token is rejected by one service but accepted by another, and check iat against exp to see the token's intended lifetime; a lifetime of weeks on a user token is a finding worth reporting, not a convenience.

Frequently asked questions

Does decoding a JWT verify it?

No, and this is the most important thing on this page. Decoding is just base64url translation: anyone can decode any token, and anyone can forge a token with any payload they like. Verification is a separate cryptographic step — checking the signature against the issuer's secret or public key — and this page does not do it, because it does not have (and should never be given) the key. A decoded payload proves nothing about who issued the token or whether it was tampered with.

What do iat, exp and nbf mean?

They are the standard time claims, all in Unix seconds. iat (issued at) is when the token was created; exp (expires) is when it stops being valid; nbf (not before) is the moment before which it must not be accepted. This page renders all three as UTC dates and flags whether the token is currently expired or not yet valid, judged against your device's clock — a wrong device clock gives a wrong verdict, which is itself a common cause of 'invalid token' bugs.

Why does my token fail to decode?

Almost always one of four things: the token was truncated when copied (the signature segment is long and easy to clip); it has line breaks or spaces pasted into it; it is not a JWT at all but an opaque access token or a refresh token, which are random strings with no readable structure; or one segment is not valid JSON after decoding, which happens with some proprietary formats. The error message here says which segment failed so you can check the right part.

Is it safe to paste a real token here?

The decoding runs entirely in your browser and the token is never sent anywhere — you can verify that by loading the page and disconnecting before pasting. Even so, good practice is to treat any live token as a password: it grants whatever it grants until it expires. Prefer decoding expired or development tokens, and if a token was pasted into a tool that does upload (some popular ones send data to their servers), consider it compromised and revoke it.

What is the difference between the header, payload and signature?

The header declares how the token is signed (alg, for example HS256 or RS256) and its type (typ: JWT). The payload carries the claims — the actual data: subject, name, roles, timestamps. The signature is computed over the first two segments using a secret or private key, and it is the only part that makes the token trustworthy. Header and payload are merely encoded, not encrypted: base64url is a transport format, so never put anything in a JWT payload that you would not print on a postcard.

Related tools

Token structure, test vector and worked example last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.