You decoded a token and got a handful of three-letter names and one very large number. That is normal: a JWT payload is a set of claims, and the standard claims use short registered names that look cryptic until someone walks through them one at a time.
This guide goes claim by claim through iss, sub, aud, exp and iat, explains how registered claims differ from custom ones, and then reads a real payload end to end using the free JWT Decoder on Ovatly.
Contents
- Quick answer
- Registered claims and custom claims
- iss: who issued the token
- sub: who the token is about
- aud: who the token is for
- exp and iat: the two times
- How to read a payload, step by step
- Worked example: reading the demo payload
- Limitations: claims are not proof
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste the full token into the JWT Decoder and read the payload as a list of claims. The registered names decode like this: iss is the issuer, sub is the subject (usually the user id), aud is the intended audience, exp is the expiry and iat is the issued-at time. The two time claims are seconds since the Unix epoch; the tool translates the expiry into a readable date with an expired or not-expired verdict. Anything else in the payload is a custom claim added by the issuer. One caution applies to every claim: decoding is not verification, so a claim tells you what the token says, not whether it is true.
Registered claims and custom claims
Claims come in two kinds. Registered claims are the standard names with agreed meanings, defined so that any system reading a token interprets them the same way. The five you will meet most often are iss, sub, aud, exp and iat.
Custom claims are everything else. Issuers add their own fields: a display name, a role, a tenant id, whatever the app needs. There is no registry for these, so their meaning comes from the issuing system's documentation, not from the token format itself. When you read a payload, sort what you see into these two piles first. Registered claims you can interpret on sight. Custom claims you interpret cautiously, because only the issuer knows what it put there and why.
iss: who issued the token
The iss claim names the issuer, the party that created and signed the token. When you debug authentication, this is how you check that a token came from the system you expected, not from a different service, an old environment or a test setup that leaked into production. If the issuer is not the one your application trusts, nothing else in the payload matters.
sub: who the token is about
The sub claim is the subject of the token, and in practice it usually holds the user id. This is the claim developers check first when a request behaves like it belongs to the wrong account: decode the token, read sub, and compare it with the user the application thinks is signed in. Note that sub is an identifier, not a name: the demo payload below uses "1234567890" as a stand-in id, which is typical of how opaque the value can be.
aud: who the token is for
The aud claim names the intended audience: the service or API the token is meant to be presented to. It exists so that a token issued for one service is not casually replayed against another. A token can be genuine and still be wrong for your API if its audience names a different service. Not every token carries an aud claim; its absence simply means the issuer did not restrict the audience in the token.
exp and iat: the two times
Two registered claims carry times, and both are numbers of seconds since the Unix epoch. The iat claim is the issued-at time, when the issuer created the token. The exp claim is the expiry, the moment after which the token should no longer be accepted.
Raw epoch seconds are unreadable at a glance, which is why the decoder does the translation for you: it computes the expiry from the exp claim and reports a readable date plus a plain verdict, expired or not expired. Tokens without an exp claim are reported as having no expiry of their own, which is common for some API tokens, and in that case the tool says so rather than inventing a verdict.
How to read a payload, step by step
- Open the JWT Decoder and paste the full token, all three dot-separated parts.
- Read the decoded header, which names the algorithm and token type.
- Read the payload claims one at a time: issuer, subject, audience if present, then the times.
- Check the expiry panel for the readable date and the verdict, and remember the signature warning: the signature segment is present, but it is not verified.
Worked example: reading the demo payload
The classic demo token has the header {"alg":"HS256","typ":"JWT"} and a payload containing sub "1234567890", name "John Doe" and iat 1516239022. The sub claim says the token is about subject 1234567890, an id, not a person you can look up. The name claim is a custom claim, added for readability; it is not one of the registered names. The iat claim, 1516239022, is the issued-at moment in epoch seconds.
There is no iss and no aud in this payload, which is fine: a minimal demo token omits them. There is also no exp, so the token as shown has no expiry of its own. Add an exp claim of 4000000000 and the tool reports expiry on 2 October 2096, so the token is not expired. That single addition shows the whole pattern: the claim is a number, the decoder turns it into a date, and the verdict follows from comparing that date with now.
Limitations: claims are not proof
Everything above comes with one hard boundary. Decoding is not verification. Without the signing key or the issuer's public key, nobody can confirm a token is genuine, and this tool never claims to. Anyone can write a payload with a convincing sub and a far-future exp, sign it with a key they invented, and it will read exactly like the demo. The decoder labels the signature as not verified because that check belongs to the receiving server, not to a reading tool.
The claims also only say what the issuer chose to include. A missing aud tells you nothing about where a token will be accepted, and an exp verdict reflects the claim exactly, while your server's policy decides what is enforced. Decoding here is safe because everything happens locally: tokens are credentials, and this page never uploads the one you paste. Never paste tokens into sites whose behaviour you cannot check.
Common mistakes
- Treating sub as a username. It is usually an internal user id. Match it against your user records, not against display names.
- Confusing iss with aud. iss is who issued the token; aud is who it is meant for. Mixing them up sends debugging in the wrong direction.
- Reading epoch seconds by eye. exp and iat are seconds since the Unix epoch. Let the tool translate them instead of estimating.
- Assuming a missing claim is an error. Tokens without an exp claim are reported as having no expiry of their own, and many tokens omit aud. Absence is information, not corruption.
- Believing a well-formed payload. Neat JSON proves nothing about authenticity. Only signature verification by the issuer's key does that.
FAQs
What does sub mean in a JWT? sub is the subject claim, and it usually holds the user id the token is about. In the classic demo payload, sub is "1234567890", a stand-in user id rather than a name.
What is the difference between iss and aud? iss names the issuer, the party that created and signed the token. aud names the intended audience, the service or API the token is meant to be presented to.
How do I read the exp claim? exp is a number of seconds since the Unix epoch, so it is unreadable at a glance. The JWT Decoder translates it into a readable date and states whether the token is expired or not expired.
Does reading the claims prove a token is genuine? No. Decoding is not verification. Without the signing key or the issuer's public key, nobody can confirm a token is genuine. A decoded payload is a claim, not a proof, and the decoder labels the signature as not verified.
What are custom claims? Any claim outside the registered set is a custom claim added by the issuer for its own purposes. The demo payload's name claim, "John Doe", is a simple example: useful context, defined by the application rather than the standard names.
Conclusion
The method is simple: sort the claims into registered and custom, then take the registered five in order, issuer, subject, audience, issued-at and expiry. The JWT Decoder does the mechanical part locally in your browser and translates the times for you, while staying explicit that the signature is not verified and a claim is not a proof. The natural next question is architectural: should the session live in a token at all, or in a server-side session cookie? The companion guide works through that choice.
Related guide: JWT vs Session Cookies: Which Should You Use.
More tools for this kind of work live in the Developer Tools archive.