01 / Header
How it was signed
Usually the algorithm (alg) and the type (typ).
Free tool
Paste a JSON Web Token to see its header and payload as formatted JSON and every claim explained, with expiry shown in your own time zone and how long is left. Decoding does not check the signature, so a decoded token is not proof that it is genuine. To check it, add the secret or public key: HS, RS, PS, ES and EdDSA all work. The token and key never leave this page.
Need a custom tool, app or website? Contact us →Check the signature
Decoding needs no key. To check that the token is genuine, give the key it was signed with. Algorithm: none yet.
HS256 to HS512, RS, PS and ES (256 to 512) and EdDSA. Keys as PEM, a certificate, a JWK or a JWKS (picked by kid).
Decoded and checked in your browser with its built-in Web Crypto. The token and the key are never sent anywhere or saved.
What a JWT is
01 / Header
Usually the algorithm (alg) and the type (typ).
02 / Payload
Who it is about (sub), who issued it (iss), when it expires (exp), and anything else the issuer added.
03 / Signature
Only the secret or the public key can check it. Add one in the side panel to check it here.
Guide
A JWT decoder turns a JSON Web Token, the long string that starts with eyJ, back into the readable JSON inside it. You see the header, which says how the token was signed, and the payload, which holds the claims: who the token is for, who issued it and when it expires. Decoding needs no key, because the first two parts of a JWT are only encoded, not encrypted. Checking that the token is genuine is a separate step that needs the signing key. This page does it too, but only when you give it the key.
A JWT is three pieces joined by dots: header.payload.signature. The header and payload are JSON written in base64url, a version of Base64 that swaps + and / for - and _ and drops the = padding so the token is safe in a URL.
Take the header eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9. Decoded, it reads {"alg":"HS256","typ":"JWT"}: the token is a JWT, signed with HS256. That is why almost every JWT starts with eyJ: it is how {" followed by a letter looks in Base64.
The signature is not JSON. It is a value made from the header and the payload with a key. Change one character of the payload and the signature no longer matches.
The JWT standard defines a short list of claim names. Issuers add their own as well, such as name, email or roles, and the table shows those too.
| Claim | Name | What it means |
|---|---|---|
| iss | Issuer | Who made the token, often a URL of the login service |
| sub | Subject | Who the token is about, usually a user ID |
| aud | Audience | Which app or API should accept it |
| exp | Expires | After this time the token should be refused |
| nbf | Not before | Before this time the token should be refused |
| iat | Issued at | When the token was made |
| jti | Token ID | A unique ID, so a token can be tracked or blocked |
exp, nbf and iat are Unix timestamps: the number of seconds since 1 January 1970, in UTC. The table converts each one to a date in your own time zone, says how long ago or how soon that is, and keeps the raw number under it. Set Show times in to UTC to compare with server logs. The expiry card and labels update every 30 seconds while the page is open.
A quick worked example: if iat is 1760000000 and exp is 1760003600, the gap is 3,600 seconds, so the token lasts 60 minutes. A gap of 86,400 seconds would be one day. The expired label compares exp with your computer's clock, so if your clock is wrong the label will be too.
| alg | How it is signed | What checks it |
|---|---|---|
| HS256 | HMAC with a shared secret | The same secret, so only servers that hold it |
| RS256 | RSA private key | The matching public key, which can be shared |
| ES256 | Elliptic curve private key | The matching public key |
| none | Not signed | Nothing. A server should refuse it. |
Anyone can write any JSON, encode it and put dots between the parts. A decoded payload that says "role": "admin" proves nothing until the signature has been checked with the right key. Until you add a key, the signature card says Not checked.
The other side of this is that the payload is readable by anyone who has the token. Never put passwords or private data in a JWT payload, and treat a live token like a password, because whoever holds it can usually act as that user until it expires.
The check runs in your browser with its built-in Web Crypto. Which key you need depends on the alg in the header:
-----BEGIN PUBLIC KEY-----, or BEGIN RSA PUBLIC KEY), as an X.509 certificate, as a JWK, or as a whole JWKS from the issuer's /.well-known/jwks.json. With a JWKS, the key whose kid matches the header is used.Signature verified means the token was signed with that key and has not been changed since. It does not check the issuer, the audience or the expiry for you; read those in the table. A private key is refused, since only the public half is needed and a private key should never be pasted anywhere. Keys are not saved.
To read any other Base64 text, use Base64 decode. To turn a single timestamp into a date, or a date into a timestamp, use the Unix timestamp converter.
Questions
Paste it. The header and payload show at once.
Only when you give it a key. Without one, it decodes and says the signature is not checked. Add the secret for HS256 or the public key for RS256, ES256 and the rest, and it checks it in your browser. Your server should still verify every token itself.
The token and any key stay in this page and are not sent or saved. Only the time zone setting is remembered. Still, treat live tokens like passwords.
For HS algorithms, the secret as text or Base64. For the others, a public key as PEM, an X.509 certificate, a JWK, or a JWKS, where the key is picked by the kid in the header.
The exp time is in the past, by your computer's clock.
The token has no signature at all. Servers should reject it.
Yes. The header and payload are only Base64 encoded, so anyone can read them. The key is needed only to check the signature or to make a new valid token.
A normal signed JWT is not. Its payload can be read by anyone who has it. Encrypted tokens exist, called JWE, but they have five parts and cannot be read without the key.
The header is JSON, so it begins with {" and then the first letter of a name like alg, and those characters come out as eyJ in Base64. Seeing eyJ is a good sign that a string is a JWT.
They are counted in seconds from 1 January 1970 UTC, so they have no time zone of their own. This page shows them as dates in your computer's time zone, or in UTC if you pick that under Show times in.