JWT Decoder
Read the header and claims inside a JSON Web Token, with expiry dates shown in plain English. Decoding only; no signature check.
Decode only. This page reads the token; it does not check the signature, so never treat a decoded token as proof that it is genuine. Avoid pasting live production tokens anywhere you do not trust.
| Claim | Value | Meaning |
|---|
How to decode a JWT
- Paste a JSON Web Token into the box. A token is three chunks of text separated by full stops, and it usually starts with
eyJ. - The header and payload appear underneath straight away, formatted as readable JSON.
- Check the status line. It names the signing algorithm and says whether the token has expired, is not yet valid or is still in date.
- Read the claims table, which explains standard fields in plain English and turns time values into readable dates.
Press Load a sample token to see how it works with a harmless example.
Worked example
The sample token was signed for a fictional user and contains six claims. The header decodes to {"alg": "HS256", "typ": "JWT"}, so it was signed with HMAC SHA-256. The payload shows sub as user-4821, name as Priya Shah and role as editor. The iat value of 1767225600 is shown as Thu, 01 Jan 2026 00:00:00 GMT, and the exp value of 1767229200 as Thu, 01 Jan 2026 01:00:00 GMT, exactly one hour later. Because that time has passed, the status line reads "Algorithm: HS256. Expired Thu, 01 Jan 2026 01:00:00 GMT." When a user complains they have been logged out, this is precisely the kind of detail that explains why.
How it works
A JWT has three parts: a header, a payload and a signature. The first two are JSON that has been Base64URL-encoded, a version of Base64 that is safe to use in web addresses. The decoder splits the token at the full stops, converts the first two parts back to text and formats the JSON. The third part, the signature, is left alone, because checking it needs the secret or public key held by the system that issued the token. Time claims such as exp, iat and nbf are counted in seconds since 1 January 1970 and are converted with your browser's clock.
Decoding is not verifying
Anyone can create a token with any payload they like. What makes a real token trustworthy is its signature, checked on the server with the correct key. This page deliberately does not do that, so never treat a decoded token as proof of who someone is or what they are allowed to do. Use it to inspect and debug, not to make security decisions.
Tips
- Avoid pasting live production tokens into websites you do not trust. This page works offline, but the habit matters.
- If a token is rejected, compare
expandnbfwith the server's clock. A few minutes of clock drift is a common cause. - Check the
audandissclaims when a token works in one service but fails in another. - Remember that the payload is readable by anyone. Never put passwords or personal data in a JWT that you would not want exposed.
Frequently asked questions
Is my token sent anywhere?
No. Decoding happens in your browser, and the token is not stored or transmitted.
Why can I read the payload if it is "signed"?
Signing proves a token has not been changed, but it does not hide the contents. Encrypted tokens (JWE) exist, but most JWTs are only signed.
What does "alg: none" mean?
It means the token has no signature at all. Properly configured servers reject such tokens, and an unexpected "none" is worth reporting to your development team.
What is the difference between HS256 and RS256?
HS256 uses one shared secret to both sign and check a token. RS256 signs with a private key and checks with a public key, so other services can verify tokens without being able to create them.
Why does the decoder say my token is invalid?
Most often a character was lost when copying, or a quotation mark or line break came with it. A leading "Bearer " is removed for you, so paste the rest exactly as it appears in the request header.