How to decode a JWT
- Copy the token — for example from an
Authorization: Bearer …header in your browser's developer tools, from a cookie, or from your app's logs. - Paste it into the box. The header and payload are decoded and pretty-printed immediately.
- Check the summary: algorithm, issued-at (
iat), not-before (nbf) and expiry (exp) as readable dates, and whether the token is currently valid or expired.
What is inside a JWT
A JWT has three parts separated by dots: header.payload.signature. The header and payload are JSON objects encoded with Base64URL — encoded, not encrypted. Anyone who has the token can read them, which is exactly what this tool does.
| Claim | Meaning |
|---|---|
iss | Issuer — who created the token |
sub | Subject — usually the user ID |
aud | Audience — which service the token is meant for |
exp | Expiration time (Unix seconds) |
nbf | Not valid before (Unix seconds) |
iat | Issued at (Unix seconds) |
jti | Unique token ID, used to prevent replay |
The signature proves the header and payload haven't been changed, but only to someone with the key. Encrypted tokens (JWE) have five parts and can't be read without the key; the tool will tell you if you paste one.
Security notes
- Be careful where you paste tokens. A valid access token is a credential: whoever has it can act as you until it expires. Pasting it into a website that sends it to a server is a real risk. This page decodes it locally and never transmits it — you can verify that in your browser's Network tab.
- Don't put secrets in JWT payloads; they're readable by anyone holding the token.
- Servers must verify the signature and reject
alg: noneand unexpected algorithms before trusting any claim. - Expiry times are shown using your device's clock. If your clock is wrong, the “expired” status will be too.
Frequently asked questions
Is it safe to paste my JWT here?
This page decodes the token with JavaScript on your device and doesn’t send it anywhere, so it’s as safe as looking at it in your own developer tools. Still, avoid sharing production tokens in screenshots, chats or tickets.
Does this tool verify the signature?
No. Verifying requires the secret (for HS256) or the issuer’s public key (for RS256/ES256). Decoding only shows what the token claims; it doesn’t prove the claims are genuine.
Why does it say my token is expired?
The exp claim is earlier than your device’s current time. Request a new token (for example by refreshing your login) — or check that your computer’s clock is correct.
Can I edit the payload and use the token?
If you change the payload, the signature no longer matches and any correctly implemented server will reject the token.