What is inside a JWT
A JSON Web Token (RFC 7519) is three base64url parts joined by dots:
- Header: the signing algorithm (
alg), usually the type (typ), and often the key ID (kid). - Payload: the claims, such as who the token is about (
sub), who issued it (iss), and when it expires (exp). - Signature: made from the first two parts with a secret or private key, so any change to them is detected.
Base64url is an encoding, not encryption. Anyone holding the token can read the header and payload, so never put passwords or other secrets in them.
Registered claims
| Claim | Meaning |
|---|---|
iss | Issuer: who created and signed the token. |
sub | Subject: usually the user ID. |
aud | Audience: the API or app the token is meant for. Servers should reject other audiences. |
exp | Expiration time, in Unix seconds. Not accepted from this moment on. |
nbf | Not before, in Unix seconds. Not accepted before this moment. |
iat | Issued at, in Unix seconds. |
jti | JWT ID: a unique ID, used to block a token from being reused. |
To turn any of these times into a date, use the Unix Timestamp Converter.
Signature algorithms
| alg | Checked with |
|---|---|
HS256, HS384, HS512 | The same shared secret that signed it (HMAC). |
RS256, RS384, RS512 | The issuer's RSA public key. |
PS256, PS384, PS512 | The issuer's RSA public key (RSA-PSS). |
ES256, ES384, ES512 | The issuer's elliptic-curve public key (P-256, P-384, P-521). |
none | Nothing: an unsigned token. Never accept it. |
Public keys can be pasted as PEM (-----BEGIN PUBLIC KEY-----), as a single JWK, or as a whole JWKS. The check runs with your browser's Web Crypto API.
Example
The token above is signed with HS256 and the secret toolsylo-demo-secret. Its payload says it was issued at 1795000000 (18 November 2026, 11:06:40 UTC) and expires one hour later at 1795003600, so it now shows as expired. Type the secret under "Check the signature" to see it verified; change one character of the token to see the check fail.
Questions
Is it safe to paste my token here?
The token is decoded in your browser with JavaScript; it is not sent to any server, stored, or put in the address bar. Still treat a live token like a password: anyone who has it can use it until it expires. Use an expired or test token when you can.
Can anyone read the contents of a JWT?
Yes. The header and payload of a signed JWT are only base64url-encoded, not encrypted, so anyone with the token can read them. Never put secrets in a JWT payload. Only an encrypted JWT (JWE, five parts) hides its contents.
Does decoding a JWT prove it is genuine?
No. Decoding only reads it. To know the token was issued by the right server and not changed, the signature must be checked with the secret (HS256) or the issuer's public key (RS256, ES256, PS256). Paste the key under "Check the signature".
Where do I find the public key?
OpenID Connect providers publish their keys as a JWKS, usually at https://issuer/.well-known/jwks.json. Paste the whole JSON; the key whose kid matches the token header is used.
What do exp, iat and nbf mean?
They are times in seconds since 1970 (Unix time). exp is when the token expires, iat when it was issued, and nbf the moment before which it must not be accepted. The decoder shows each as a UTC date and how long ago or ahead it is.
Why is alg "none" dangerous?
A token with alg "none" has no signature, so anyone can create or change one. Servers must reject it. The decoder marks such tokens as untrusted.
Support this site
The tools are free and need no account. If one saved you time, a small donation helps keep them running.
Want a tool or feature? Suggest it for free, or donate and write your request in the message. Supporters' requests are looked at first.