JWT Decoder
Paste a JSON Web Token to see its header and payload as readable JSON, check whether it has expired, understand every claim and verify an HS256 signature with your secret.
How to use the JWT Decoder
- Paste the token (with or without “Bearer ”).
- Read the header, payload and status — expired tokens are marked red.
- See Claims explained for dates like exp and iat in normal time.
- To verify, enter the secret under Verify signature.
Security tips
- A JWT is encoded, not encrypted — anyone can read the payload. Never put passwords in it.
- Always verify the signature on the server before trusting a token.
- Do not paste production tokens into tools that send them to a server — this one runs only in your browser.
Frequently asked questions
What is a JWT?
A JSON Web Token: a compact, signed token used for logins and APIs, made of a header, payload and signature.
Is decoding a JWT safe here?
Yes. The token is decoded in your browser and never sent anywhere.
How do I know if a token has expired?
The status shows Valid or Expired using the exp claim, with the exact date and time.
Can I verify RS256 tokens?
Only HMAC tokens (HS256, HS384, HS512) can be verified with a secret here. RS256 needs a public key.
Why is the signature invalid?
The secret is wrong, it is Base64 instead of text (switch to Base64), or the token was changed.
Is my data sent anywhere?
No. Everything is calculated in your browser on your own device. Nothing you type or open is uploaded.
Reading a token: the three parts
A JWT has three parts separated by dots: header.payload.signature. The first two are Base64URL-encoded JSON, which is why anyone can read them.
| Claim | Meaning | Example |
|---|---|---|
sub | Who the token is about, usually a user ID | "user_8231" |
iat | Issued at, in Unix seconds | 1796083200 |
exp | Expires at, in Unix seconds | 1796086800 (one hour later) |
aud | Which app the token is meant for | "api.example.com" |
Common mistakes
- Putting secrets in the payload. The payload is only encoded, not encrypted. Never put passwords or personal data in it.
- Milliseconds in exp. The standard uses seconds. A value in milliseconds makes a token look valid for thousands of years.
- Trusting a token without checking it. Servers must verify the signature and reject the algorithm “none”.
- Clock differences. If a token is rejected as expired right after login, check that the server clock is correct.
Handle tokens with care
A valid token works like a password until it expires. Use expired or test tokens for debugging when you can, and do not post live tokens in chats, tickets or screenshots.