JWT decoder
Paste a JSON Web Token to read what is inside it and see whether it has expired.
About JWT Decoder
A JWT is three pieces of Base64URL text joined by dots: a header, a payload and a signature. This page splits them, decodes the first two and lists the claims with a short explanation of each. Dates such as exp and iat are turned into readable times, and the expiry counts down live. If the token is signed with HS256, HS384 or HS512, you can type the secret and check the signature. The token is processed on your own device and is not sent to our server.
- Finding out why an API call returns 401, for example an expired token.
- Checking which scopes, roles or audience a token really carries.
- Spotting risky headers such as alg none while reviewing a login flow.
- Reading a token from a log or a support ticket without writing code.
How to use JWT Decoder
Step 1
Paste the token. A leading Bearer is removed for you.
Step 2
Read the warnings, the decoded header and payload, and the claims table.
Step 3
To test an HS256, HS384 or HS512 token, type the secret and press Check signature.
Good to know
- Decoding is not trust. Anyone can write a payload that says admin, so only a signature check on your server proves a token is genuine.
- Treat live tokens like passwords. This page keeps them on your device, but avoid pasting production tokens into any site you do not control.
- Tokens signed with RS256, ES256 and similar need the issuer's public key. They are decoded here, but the signature is not checked.
Common questions
Is my token sent to a server?
No. The text is decoded by JavaScript in your browser, and the signature check uses the browser's own WebCrypto. Nothing is uploaded or stored.
Why does it say the signature does not match?
Either the secret is different from the one that signed the token, or the secret is stored as Base64 and the box for that is not ticked. Whitespace at the end of the secret also changes the result.
What do exp, nbf and iat mean?
They are times in whole seconds since 1 January 1970 UTC. exp is when the token stops being valid, nbf is the earliest time it may be used, and iat is when it was issued.