How to use the JWT decoder
- Paste a JSON Web Token into Encoded token. A leading
Beareris removed automatically. - The header and payload are decoded as you type and shown as formatted JSON.
- The Claims table explains standard claims and converts dates such as
exp(expiration) andiat(issued at) into readable local times. - Notes point out expired or not-yet-valid tokens, tokens without an expiry, and unsigned tokens (
alg: none).
What a JWT contains
A signed JWT (a JWS) has three parts separated by dots: header.payload.signature. The header and payload are JSON encoded with base64url, which is an encoding, not encryption: anyone who has the token can read them. The signature is what lets the recipient check that the token was issued by a trusted party and hasn't been changed.
An encrypted JWT (a JWE) has five parts. Only its header can be read without the recipient's private key, so for these tokens the decoder shows just the header.
Why decoding doesn't prove anything
Decoding only reads the claims. Before trusting a token, an application must verify its signature using the issuer's key, and check its issuer (iss), audience (aud) and expiry (exp). In ASP.NET Core this is done by the JWT bearer authentication handler; never base access decisions on decoded but unverified claims.
Common claims
| Claim | Name | Meaning |
|---|---|---|
iss | Issuer | Who created and signed the token |
sub | Subject | Who the token is about, usually a user ID |
aud | Audience | Who the token is intended for, such as your API |
exp | Expiration time | After this time the token must be rejected |
nbf | Not before | Before this time the token must be rejected |
iat | Issued at | When the token was created |
jti | JWT ID | A unique identifier, used to prevent replay |
Dates are NumericDate values: seconds since 1 January 1970 UTC. A value with 13 digits is usually milliseconds by mistake, and the decoder warns about it.
Frequently asked questions
Is my token sent anywhere?
No. Decoding runs entirely in your browser. The token is never sent to our servers, stored or logged.
Can this tool verify a signature?
No, and it doesn't claim to. Verifying a signature needs the issuer's secret or public key, and is best done by your application's authentication library.
Why does my token show a warning about alg: none?
A token with alg: none has no signature, so anyone could have created or modified it. Production systems should always reject these tokens.