Features
- Readable claimsiat, nbf and exp shown as dates.
- PrivateThe token is never sent anywhere.
- Runs on your deviceYour data is processed in the browser and is never uploaded.
How to use the JWT decoder
- Paste the token, with or without the Bearer prefix.
- Read the header and payload.
- Check the iat, nbf and exp times.
Decoding is not verification
Only your server, with the right key and an allowed algorithm, can confirm that a token is genuine. Never trust claims from a token you have not verified. JWT is defined in RFC 7519.
Decode a JWT payload in JavaScript (no verification)
const part = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');
const payload = JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(part), (c) => c.charCodeAt(0))));
Frequently asked questions
Is it safe to paste my token here?
It is not sent anywhere. A live token is still a credential, so follow your security policy.
What does exp mean?
The expiry time, in seconds since 1 January 1970 UTC.
Can it decode encrypted tokens?
No. Five-part encrypted JWTs (JWE) are not supported.