JSON

JWT Decoder

Paste a JSON Web Token to read its header and payload, see when it was issued and when it expires, and check its signature with a secret or public key. The token is decoded in your browser and never sent anywhere.

Runs in your browser. Nothing you enter is sent to a server.

Decoded in your browser. Never sent, stored or put in the address bar. "Bearer " in front is fine.

Expired: the example token was valid for 1 hour on 18 November 2026.

Header

{
  "alg": "HS256",
  "typ": "JWT"
}

Payload

{
  "iss": "https://auth.example.com",
  "sub": "user_8421",
  "name": "Ana Wijaya",
  "email": "[email protected]",
  "roles": [
    "admin",
    "editor"
  ],
  "iat": 1795000000,
  "exp": 1795003600
}

Claims

issIssuerhttps://auth.example.com
subSubjectuser_8421
iatIssued at17950000002026-11-18 11:06:40 UTC
expExpires17950036002026-11-18 12:06:40 UTC

Check the signature

Algorithm HS256: shared secret (HMAC).

Checked in your browser and never stored or sent. Use a test secret, not a production one.

The example token's secret is toolsylo-demo-secret.

Need a new HS256 secret? Generate a random 64-character one in your browser.

Advertisements

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

ClaimMeaning
issIssuer: who created and signed the token.
subSubject: usually the user ID.
audAudience: the API or app the token is meant for. Servers should reject other audiences.
expExpiration time, in Unix seconds. Not accepted from this moment on.
nbfNot before, in Unix seconds. Not accepted before this moment.
iatIssued at, in Unix seconds.
jtiJWT 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

algChecked with
HS256, HS384, HS512The same shared secret that signed it (HMAC).
RS256, RS384, RS512The issuer's RSA public key.
PS256, PS384, PS512The issuer's RSA public key (RSA-PSS).
ES256, ES384, ES512The issuer's elliptic-curve public key (P-256, P-384, P-521).
noneNothing: 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.