JWT decoder

Paste a JWT to decode it. The token is decoded in your browser and is never sent anywhere or saved.

What is a JWT?

A JSON Web Token is three Base64URL strings joined by dots: header.payload.signature. The header names the signing algorithm, the payload holds claims such as the user ID and expiry, and the signature proves the token was issued by someone holding the key.

Anyone can read a JWT's payload; it is encoded, not encrypted. Never put passwords or secrets in it.

Standard claims

ClaimMeaning
issIssuer: who created the token
subSubject: usually the user ID
audAudience: who the token is for
expExpiry time, in Unix seconds
nbfNot valid before this time
iatIssued at

Decoding is not verifying

Decoding shows what a token says. Your server must still verify the signature, and check exp, aud and iss, before trusting it. This page can verify HMAC signatures (HS256, HS384, HS512) if you enter the secret. Tokens signed with RS256 or ES256 need the issuer's public key.

Frequently asked questions

Is it safe to paste a JWT here?
Decoding runs entirely in your browser and the token is not stored or sent anywhere. Even so, treat live production tokens as passwords and prefer expired or test tokens.
How do I check if a JWT has expired?
Look at the exp claim. The tool converts it to a date and shows whether it is in the past.
Why does it say invalid signature?
The secret is wrong, the token was changed, or the secret is Base64 encoded and the box is not ticked.
Can it decode encrypted JWTs (JWE)?
No. A JWE has five parts and its payload is encrypted; it can only be read with the decryption key.