How to use the JWT decoder
- Paste a JSON Web Token. A leading
Beareris removed for you. - Read the header and payload, and the claims table, which turns times like
expinto dates. - For tokens signed with a shared secret (HS256, HS384 or HS512), type the secret to check the signature.
What is inside a JWT?
A JWT has three parts separated by dots. The header says how it was signed. The payload holds the claims, such as who the user is and when the token expires. The signature proves the first two parts weren't changed.
The header and payload are only Base64URL-encoded, not encrypted. Anyone with the token can read them, so never put passwords or secrets in a JWT.
Common claims
iss: who issued the tokensub: who the token is about, usually a user IDaud: who the token is meant forexp,nbf,iat: expiry, not-before and issued-at times, in seconds since January 1, 1970 (UTC)
Decoding a token does not prove it is genuine. Your server must always verify the signature.