How to decode a JWT
- Paste the tokenCopy it from an Authorization header, a cookie or your app's storage. A leading "Bearer " is removed for you.
- Read the header and payloadBoth are shown as formatted JSON.
- Check the claimsThe table lists every claim, with timestamps turned into your local date and time and a note such as "in 59 minutes" or "2 days ago".
Press Sample token to see how a decoded JWT looks.
The three parts of a JWT
- Header
- The token type and the signing algorithm, such as HS256 or RS256.
- Payload
- The claims: who the token is for, when it expires and any custom data.
- Signature
- Proves the token wasn't changed. Checking it needs the secret or public key, which only your server should hold.
The header and payload are only Base64URL-encoded, not encrypted, so anyone holding the token can read them, which is exactly what this decoder does. Encode or decode other Base64 data with the Base64 Encoder / Decoder.
Common JWT claims
- iss (issuer): who created the token.
- sub (subject): usually the user ID.
- aud (audience): which app the token is meant for.
- exp, nbf, iat: expiry, not-before and issued-at times, in seconds since 1 January 1970. Convert any of these with the Timestamp Converter.
- jti: a unique token ID used to prevent replay.
Security tips
Decoding happens entirely in your browser, and the token is never sent anywhere. Even so, treat live tokens like passwords: anyone who has one can use it until it expires. Prefer test tokens when debugging, never put sensitive personal data in a payload, keep expiry times short, and always verify the signature on your server before trusting any claim. A decoder shows what a token says, not whether it is genuine.
Frequently asked questions
Does this JWT decoder verify the signature?
No. It decodes and displays the token. Signature verification needs your secret or public key and should be done on your server.
Is it safe to paste my token here?
The token is decoded in your browser and never uploaded. Still, avoid pasting long-lived production tokens anywhere you don't need to.
Why can I read the payload without a key?
JWT payloads are encoded, not encrypted. The signature only stops tampering; it doesn't hide the content.
How do I know if my token has expired?
Look at the status bar: it compares the exp claim with your device's clock and tells you if the token has expired.