JWT Decoder
Paste a JSON Web Token to read its header, payload and claims β decoded locally, with the dates made readable.
Decoding a JWT does not verify its signature. Anything shown here is only what the token claims. Never trust it until your server has verified the signature with the right key.
Informational only. These dates are read from the token and are not validated.
π Your data is processed locally in your browser and is never uploaded to our servers.
How to decode a JWT
- Paste the token β it starts with
eyJand has two dots. - Click Decode. The header and payload appear as formatted JSON, the signature as it is in the token.
- Time claims (
iat,nbf,exp) are shown as readable dates.
What's inside a JWT?
A JWT is three Base64URL parts separated by dots: header.payload.signature.
| Part | Contains | Example |
|---|---|---|
| Header | Signing algorithm and token type | {"alg": "HS256", "typ": "JWT"} |
| Payload | The claims: who, for what, until when | {"sub": "1234", "name": "Alex", "exp": 1760086400} |
| Signature | Proof the token wasn't modified | Binary, Base64URL-encoded |
Common claims
issβ issuer (who created the token),subβ subject (usually the user ID),audβ audience (which app it's for).iat,nbf,expβ issued at, not before, expiration (Unix timestamps in seconds).jtiβ a unique token ID;scopeorrolesβ permissions, in many APIs.
Decoding is not verifying
The payload of a normal JWT is not secret: anyone holding the token can read it, as this tool shows. Only the signature proves who issued the token, and that check must be done by your server with the right key (an HMAC secret for HS256, a public key for RS256 or ES256). So:
- Never put passwords or sensitive data in a JWT payload.
- Never trust a decoded token on the client side for security decisions.
- Reject tokens with
"alg": "none"on your server.
Common errors
- βInvalid tokenβ β part of it was cut when copying, or it includes the
Bearerprefix: remove it. - Five parts instead of three β it's an encrypted token (JWE), which can't be read without the key.
FAQ
Is my token stored or uploaded?
No. It's decoded in your browser. Still, avoid pasting live production tokens anywhere: a leaked token can be used until it expires.
How do I check if a token is expired?
Use the JWT Timestamp Converter, which shows the time left before exp.
How do I create a secret for HS256?
Use the Secret Key Generator (JWT HS256 secret, 256 bits).