See a JWT's header and payload as readable JSON, plus when it was issued and when it expires.
What you type is processed but not shared with anyone. Still, we recommend not pasting live production tokens anywhere.
No sign-up, no fees.
Decode a JWT: see the header and payload as readable JSON.
The iat, nbf and exp dates in readable form.
The tool tells you if it has expired or isn't valid yet.
It drops the "Bearer " prefix by itself.
What you type is processed, but never shared with anyone.
How to use the JWT Decoder
Seen a long string starting with eyJ and split in three by dots? Four steps:
Paste the token. Paste it into the JWT box. If it starts with "Bearer ", no problem; the tool drops it.
Look at the header. In the Header section you see the signing algorithm (alg) and the type (typ).
Read the payload. In the Payload section there's information like the user ID, roles and audience.
Check the dates. If the iat, nbf and exp fields are there, they're listed as dates under Issued at (iat), Not before (nbf) and Expires (exp); under them it says "Not expired." or "Expired." You can copy each section with the button next to it.
What is a JSON Web Token (JWT)?
A JWT (JSON Web Token) is a short ID card that apps use to recognize the logged-in user. When you log in to a site, the server gives you a JWT; your browser shows this card with every later request. Web apps, mobile apps and APIs mostly use JWT for session management. Decoding a JWT token is seeing what's written on this card.
What is the structure of a JWT?
There are three parts: header, payload and signature. The first two are JSON encoded with Base64URL; they aren't encrypted, anyone can read them. The third part is a signature made with the server's secret key; it proves that the token hasn't been changed. That's why secret information like passwords shouldn't be put inside a JWT: whoever gets hold of the token can read it as easily as with this tool.
Does this tool verify the signature?
No, it only reads. Only the server that holds the secret key (or the public key) can check the signature. "Not expired" doesn't mean the token is valid; it only shows that the exp date hasn't passed yet.
Common fields
sub: who the token belongs to (the user ID).
iss: the system that issued the token.
aud: which application the token is for.
iat, nbf, exp: the moment it was issued, the moment it becomes valid and the moment it ends (Unix timestamps).
Tips for reading a JWT
Why does the session keep closing? Look at the exp date; the token's lifetime may be shorter than you think.
Clock difference: if the server's and the device's clocks differ, the token may look "not valid yet"; look at the nbf value.
Live tokens: we recommend not opening valid tokens on shared screens or other sites; working with test or expired tokens is cleanest.
Pasting the token into public places: a valid token is the session itself.
Thinking not expired means safe: token content isn't trusted until the signature is verified.
Putting secret information in the payload: the content can be read by anyone.
Frequently asked questions
Is the JWT decoder free?
No cost at all. Not bad, right?
Is it a problem to paste my live-system token?
What you type is processed, but never shared with anyone. Still, we recommend not opening valid tokens on shared screens or other sites.
I get a "Part could not be read" error.
The token may have been copied incompletely. There must be three parts, and the first two must decode to valid JSON. Encrypted JWTs (JWE, five parts) can't be read with this tool.
Why are the dates shown in my local time?
To make them easy to read. The raw values stay in the payload as numbers.
Is a JWT encrypted?
No. The header and the payload are only encoded; anyone can read them. Only the signature is made with a secret key.
How do I verify a JWT signature?
On the server that holds the secret key, or with the app's own library. This tool deliberately doesn't verify.
What does alg: none mean?
An unsigned token. It shouldn't be accepted in real systems.
Can I use it on my phone?
Yes. Paste the token; the header and payload are shown one under the other.
How long is a JWT valid?
It depends on the application. Access tokens are usually valid for minutes or hours, refresh tokens for days or weeks. The exp field gives the exact time.
Where do I see role and permission information?
Applications usually write these in the Payload section in fields like role, roles, scope or permissions.