A JWT looks like a string of punctuation until you split it on its two dots. Then it stops being opaque. It becomes a small, readable JSON document — and that is exactly why where you decode it matters.
I ran the classic sample token through a browser decoder to see what it actually shows, instead of taking the usual explanation on trust. Here is what came back, and what it does not prove.
The three parts
A token is header.payload.signature, three base64url segments joined by dots.
The header says how the token was signed. The payload carries the claims — the statements about the subject, when the token was issued, and when it stops being valid. The signature is the part a server checks to decide whether the first two parts were tampered with.
The first two parts are not encrypted. Base64url is an encoding, not a cipher. Anyone who holds the token can read every claim in it. That is the first thing decoding teaches you: a JWT is a signed envelope, not a sealed one. Do not put anything in a payload that you would not want the holder to read.
What the live run showed
I pasted in the classic sample token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c The tool reported the input as 155 bytes on one line, then split it into a 36-byte, 4-line header and a 68-byte, 5-line payload:
{ "alg": "HS256", "typ": "JWT" } { "sub": "1234567890", "name": "John Doe", "iat": 1516239022 } It annotated three claims. sub is 1234567890, the subject the token is about, usually a user ID. name is John Doe, the display name. And iat, the issued-at time, is 1516239022, rendered as 2018-01-18 01:30:22 UTC — 3,232 days ago at the time I ran it. That relative rendering is the detail that makes a raw timestamp useful: a number becomes a date, and a date becomes a story about how old this token is.
The signature was shown, not checked: HS256 HMAC, SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c, with the note that verifying it needs the issuer's key, and fetching one would mean sending the token somewhere.
Two warnings worth reading
The tool flagged two missing claims, and both matter more than the decoded values themselves.
First, there is no exp claim, so this token does not expire on its own and can only be stopped by revocation. Second, there is no aud claim. Without an audience, a token issued for one service can be replayed against another service that trusts the same issuer. A token can decode cleanly and still be missing the claims that limit where and how long it is valid.
Why local decoding matters
Tokens carry real session data: user IDs, roles, expiry times, sometimes more than the developer who issued them intended. Pasting one into a server-side decoder sends that session data to someone else's log. Decoding it in the tab keeps it in the tab.
That is the workflow I used here: the JWT Decoder runs entirely in the browser, so the token I pasted was decoded locally and never transmitted. For a sample token that distinction is academic. For a production token copied out of a failing request, it is the whole point.
Honest caveats: decoding is not verifying
Decoding tells you what a token claims. It tells you nothing about whether those claims are true.
The signature cannot be checked without the secret, so a decoded token proves nothing about authenticity. Anyone can craft a token with any sub and name they like, sign it with a key they control, and have it decode into perfectly readable JSON. The readable part is the easy part. Trust comes from the signature check, and that check belongs in your service, where the key already lives — not in a browser page.
The same applies to expiry. The sample token had no exp claim, so there was no expiry verdict to record for it. The tool's own guidance is that expiry is a claim inside the payload, not a property of the encoding: an expired token decodes exactly like a live one, and the tool reads the expiry and reports when it expired and how long ago. In other words, decoding will happily show you an expired token. It will not reject it for you. That is your server's job.
The habit to take away
When a request fails with a 401, decode the token before you blame permissions. Check iat and exp first, then aud, then sub. Often the answer is a lifetime problem, a wrong audience, or a token older than you expected — and you can see all three without the token ever leaving your browser.


