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
- Never put secrets in a JWT payload. It is readable by anyone who has the token.
- Decoding is not verifying. The server must check the signature with its key before trusting any claim. This tool does not check signatures.
- A token with alg "none" has no signature and must be rejected by servers.
- Paste only test tokens into any web page. Your login token is like a password until it expires. This tool runs in your browser and sends nothing, but be careful anywhere.
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.
See the ASCII code of every character in decimal, hex, binary and octal, or turn codes back into text.
OPEN →Axios Request GeneratorFill in a method, URL, headers and body and get a ready Axios Request snippet to copy.
OPEN →Base32 Encoder and DecoderEncode text to Base32 (RFC 4648) or decode it, as used in 2FA secrets.
OPEN →