JWT Decoder

Read the header and payload of a JSON Web Token and see when it expires. Nothing is sent anywhere.

How it works

A JSON Web Token has three parts joined by dots: a header (the algorithm), a payload (the claims, like who the user is and when the token expires) and a signature. The first two are only Base64URL text, not encrypted, so anyone can read them. Paste a token and the tool decodes both and shows the dates in plain form, and whether it has expired.

Worked example

The sample token decodes to header {alg: HS256, typ: JWT} and payload {sub: 1234567890, name: John Doe, iat: 1516239022}. It has no exp claim, so it never expires.

Good to know

Common questions

What do iat, nbf and exp mean?
iat is when the token was issued, nbf is the time before which it is not valid, exp is when it expires. All are Unix timestamps in seconds.
Is a JWT encrypted?
Normally not. It is signed, not encrypted. Encrypted tokens (JWE) have five parts.
Why does it say Bearer?
Authorization headers look like "Bearer eyJ...". The word is removed for you.

More in Developer.