Authentication debugging often comes down to one question: what does this token actually say? A JSON Web Token looks like an opaque string of random characters, yet most of it is not encrypted at all. The header and payload are merely encoded, and anyone holding the token can read them. The confusion starts when people mistake that readability for proof, as if a decoded payload meant the token must be genuine.
This guide shows how to decode a token with the free JWT Decoder on Ovatly, how to read the claims it shows you, and where the hard boundary sits: decoding shows you what a token claims, and it never verifies that the claim is true.
Contents
- Quick answer
- The three parts of a token
- The claims you will actually read
- How to decode a JWT, step by step
- Worked example: the classic demo token
- Limitations: decoding is not verification
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste the full token, all three dot-separated parts, into the JWT Decoder. It shows you the header and payload in plain JSON, translates the expiry time into a readable date, and gives a clear expired or not-expired verdict. Everything happens locally in your browser, so the token you paste is never uploaded. One warning belongs in the quick answer, not buried below: decoding is not verification. The tool cannot confirm a token is genuine, and it labels the signature as not verified. A decoded payload is a claim, not a proof.
The three parts of a token
A JWT is three segments joined by dots. The first segment is the header, which names the algorithm and the token type. The second is the payload, a small JSON object of claims. The third is the signature, produced by the issuer with a secret or a private key.
The header and payload are encoded, not encrypted. Encoding is a formatting step that anyone can reverse, which is exactly what a decoder does. The signature is the only part that protects the token's integrity, and checking it requires the signing key or the issuer's public key, which a decoder page does not have. Keep that division in mind and every limitation of decoding follows from it.
The claims you will actually read
The payload is a set of named claims. The registered names you will meet most often are short: sub is the subject, usually the user id; iss is the issuer; aud is the intended audience; exp is the expiry; iat is the issued-at time. Developers use the decoder to debug authentication: checking which user a token claims to be, which issuer issued it, and whether it has already expired.
Two of those claims drive the tool's time display. Times are computed from the exp and iat claims, which are seconds since the Unix epoch, a format no human reads at a glance. The decoder translates the expiry into a readable date and states plainly whether the token is expired or not expired, so you do not have to convert epoch seconds yourself.
How to decode a JWT, 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: subject, issuer, issued-at and expiry.
- Check the expiry panel for the verdict, and remember the signature warning: the signature segment is present, but it is not verified.
Worked example: the classic demo token
The well-known demo token has the header {"alg":"HS256","typ":"JWT"}. Its payload contains sub "1234567890", name "John Doe" and iat 1516239022. Decoded, that reads plainly: the token claims to be about subject 1234567890, the name claim says John Doe, and the issued-at claim is the epoch timestamp 1516239022.
The example token carries 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 is the expiry panel doing its one job: turning a raw epoch number into a date and a verdict you can act on.
The signature segment is present in the example too, and the page states it is not verified. Nothing about the neat, readable payload changes that. The claims look official because they are formatted as JSON; they remain claims until a server checks the signature against the real key.
Limitations: decoding is not verification
This is the section to internalise. 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 build a token with any payload they like, sign it with a key they invented, and it will decode beautifully. Only the issuer's real verification step separates that forgery from a genuine token.
Expiry has a softer edge. The tool reports the exp claim exactly, but your server's policy decides what is enforced. Some systems allow clock skew leeway of a minute or two, and some ignore exp for specific flows, which is why a token can read as expired here while an app still accepts it. And tokens without an exp claim are reported as having no expiry of their own, which is common for some API tokens.
On safety: everything happens locally, because tokens are credentials and this page never uploads the one you paste. That makes decoding here safe in the narrow sense. The wider discipline is still yours: never paste production tokens into random sites whose behaviour you cannot check, and treat tokens like passwords generally, keeping them out of public places and screenshots.
Common mistakes
- Treating a decoded payload as proof. It is a claim. Only signature verification by the issuer's key makes it proof.
- Pasting tokens into unknown websites. A decoder that uploads your token has your credential. Use one that runs locally, and be careful generally.
- Pasting a truncated token. The decoder needs the full token, all three dot-separated parts; a copied fragment will not decode into anything useful.
- Reading epoch times by eye. exp and iat are seconds since the Unix epoch. Let the tool translate them instead of guessing.
- Assuming no exp means invalid. Some tokens legitimately carry no expiry claim; the tool reports that instead of inventing a verdict.
FAQs
Can this tool verify that a token is real? No, and be suspicious of any decoder that implies it can. Verification needs the secret or public key used to sign the token, which a decoder page does not have. This tool decodes and labels the signature as not verified.
Why does my token say expired when the app still accepts it? Some systems allow clock skew leeway of a minute or two, and some ignore exp for specific flows. The tool reports the claim exactly; your server's policy decides what is enforced.
Is it safe to paste a real token here? The decoding runs entirely in your browser and nothing is sent anywhere. Still, treat tokens like passwords generally: do not post them in public places or screenshots.
What are sub, iss and aud? Registered claim names: sub is the subject (usually the user id), iss is the issuer, aud is the intended audience, exp the expiry, iat the issued-at time.
What if my token has no expiry? Tokens without an exp claim are reported as having no expiry of their own, which is common for some API tokens. The decoder shows the claims that are present and does not invent one.
Conclusion
Decoding a token takes seconds and answers real debugging questions: who it claims to be, who issued it, and whether its own expiry has passed. The JWT Decoder does that locally in your browser and is explicit about the boundary: the signature is not verified, and a payload is a claim, not a proof. For the identifiers that appear throughout the same debugging work, the companion guide covers generating them properly.
Related guide: How to Generate a UUID Online.
More tools for this kind of work live in the Developer Tools archive.