JWT decoder

Decode a JSON Web Token online, right in your browser, nothing is sent: header, payload and the meaning of its claims, with the expiry in plain words. Optionally verify the signature with a secret or a public key.

Decoded and verified in your browser: the token, the secret and the key are never sent anywhere.

How to use it

Paste a token, with or without “Bearer ”: you see its header and payload as formatted JSON, the standard claims explained (issuer, subject, audience, expiry...) with times as dates, and whether it is expired. To check the signature, paste the secret (HS256, HS384, HS512) or the public key (RS, PS, ES and EdDSA) under “Verify the signature”.

Frequently asked questions

Is it safe to paste my token here?

It is decoded and verified in your browser: the token, the secret and the key are never sent to our server. Still, a valid token is a credential: whoever has it can use it until it expires. And a JWT is only encoded, not encrypted: anyone who has it can read the payload, so never put secrets in it.

Which algorithms and key formats can it verify?

HS256, HS384 and HS512 with the shared secret (as text, or Base64-encoded); RS256 to RS512 and PS256 to PS512 with an RSA public key; ES256, ES384 and ES512 with an EC public key; and EdDSA (Ed25519) in browsers that support it. Paste the public key as PEM (-----BEGIN PUBLIC KEY-----), as a JWK, or as a whole JWK set like the one at /.well-known/jwks.json: the key is picked by the token's kid.

Why does it say expired when my server still accepts the token?

exp, nbf and iat are seconds since 1 January 1970 UTC, compared here with your computer's clock. Many servers accept a few minutes of clock difference (leeway), so a token can still pass there shortly after exp. Time zones never matter: these timestamps are always UTC.