How to decode a JWT
- Paste the token into the box. A leading
Bearerfrom an Authorization header is removed automatically. - The header and payload are decoded and shown as formatted JSON.
- Times such as
exp(expiry) andiat(issued at) are converted to readable dates, and you can see at a glance whether the token has expired.
What is a JSON Web Token?
A JWT is a compact token used for logins and API access. It has three parts separated by dots: a header that names the signing algorithm, a payload with claims about the user or session, and a signature. The header and payload are only Base64url-encoded, not encrypted, so anyone holding the token can read them.
Standard claims
iss– who issued the tokensub– who the token is about, usually a user IDaud– who the token is intended forexp,nbf,iat– expiry time, not-valid-before time and issue time, as Unix timestamps (see the Unix Timestamp Converter)
FAQ
Is it safe to paste my token here?
The token is decoded in your browser and never sent anywhere. Still, a valid token works like a password until it expires, so avoid sharing real production tokens with anyone.
Should I put secrets in a JWT?
No. The payload is readable by anyone who has the token. Put only identifiers and permissions in it, never passwords or personal data you would not want exposed.