JWT token decoder
Paste a token to read its header, payload and time claims in plain form. Decoding happens in your browser.
A leading “Bearer ” and any line breaks are stripped automatically.
The signature is not verified here: verifying needs the server's secret or public key, which this page does not have.
The token is decoded in your browser and is never sent to a server. Even so, do not paste someone else's live token into third-party sites: a token is a credential, like a password.
How to use
- Copy the token. A leading
Beareris fine — the tool strips it. - Paste it into the box above; decoding is instant, there is no button to press.
- Read the status badge: valid, expired, or not valid yet.
- Go through the claim table for
exp,iss,suband copy the JSON if you need it.
The three parts of a JWT
A JWT is three dot-separated parts: header.payload.signature. The first two are JSON written in Base64URL; the third is a signature computed over the first two.
| Part | What is inside | Who can read it |
|---|---|---|
| Header | alg (signing algorithm), typ, sometimes kid | Anyone |
| Payload | Claims: user id, permissions, times | Anyone |
| Signature | A verification value produced with a key | The verifying server |
Base64URL is not encryption, it is a way of writing bytes. Anyone holding the token can read the payload — which is why passwords, card numbers and secret keys never go in it.
What the standard claims mean
RFC 7519 standardises a handful of claim names. The tool shows them with a short description and converts the time claims to your local time.
| Claim | Stands for | What it does |
|---|---|---|
iss | issuer | Who issued the token |
sub | subject | Who it is about — usually the user id |
aud | audience | Which service should accept it |
exp | expiration | When it stops being valid (Unix seconds) |
nbf | not before | Not accepted before this time |
iat | issued at | When it was created |
jti | JWT ID | Unique id, used to block replay |
Everything else is a private claim: fields such as scope, roles or email are defined by the service itself. The tool still lists unknown claims, only without a description line.
Signatures: HS256, RS256 and the “alg: none” trap
- HS256 (HMAC): one shared secret both signs and verifies. Anyone who knows it can mint tokens, so it stays on the server only.
- RS256 / ES256: signed with a private key, verified with the public one. Preferred when several services need to verify.
kid: names the key that was used, which is how key rotation works.alg: none: an unsigned token. Libraries that accepted these caused a famous vulnerability; servers must reject them today. The tool warns when it sees one.
This page does not verify the signature: that needs the server's secret or public key, and pasting a secret into a web page means you can no longer treat it as secret. Verify on your own server, with your own library.
Handling tokens safely
- A token is a credential: whoever holds it can act as you until it expires. Do not share it in screenshots, support tickets or log files.
- Short lifetimes plus a refresh token beat one long-lived token: a leaked token stops being useful quickly.
- In the browser,
localStorageis exposed to XSS; anHttpOnlycookie is usually safer because JavaScript cannot read it. - Keep secrets out of the payload. When content really must be hidden, JWE (an encrypted JWT) is used — it has five parts and this tool cannot read it.
- Logging out does not revoke a token by itself; the server needs a deny list, short lifetimes or
jtitracking.
When it will not decode
- Fewer than three parts: the copy was probably cut short. The tool warns when the signature part is missing.
- Token taken from a URL: escapes such as
%2Ehave to be URL-decoded first. - Line breaks and spaces: tokens copied from email or a terminal arrive split. The tool strips whitespace, but a character lost in the middle cannot be recovered.
- Five parts: that is a JWE (encrypted). Its contents cannot be read without the key.
- Base64 is not Base64URL: text containing
+or/is not a JWT; a JWT uses-and_instead.
Glossary
- JWT
- JSON Web Token: a signed, three-part login ticket (RFC 7519).
- Claim
- A single field inside the payload, carrying an id, a time or a permission.
- Base64URL
- A Base64 variant that is safe in URLs:
-for+and_for/. - HS256
- HMAC-SHA256 signing with a single shared secret.
- RS256
- RSA signing: private key signs, public key verifies.
- exp
- The moment the token stops being valid, in Unix seconds.
- Clock skew
- The small difference between server and client clocks, usually tolerated by a few seconds.
- JWE
- An encrypted JWT. It has five parts and cannot be read without the key.
Frequently asked questions
What is a JWT?
A JSON Web Token: a login ticket made of three dot-separated parts. The first two are Base64URL-encoded JSON (header and payload); the third is a signature the server checks to be sure nothing was altered.
Is a token encrypted, or can anyone read it?
A normal JWT (JWS) is signed, not encrypted. Base64URL is a way of writing bytes, not a way of hiding them: anyone holding the token can read its contents. That is why passwords or card numbers never belong in the payload.
Does this tool verify the signature?
No. Verification needs the server's secret (HMAC) or public key (RSA/ECDSA), and asking you for those would be wrong. This tool only makes the contents readable.
It says expired but the token still works — why?
Expiry is compared against your device clock. If that clock has drifted, the verdict misleads. Some services also allow a small tolerance (clock skew).
What do exp, iat and nbf mean?
They are Unix timestamps: seconds since 1 January 1970. The tool converts them to your local time and to readable phrases such as “in 3 days”.
What does alg: none mean?
It means an unsigned token. Old libraries that accepted such tokens caused a well-known security hole, so servers should reject them today.
Is my token stored anywhere?
No. Decoding happens in your browser; the token is never sent to a server and never saved.