Yuzool

Dev Tools

JWT decoder

Paste a JSON Web Token to read its header and claims and see when it was issued and when it expires. Add the secret or public key to check its signature. The token never leaves your browser.

What’s inside a JWT

A JWT is three Base64URL parts joined by dots: a header (the algorithm), a payload (the claims) and a signature. The first two are only encoded, not encrypted: anyone holding the token can read them, which is why this page can. Only the signature needs the key.

ClaimMeans
ississuer: who made the token
subsubject: who it’s about, usually a user id
audaudience: who it’s for
expexpires: a Unix time after which it’s invalid
nbfnot before: a Unix time before which it’s invalid
iatissued at: when it was made
jtia unique id for the token

Checking the signature

For HS256, HS384 and HS512, paste the shared secret (tick Base64 if yours is stored that way). For RS, PS and ES algorithms, paste the public key as PEM (-----BEGIN PUBLIC KEY-----) or a JWK. The check uses your browser’s Web Crypto, the same code banks’ web apps rely on.

A token with "alg": "none" has no signature at all, and this page says so: a server should never accept one.

How to use it

  1. Paste the token (a leading "Bearer " is fine).
  2. Read the header, the payload and the times, with how long until it expires.
  3. To verify it, paste the secret or public key under Check the signature.

Questions

Is it safe to paste a token here?

The token and key stay in your browser: this page sends nothing anywhere, and works with your connection turned off. Still, treat live production tokens and secrets with care on any computer you share.

Can it decode an encrypted JWT (JWE)?

No. A JWE has five parts and can only be read with its decryption key. This reads signed tokens (JWS), the usual kind.

Why is my token expired?

Its exp claim is a time in the past. Tokens are often short-lived (minutes to hours) on purpose; get a new one from the service that issued it.

Which algorithms can it verify?

HS256, HS384, HS512, RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384 and ES512.

Related tools

Open all 35 Dev Tools. Everything runs in your browser; nothing you paste is uploaded.

Settings

History

Snippet