Tokens are credentials. This one stays in this tab: it is never stored and never sent anywhere.

About JSON Web Tokens

Decode a JWT’s claims, see when it expires and verify its signature with a secret or public key. Your token and key never leave your browser.

A JSON Web Token (JWT) is three parts separated by dots: a header saying how the token was signed, a payload of claims such as the user ID and expiry time, and a signature. The header and payload are Base64URL-encoded JSON, so anyone can read them.

How do I verify a JWT's signature?

Decoding shows what a token says; only its signature shows who made it. Under Verify signature, paste the shared secret for an HS256, HS384 or HS512 token, or the issuer's public key for RS, PS, ES or EdDSA tokens: a PEM public key or certificate, a JWK, or the issuer's whole JWK Set, from which the key matching the token's kid is used. The check runs in your browser with its built-in cryptography.

A verified signature proves the token was signed with that key and not changed since. It does not make an expired token valid, and it does not check who the token is for: a server must also check exp, iss and aud, and must reject tokens whose header says "alg": "none". The page refuses a public key offered as an HS secret, the trick behind the "algorithm confusion" attack, and refuses private keys outright: verifying never needs one.

Reading the time claims

iat is when the token was issued, nbf is the earliest time it may be used, and exp is when it expires. They are stored as seconds since 1 January 1970 UTC: for example, "exp": 1700003600 means 14 November 2023 at 23:13:20 UTC. The tool converts them to readable dates and says whether the token is currently within its valid period.

Is it safe to paste a token or secret here?

The token, secret and key stay inside your browser: they are never stored or sent anywhere, and the page loads no third-party scripts. Even so, treat live tokens and secrets like passwords: prefer test environments, and do not paste production secrets into tools you do not trust.