JWT decoder
Paste a JSON Web Token to read its header and payload as JSON, with the expiry and issue dates made readable. It decodes locally and never sends your token anywhere. It does not verify the signature.
How to use it
- Paste the token into JWT. A leading "Bearer " is removed for you.
- Read the decoded JSON in Header and Payload.
- Check Date claims to see when the token expires or became valid.
- Remember: decoding is not validation. Verify the signature on your server.
Complete guide to reading a JSON Web Token
What a JWT is and why you would decode one
A JSON Web Token (JWT) is a compact string that an authentication server hands to your app after you sign in. The app then sends it back with each request to prove who you are. Developers decode tokens all the time: to see why an API returns 401, to check which user or role a token carries, or to find out whether it has already expired. Since the content is just encoded text, you can read it without any key. This tool does that locally in your browser, and the token is never uploaded.
The three parts
A token looks like xxxxx.yyyyy.zzzzz: three pieces separated by dots.
| Part | What it holds |
|---|---|
| Header | The signing algorithm (alg, such as HS256 or RS256) and the token type (typ) |
| Payload | The claims: data about the user and the token itself |
| Signature | A cryptographic proof that the first two parts were not altered |
The header and payload are JSON written in base64url, a variant of Base64 that uses - and _ instead of + and / and drops the trailing =. The tool reverses that, reads the bytes as UTF-8 so accents and non-Latin characters survive, and formats the JSON with indentation. A leading "Bearer " is removed for you, and tokens with only two parts (no signature) are accepted.
Worked example
- Paste the sample token that starts with
eyJhbGciOiJIUzI1NiIsinto JWT. - Header shows
{"alg": "HS256", "typ": "JWT"}, formatted over several lines. - Payload shows
subas1234567890,nameasJohn Doeandiatas1516239022. - Under Date claims the row
iat (issued at)shows 2018-01-18T01:30:22.000Z, which is Jan 18, 2018, 1:30:22 AM UTC. The status is "-" because an issue date is just information.
Another token with exp set to 1700000000 decodes to 2023-11-14T22:13:20.000Z and its status reads "Expired", since that moment is in the past.
Common claims
| Claim | Meaning |
|---|---|
iss | Issuer: who created the token |
sub | Subject: usually the user ID |
aud | Audience: who the token is meant for |
exp | Expiration time, in Unix seconds |
nbf | Not before: must not be accepted earlier than this |
iat | Issued at, in Unix seconds |
The tool turns exp, iat and nbf into readable UTC dates and an ISO 8601 string, and tells you whether the token has expired or is already active.
Tips and common mistakes
- Decoding is not verifying. The signature is never checked here, so a decoded token can still be forged. Always validate the signature on your server with the right key.
- Do not store secrets in a payload. Anyone who holds the token can read it, exactly as you just did.
- Expiry is compared with your device clock. If your clock is wrong, the status can be wrong too.
- Treat live production tokens like passwords. Prefer an expired or test token when you need to paste one anywhere.
- An error such as "not valid base64url" usually means the token was cut off or contains extra characters from copying.
Related tools
Convert the time values with the Unix timestamp converter, decode other Base64 text with the Base64 encoder and decoder, or compute digests with the hash generator.
Questions
Is it safe to paste my token here?
The token is decoded in your browser and never uploaded. Still, treat live tokens as passwords: avoid pasting production tokens into any tool you do not trust.
Does it check the signature?
No. It only decodes the header and payload. Verifying the signature needs the secret or public key and must be done by your backend.
Why can anyone read the payload?
A JWT is encoded, not encrypted. The payload is plain base64url JSON, so never store passwords or other secrets in it.
What are exp, iat and nbf?
They are Unix times in seconds: exp is when the token expires, iat when it was issued and nbf the moment before which it must not be accepted.